%define name attr %define version 2.4.44 %define minor_version 1 %define release %mkrel 1 %define lib_name_orig lib%{name} %define lib_major 1 %define lib_name %mklibname %{name} %{lib_major} Summary: Utility for managing filesystem extended attributes Name: %{name} Version: %{version} Release: %{release} Source0: http://mirrors.aixtools.net/sv/%{name}/%{name}-%{version}.src.tar.gz License: GPLv2 Group: System/Kernel and hardware BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot URL: http://savannah.nongnu.org/projects/attr %description A set of tools for manipulating extended attributes on filesystem objects, in particular getfattr(1) and setfattr(1). An attr(1) command is also provided which is largely compatible with the SGI IRIX tool of the same name. %package -n %{lib_name} Summary: Main library for %{lib_name_orig} Group: System/Libraries Provides: %{lib_name_orig} = %{version}-%{release} %description -n %{lib_name} This package contains the library needed to run programs dynamically linked with %{lib_name_orig}. %package -n %{lib_name}-devel Summary: Extended attribute static libraries and headers Group: Development/C Requires: %{lib_name} = %{version} Provides: %{lib_name_orig}-devel = %{version}-%{release} Provides: attr-devel = %{version}-%{release} Obsoletes: attr-devel %description -n %{lib_name}-devel This package contains the libraries and header files needed to develop programs which make use of extended attributes. For Linux programs, the documented system call API is the recommended interface, but an SGI IRIX compatibility interface is also provided. Currently only ext2, ext3, JFS and XFS support extended attributes. The SGI IRIX compatibility API built above the Linux system calls is used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8). You should install libattr-devel if you want to develop programs which make use of extended attributes. If you install libattr-devel then you'll also want to install attr. %prep %setup -q %build %configure2_5x --libdir=/%{_lib} %make %install rm -rf $RPM_BUILD_ROOT make install DIST_ROOT=%{buildroot}/ make install-dev DIST_ROOT=%{buildroot}/ make install-lib DIST_ROOT=%{buildroot}/ # fix conflict with man-pages-1.56 rm -fr $RPM_BUILD_ROOT{%_mandir/man2,%_datadir/doc} # Remove unpackaged symlinks rm -fr $RPM_BUILD_ROOT/%{_lib}/libattr.{a,la} \ $RPM_BUILD_ROOT/%{_libdir}/libattr.la %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %if %mdkversion < 200900 %post -n %{lib_name} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{lib_name} -p /sbin/ldconfig %endif %files -f %{name}.lang %defattr(-,root,root) %doc doc/CHANGES.gz README %{_bindir}/* %{_mandir}/man1/* %files -n %{lib_name} %defattr(-,root,root) %doc doc/COPYING /%{_lib}/*.so.* %files -n %{lib_name}-devel %defattr(-,root,root) %doc doc/CHANGES.gz doc/COPYING README /%{_lib}/*.so %{_libdir}/*.so %{_libdir}/*a %{_mandir}/man3/* %{_mandir}/man5/* %dir %{_includedir}/%{name} %{_includedir}/%{name}/* %changelog * Sun Dec 27 2009 Frederik Himpe <fhimpe@mandriva.org> 2.4.44-1mdv2010.1 + Revision: 482852 - Update to new version 2.4.44 - New URL - Don't run autoconf and friends, drop libtool BuildRequires * Sun Aug 09 2009 Oden Eriksson <oeriksson@mandriva.com> 2.4.43-3mdv2010.0 + Revision: 413121 - rebuild * Sat Dec 20 2008 Oden Eriksson <oeriksson@mandriva.com> 2.4.43-2mdv2009.1 + Revision: 316460 - rebuild * Tue Aug 05 2008 Frederik Himpe <fhimpe@mandriva.org> 2.4.43-1mdv2009.0 + Revision: 264074 - New version 2.4.43 * Mon Jun 16 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.4.41-2mdv2009.0 + Revision: 220467 - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Mon Feb 11 2008 Frederik Himpe <fhimpe@mandriva.org> 2.4.41-1mdv2008.1 + Revision: 165416 - New upstream release + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Mon Nov 19 2007 Jérôme Soyer <saispo@mandriva.org> 2.4.39-1mdv2008.1 + Revision: 110198 - New release 2.4.39 * Tue Sep 18 2007 Guillaume Rousse <guillomovitch@mandriva.org> 2.4.38-4mdv2008.0 + Revision: 89578 - rebuild * Thu Jun 07 2007 Anssi Hannula <anssi@mandriva.org> 2.4.38-3mdv2008.0 + Revision: 36139 - rebuild with correct optflags + Christiaan Welvaart <spturtle@mandriva.org> - 2.4.38 * Sat Mar 03 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.4.32-2mdv2007.0 + Revision: 131826 - Rebuilt. * Tue Oct 31 2006 Oden Eriksson <oeriksson@mandriva.com> 2.4.32-1mdv2007.1 + Revision: 74654 - Import attr * Sun Jul 09 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.4.32-1mdv2007.0 - 2.4.32. * Fri May 05 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.4.28-1mdk - 2.4.28 * Wed Jan 11 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.4.23-2mdk - add BuildRequires: libtool * Wed Aug 03 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.4.23-1mdk - 2.4.23. * Mon May 09 2005 Frederic Crozat <fcrozat@mandriva.com> 2.4.16-2mdk - Don't package .la file, libtool doesn't handle well .a and .so.* in separates directories * Mon May 24 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 2.4.16-1mdk - 2.4.16. * Fri Apr 30 2004 Juan Quintela <quintela@mandrakesoft.com> 2.4.15-1mdk - 2.4.15.