1 Summary: Utility for managing filesystem extended attributes
2 Summary(pl): Narzêdzia do zarz±dzania rozszerzonymi atrybutami systemu plików
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 # Source0-md5: 50ea2fb53bed58dc2f407ed73786a9e2
11 Patch0: %{name}-miscfix.patch
12 URL: http://oss.sgi.com/projects/xfs/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: gettext-devel
16 BuildRequires: xfsprogs-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _libexecdir /usr/lib
24 An experimental attr command to manipulate extended attributes under
28 Eksperymentalna wersja polecenia attr to zarz±dzania rozszerzonymi
29 atrybutami pod systemem Linux.
32 Summary: Header files and libraries to use extended attributes
33 Summary(pl): Pliki nag³ówkowe i biblioteki do korzystania z rozszerzonych atrybutów
34 Group: Development/Libraries
35 Requires: %{name} = %{version}
38 Header files to develop software which manipulate extended attributes.
40 %description devel -l pl
41 Pliki nag³ówkowe potrzebne do tworzenia oprogramowania manipuluj±cego
42 rozszerzonymi atrybutami.
45 Summary: Static libraries for extended attributes
46 Summary(pl): Biblioteki statyczne do korzystania z rozszerzonych atrybutów
47 Group: Development/Libraries
48 Requires: %{name}-devel = %{version}
51 Static libraries for extended attributes.
53 %description static -l pl
54 Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
65 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
66 OPTIMIZER="%{rpmcflags}"
71 rm -rf $RPM_BUILD_ROOT
73 DIST_ROOT=$RPM_BUILD_ROOT
74 DIST_INSTALL=`pwd`/install.manifest
75 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
76 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
77 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
80 DIST_MANIFEST=$DIST_INSTALL
81 %{__make} install-dev \
82 DIST_MANIFEST=$DIST_INSTALL_DEV
83 %{__make} install-lib \
84 DIST_MANIFEST=$DIST_INSTALL_LIB
86 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_getf,attr_listf}.3
87 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3
88 rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
90 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \
91 $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
93 echo ".so attr_get.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
94 echo ".so attr_list.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3
95 echo ".so attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3
96 echo ".so attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3
97 echo ".so attr_set.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3
102 rm -rf $RPM_BUILD_ROOT
104 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
107 %files -f %{name}.lang
108 %defattr(644,root,root,755)
109 %doc README doc/CHANGES
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/lib*.so.*.*
112 %{_mandir}/man[158]/*
115 %defattr(644,root,root,755)
116 %{_libexecdir}/lib*.la
117 %attr(755,root,root) %{_libexecdir}/lib*.so
122 %defattr(644,root,root,755)
123 %{_libexecdir}/lib*.a