3 Summary: Commands for Manipulating Extended Attributes
4 License: GPL-2.0+ and LGPL-2.1+
5 Group: Base/File Systems
8 Source: %{name}-%{version}.src.tar.gz
10 Source2: baselibs.conf
11 Source1001: attr.manifest
12 Url: http://download.savannah.gnu.org/releases-noredirect/attr/
13 BuildRequires: autoconf
16 A set of tools for manipulating extended attributes on file system
17 objects, in particular getfattr(1) and setfattr(1). An attr(1) command
18 is also provided, which is largely compatible with the SGI IRIX tool of
22 Summary: A dynamic library for filesystem extended attribute support
23 Group: Base/File Systems
25 %description -n %lname
26 This package contains the libattr.so dynamic library, which contains
27 the extended attribute library functions.
29 %package -n libattr-devel
30 Summary: Include Files and Libraries mandatory for Development
31 Group: Development/Libraries
34 Requires: %lname = %version
37 %description -n libattr-devel
38 This package contains the libraries and header files needed to develop
39 programs which make use of extended attributes. For Linux programs, the
40 documented system call API is the recommended interface, but an SGI
41 IRIX compatibility interface is also provided.
43 %package -n libattr-devel-static
44 Summary: Include Files and Libraries mandatory for Development
45 Group: Development/Libraries
46 Provides: libattr-devel:%{_libdir}/libattr.a
47 Requires: libattr-devel = %version
49 %description -n libattr-devel-static
50 This package contains the static library of libattr which is needed to develop
51 statically linked programs which make use of extended attributes.
58 export OPTIMIZER="$RPM_OPT_FLAGS"
60 CFLAGS="$RPM_OPT_FLAGS" \
67 --libexecdir=%{_libdir} \
69 %{__make} libattr %{?_smp_mflags}
70 CFLAGS="$CFLAGS -fPIE" LDFLAGS="$LDFLAGS -pie" \
71 %{__make} attr getfattr setfattr %{?_smp_mflags}
74 DIST_ROOT="$RPM_BUILD_ROOT"
75 DIST_INSTALL=`pwd`/install.manifest
76 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
77 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
78 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
79 /usr/bin/make install DIST_MANIFEST="$DIST_INSTALL"
80 /usr/bin/make install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
81 /usr/bin/make install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
82 rm -f $RPM_BUILD_ROOT%{_mandir}/man2/*xattr.2*
83 rm -f $RPM_BUILD_ROOT/%{_libdir}/libattr.la
84 install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}
85 install -m 644 %_sourcedir/xattr.conf $RPM_BUILD_ROOT/%{_sysconfdir}
86 chmod 755 $RPM_BUILD_ROOT/%{_libdir}/libattr.so.1*
90 %post -n %lname -p /sbin/ldconfig
92 %postun -n %lname -p /sbin/ldconfig
95 %manifest %{name}.manifest
96 %defattr (-,root,root)
98 %attr(755,root,root) %{_bindir}/attr
99 %attr(755,root,root) %{_bindir}/getfattr
100 %attr(755,root,root) %{_bindir}/setfattr
102 %files -n libattr-devel
103 %manifest %{name}.manifest
104 %defattr(-,root,root)
105 %dir %attr(755,root,root) %{_includedir}/attr
106 %attr(644,root,root) %{_includedir}/attr/attributes.h
107 %attr(644,root,root) %{_includedir}/attr/error_context.h
108 %attr(644,root,root) %{_includedir}/attr/libattr.h
109 %attr(644,root,root) %{_includedir}/attr/xattr.h
110 %attr(755,root,root) %{_libdir}/libattr.so
112 %files -n libattr-devel-static
113 %manifest %{name}.manifest
114 %defattr(-,root,root)
118 %manifest %{name}.manifest
119 %defattr (-,root,root)
120 %license doc/COPYING.LGPL
121 %{_libdir}/libattr.so.1*
122 %config %{_sysconfdir}/xattr.conf