Bump to attr 2.5.1 77/264677/1 accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_7.0_base_tool accepted/tizen_7.0_base_tool_hotfix accepted/tizen_base_tool sandbox/dh0128.kwak/attr-2.5.1-20210928 tizen_7.0_base tizen_7.0_base_hotfix accepted/tizen/7.0/base/20230714.002823 accepted/tizen/7.0/base/hotfix/20230714.003638 accepted/tizen/7.0/base/tool/20221028.110252 accepted/tizen/7.0/base/tool/hotfix/20221115.084720 accepted/tizen/8.0/base/20231005.044550 accepted/tizen/base/20230714.003229 accepted/tizen/base/tool/20211115.010918 submit/tizen_7.0_base/20221028.194701 submit/tizen_7.0_base_hotfix/20221115.160301 submit/tizen_base/20211109.222812 tizen_7.0_m2_release tizen_8.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 28 Sep 2021 06:54:20 +0000 (15:54 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 28 Sep 2021 06:54:55 +0000 (15:54 +0900)
Change-Id: I47216645c10258368fef9718011022f4241750e0
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]

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..7fcf472
--- /dev/null
@@ -0,0 +1,98 @@
+Name:           attr
+Summary:        Commands for Manipulating Extended Attributes
+License:        GPL-2.0+
+Group:          Base/File Systems
+Version:        2.5.1
+Release:        0
+Source:         %{name}-%{version}.src.tar.gz
+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 lib%{name}
+Summary:        A dynamic library for filesystem extended attribute support
+Group:          Base/File Systems
+License:        LGPL-2.1+
+
+%description -n lib%{name}
+This package contains the libattr.so dynamic library, which contains
+the extended attribute library functions.
+
+%package -n lib%{name}-devel
+Summary:        Include Files and Libraries mandatory for Development
+Group:          Development/Libraries
+License:        GPL-2.0+
+Provides:       attr-devel = %{version}
+Obsoletes:      attr-devel <= %{version}
+Requires:       lib%{name} = %{version}
+Requires:       glibc-devel
+
+%description -n lib%{name}-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} %{?_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 lib%{name} -p /sbin/ldconfig
+
+%postun -n lib%{name} -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
+%license doc/COPYING
+%{_includedir}/attr/
+%{_libdir}/pkgconfig/libattr.pc
+%{_libdir}/libattr.so
+
+%files -n lib%{name}
+%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>"