1 Summary: Utility for managing filesystem extended attributes
2 Summary(pl): Narzêdzia do zarz±dzania rozszerzonymi atrybutami fs
6 # most part is on LGPL v2.1, but the rest enforces GPL
8 Group: Applications/System
9 Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
10 Patch0: %{name}-miscfix.patch
11 URL: http://oss.sgi.com/projects/xfs/
12 BuildRequires: autoconf
13 BuildRequires: e2fsprogs-devel
14 BuildRequires: xfsprogs-devel >= 2.0.0
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _libexecdir /usr/lib
22 An experimental attr command to manipulate extended attributes under
26 Eksperymentalna wersja polecenia attr to zarz±dzania rozszerzonymi
27 atrybutami pod systemem Linux.
30 Summary: Header files and libraries to use extended attributes
31 Summary(pl): Pliki nag³ówkowe i biblioteki
32 Group: Development/Libraries
33 Requires: %{name} = %{version}
36 Header files to develop software which manipulate extended attributes.
38 %description devel -l pl
39 Pliki nag³ówkowe potrzebne do tworzenia oprogramowania manipuluj±cego
40 rozszerzonymi atrybutami.
43 Summary: Static libraries for extended attributes
44 Summary(pl): Biblioteki statyczne attr
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}
49 Static libraries for extended attributes.
51 %description static -l pl
52 Biblioteki statyczne attr.
59 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
66 rm -rf $RPM_BUILD_ROOT
68 DIST_ROOT="$RPM_BUILD_ROOT"
69 DIST_INSTALL=`pwd`/install.manifest
70 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
71 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
72 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
74 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
75 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
76 %{__make} install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
78 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_getf,attr_listf}.3
79 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3
80 rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
82 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT/lib ; echo libattr.so.*.*.*) \
83 $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
85 echo ".so attr_get.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
86 echo ".so attr_list.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3
87 echo ".so attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3
88 echo ".so attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3
89 echo ".so attr_set.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
99 %files -f %{name}.lang
100 %defattr(644,root,root,755)
101 %doc README doc/CHANGES
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_libdir}/lib*.so.*.*
107 %defattr(644,root,root,755)
108 %{_libexecdir}/lib*.la
109 %attr(755,root,root) %{_libexecdir}/lib*.so
114 %defattr(644,root,root,755)
115 %{_libexecdir}/lib*.a