1 Summary: Utility for managing filesystem extended attributes
2 Summary(pl.UTF-8): 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}-1.tar.gz
9 # Source0-md5: 867eb6e8863e39900382d77e2b538696
10 Patch0: %{name}-miscfix.patch
11 Patch1: %{name}-lt.patch
12 Patch2: %{name}-LDFLAGS.patch
13 URL: http://oss.sgi.com/projects/xfs/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: gettext-devel
17 BuildRequires: libtool
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
29 %description -l pl.UTF-8
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.UTF-8): 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.UTF-8
43 Pliki nagłówkowe potrzebne do tworzenia oprogramowania manipulującego
44 rozszerzonymi atrybutami.
47 Summary: Static libraries for extended attributes
48 Summary(pl.UTF-8): 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.UTF-8
56 Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
71 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
72 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
75 LLDFLAGS="%{rpmldflags}"
78 rm -rf $RPM_BUILD_ROOT
80 DIST_ROOT=$RPM_BUILD_ROOT
81 DIST_INSTALL=`pwd`/install.manifest
82 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
83 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
84 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
87 DIST_MANIFEST=$DIST_INSTALL
88 %{__make} install-dev \
89 DIST_MANIFEST=$DIST_INSTALL_DEV
90 %{__make} install-lib \
91 DIST_MANIFEST=$DIST_INSTALL_LIB
93 ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libattr.so.*.*.*) \
94 $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
96 %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
97 $RPM_BUILD_ROOT%{_libexecdir}/libattr.la
99 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_getf,attr_listf}.3
100 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3
101 rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
103 echo ".so attr_get.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
104 echo ".so attr_list.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3
105 echo ".so attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3
106 echo ".so attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3
107 echo ".so attr_set.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3
111 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
114 rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.{so,la,a}
117 rm -rf $RPM_BUILD_ROOT
119 %post -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
122 %files -f %{name}.lang
123 %defattr(644,root,root,755)
124 %doc README doc/CHANGES
125 %attr(755,root,root) %{_bindir}/attr
126 %attr(755,root,root) %{_bindir}/getfattr
127 %attr(755,root,root) %{_bindir}/setfattr
128 %attr(755,root,root) %{_libdir}/libattr.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libattr.so.1
130 %{_mandir}/man1/attr.1*
131 %{_mandir}/man1/getfattr.1*
132 %{_mandir}/man1/setfattr.1*
133 %{_mandir}/man5/attr.5*
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libexecdir}/libattr.so
138 %{_libexecdir}/libattr.la
140 %{_mandir}/man3/attr_*.3*
143 %defattr(644,root,root,755)
144 %{_libexecdir}/libattr.a