Bump to attr 2.4.48 87/243187/3 accepted/tizen_6.5_base accepted/tizen_6.5_base_tool sandbox/backup/attr-2.4.48-20211110 sandbox/dh0128.kwak/attr_2.4.48_20200904 tizen_6.5_base accepted/tizen/6.5/base/20230714.002414 accepted/tizen/6.5/base/tool/20211027.112536 accepted/tizen/base/tool/20201219.095617 submit/tizen_6.5_base/20211026.180901 submit/tizen_6.5_base/20211027.183101 submit/tizen_6.5_base/20211027.200501 submit/tizen_base/20201112.015012 submit/tizen_base/20201123.011037 submit/tizen_base/20201130.233154 submit/tizen_base/20201207.055733 submit/tizen_base/20201209.232314 submit/tizen_base/20201210.014645 submit/tizen_base/20201214.055650 tizen_6.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 10 Jan 2020 02:32:49 +0000 (11:32 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 7 Sep 2020 00:14:52 +0000 (17:14 -0700)
Change-Id: I51aa9659eb66623c7cae1f77ea572ef6153b9e01
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/attr.manifest [new file with mode: 0644]
packaging/attr.spec [new file with mode: 0644]
packaging/baselibs.conf [new file with mode: 0644]
tools/Makemodule.am

diff --git a/packaging/attr.manifest b/packaging/attr.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/attr.spec b/packaging/attr.spec
new file mode 100644 (file)
index 0000000..ca7c185
--- /dev/null
@@ -0,0 +1,99 @@
+Name:           attr
+%global lname  libattr
+Summary:        Commands for Manipulating Extended Attributes
+License:        GPL-2.0+ and LGPL-2.1+
+Group:          Base/File Systems
+Version:        2.4.48
+Release:        0
+Source:         %{name}-%{version}.src.tar.gz
+# Source1:        xattr.conf
+Source2:        baselibs.conf
+Source1001:    attr.manifest
+Url:            http://download.savannah.gnu.org/releases-noredirect/attr/
+BuildRequires:  autoconf
+
+%description
+A set of tools for manipulating extended attributes on file system
+objects, in particular getfattr(1) and setfattr(1). An attr(1) command
+is also provided, which is largely compatible with the SGI IRIX tool of
+the same name.
+
+%package -n %lname
+Summary:        A dynamic library for filesystem extended attribute support
+Group:          Base/File Systems
+
+%description -n %lname
+This package contains the libattr.so dynamic library, which contains
+the extended attribute library functions.
+
+%package -n libattr-devel
+Summary:        Include Files and Libraries mandatory for Development
+Group:          Development/Libraries
+Provides:       attr-devel
+Obsoletes:      attr-devel
+Requires:       %lname = %version
+Requires:       glibc-devel
+
+%description -n libattr-devel
+This package contains the libraries and header files needed to develop
+programs which make use of extended attributes. For Linux programs, the
+documented system call API is the recommended interface, but an SGI
+IRIX compatibility interface is also provided.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+export OPTIMIZER="$RPM_OPT_FLAGS"
+export DEBUG=-DNDEBUG
+export CFLAGS="$RPM_OPT_FLAGS -fPIC"
+export LDFLAGS="${LDFLAGS} -Wl,-z,relro -pie"
+
+%configure \
+       --prefix=%{_prefix} \
+       --enable-gettext=no \
+       --exec-prefix=/ \
+       --sbindir=%_sbindir \
+       --libdir=%{_libdir} \
+       --libexecdir=%{_libdir} \
+       --with-pic \
+    --enable-static=no
+
+#%{__make} libattr %{?_smp_mflags}
+#%{__make} attr getfattr setfattr %{?_smp_mflags}
+%{__make} %{?_smp_mflags}
+
+%install
+%make_install
+# remove libtool archives
+find %{buildroot} -type f -name "*.la" -delete -print
+# handle docs on our own
+rm -rf %{buildroot}/%{_datadir}/doc/%{name}
+%find_lang %{name}
+%remove_docs
+
+%post -n %lname -p /sbin/ldconfig
+
+%postun -n %lname -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%manifest %{name}.manifest
+%license doc/COPYING
+%{_bindir}/attr
+%{_bindir}/getfattr
+%{_bindir}/setfattr
+
+%files -n libattr-devel
+%manifest %{name}.manifest
+%{_includedir}/attr/
+%{_libdir}/pkgconfig/libattr.pc
+%{_libdir}/libattr.so
+
+%files -n %lname
+%manifest %{name}.manifest
+%license doc/COPYING.LGPL
+%{_libdir}/libattr.so.1*
+%config %{_sysconfdir}/xattr.conf
+
+%changelog
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..d79c02b
--- /dev/null
@@ -0,0 +1,5 @@
+# obsoletes added in 2.4.46; change to just "<" in 2.4.47 or up
+libattr
+       targetarch ia64 block!
+libattr-devel
+       requires "libattr-<targettype> = <version>"
index 890c11f..c0a325d 100644 (file)
@@ -3,11 +3,14 @@ tools_ldadd = $(LDADD) libattr.la libmisc.la
 bin_PROGRAMS += attr
 attr_SOURCES = tools/attr.c
 attr_LDADD = $(tools_ldadd)
+attr_LDFLAGS = -pie
 
 bin_PROGRAMS += getfattr
 getfattr_SOURCES = tools/getfattr.c
 getfattr_LDADD = $(tools_ldadd)
+getfattr_LDFLAGS = -pie
 
 bin_PROGRAMS += setfattr
 setfattr_SOURCES = tools/setfattr.c
 setfattr_LDADD = $(tools_ldadd)
+setfattr_LDFLAGS = -pie