1 Summary: Utility for managing filesystem extended attributes
2 Summary(pl): Narzêdzia do zarz±dzania rozszerzonymi atrybutami systemu plików
6 License: LGPL v2+ (library), GPL v2+ (utilities)
7 Group: Applications/System
8 Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
9 # Source0-md5: af9b418a6f542aaab39d132d3c94a730
10 Patch0: %{name}-miscfix.patch
11 Patch1: %{name}-po.patch
12 Patch2: %{name}-lt.patch
13 URL: http://oss.sgi.com/projects/xfs/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: gettext-devel
17 BuildRequires: sed >= 4.0
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _libdir /%{_lib}
23 %define _libexecdir /usr/%{_lib}
26 An experimental attr command to manipulate extended attributes under
30 Eksperymentalna wersja polecenia attr to zarz±dzania rozszerzonymi
31 atrybutami pod systemem Linux.
34 Summary: Header files and libraries to use extended attributes
35 Summary(pl): Pliki nag³ówkowe i biblioteki do korzystania z rozszerzonych atrybutów
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 Header files to develop software which manipulate extended attributes.
42 %description devel -l pl
43 Pliki nag³ówkowe potrzebne do tworzenia oprogramowania manipuluj±cego
44 rozszerzonymi atrybutami.
47 Summary: Static libraries for extended attributes
48 Summary(pl): Biblioteki statyczne do korzystania z rozszerzonych atrybutów
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
53 Static libraries for extended attributes.
55 %description static -l pl
56 Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
69 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
70 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
75 rm -rf $RPM_BUILD_ROOT
77 DIST_ROOT=$RPM_BUILD_ROOT
78 DIST_INSTALL=`pwd`/install.manifest
79 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
80 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
81 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
84 DIST_MANIFEST=$DIST_INSTALL
85 %{__make} install-dev \
86 DIST_MANIFEST=$DIST_INSTALL_DEV
87 %{__make} install-lib \
88 DIST_MANIFEST=$DIST_INSTALL_LIB
90 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_getf,attr_listf}.3
91 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3
92 rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
94 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \
95 $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
97 %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
98 $RPM_BUILD_ROOT%{_libexecdir}/libattr.la
100 echo ".so attr_get.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
101 echo ".so attr_list.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3
102 echo ".so attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3
103 echo ".so attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3
104 echo ".so attr_set.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3
109 rm -rf $RPM_BUILD_ROOT
111 %post -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
114 %files -f %{name}.lang
115 %defattr(644,root,root,755)
116 %doc README doc/CHANGES
117 %attr(755,root,root) %{_bindir}/*
118 %attr(755,root,root) %{_libdir}/lib*.so.*.*
119 %{_mandir}/man[158]/*
122 %defattr(644,root,root,755)
123 %{_libexecdir}/lib*.la
124 %attr(755,root,root) %{_libexecdir}/lib*.so
129 %defattr(644,root,root,755)
130 %{_libexecdir}/lib*.a