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/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
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.
71 install %{_datadir}/automake/config.* .
74 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
75 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
78 LLDFLAGS="%{rpmldflags}"
81 rm -rf $RPM_BUILD_ROOT
83 DIST_ROOT=$RPM_BUILD_ROOT
84 DIST_INSTALL=`pwd`/install.manifest
85 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
86 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
87 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
90 DIST_MANIFEST=$DIST_INSTALL
91 %{__make} install-dev \
92 DIST_MANIFEST=$DIST_INSTALL_DEV
93 %{__make} install-lib \
94 DIST_MANIFEST=$DIST_INSTALL_LIB
96 ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libattr.so.*.*.*) \
97 $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
99 %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
100 $RPM_BUILD_ROOT%{_libexecdir}/libattr.la
102 rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
106 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
109 rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.{so,la,a}
112 rm -rf $RPM_BUILD_ROOT
114 %post -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
117 %files -f %{name}.lang
118 %defattr(644,root,root,755)
119 %doc README doc/CHANGES
120 %attr(755,root,root) %{_bindir}/attr
121 %attr(755,root,root) %{_bindir}/getfattr
122 %attr(755,root,root) %{_bindir}/setfattr
123 %attr(755,root,root) %{_libdir}/libattr.so.*.*.*
124 %attr(755,root,root) %ghost %{_libdir}/libattr.so.1
125 %{_mandir}/man1/attr.1*
126 %{_mandir}/man1/getfattr.1*
127 %{_mandir}/man1/setfattr.1*
128 %{_mandir}/man5/attr.5*
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libexecdir}/libattr.so
133 %{_libexecdir}/libattr.la
135 %{_mandir}/man3/attr_*.3*
138 %defattr(644,root,root,755)
139 %{_libexecdir}/libattr.a