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: http://mirror.lihnidos.org/GNU/savannah/attr/%{name}-%{version}.src.tar.gz
9 # Source0-md5: d132c119831c27350e10b9f885711adc
10 Patch0: %{name}-miscfix.patch
11 Patch1: %{name}-lt.patch
12 Patch2: %{name}-LDFLAGS.patch
13 URL: http://savannah.nongnu.org/projects/attr
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: gettext-devel
17 BuildRequires: libtool
18 BuildRequires: rpmbuild(macros) >= 1.402
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _libdir /%{_lib}
24 %define _libexecdir /usr/%{_lib}
27 An experimental attr command to manipulate extended attributes under
30 %description -l pl.UTF-8
31 Eksperymentalna wersja polecenia attr to zarządzania rozszerzonymi
32 atrybutami pod systemem Linux.
35 Summary: Header files and libraries to use extended attributes
36 Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki do korzystania z rozszerzonych atrybutów
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 Header files to develop software which manipulate extended attributes.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe potrzebne do tworzenia oprogramowania manipulującego
45 rozszerzonymi atrybutami.
48 Summary: Static libraries for extended attributes
49 Summary(pl.UTF-8): Biblioteki statyczne do korzystania z rozszerzonych atrybutów
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 Static libraries for extended attributes.
56 %description static -l pl.UTF-8
57 Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
68 mv install-sh install-custom-sh
72 install %{_datadir}/automake/config.* .
73 mv install-custom-sh install-sh
76 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
77 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
80 LLDFLAGS="%{rpmldflags}"
83 rm -rf $RPM_BUILD_ROOT
85 DIST_ROOT=$RPM_BUILD_ROOT
86 DIST_INSTALL=`pwd`/install.manifest
87 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
88 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
89 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
92 DIST_MANIFEST=$DIST_INSTALL
93 %{__make} install-dev \
94 DIST_MANIFEST=$DIST_INSTALL_DEV
95 %{__make} install-lib \
96 DIST_MANIFEST=$DIST_INSTALL_LIB
98 ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libattr.so.*.*.*) \
99 $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
101 %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
102 $RPM_BUILD_ROOT%{_libexecdir}/libattr.la
104 rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
108 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
111 rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.{so,la,a}
114 rm -rf $RPM_BUILD_ROOT
116 %post -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
119 %files -f %{name}.lang
120 %defattr(644,root,root,755)
121 %doc README doc/CHANGES
122 %attr(755,root,root) %{_bindir}/attr
123 %attr(755,root,root) %{_bindir}/getfattr
124 %attr(755,root,root) %{_bindir}/setfattr
125 %attr(755,root,root) %{_libdir}/libattr.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libattr.so.1
127 %{_mandir}/man1/attr.1*
128 %{_mandir}/man1/getfattr.1*
129 %{_mandir}/man1/setfattr.1*
130 %{_mandir}/man5/attr.5*
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libexecdir}/libattr.so
135 %{_libexecdir}/libattr.la
137 %{_mandir}/man3/attr_*.3*
140 %defattr(644,root,root,755)
141 %{_libexecdir}/libattr.a