%define name xfsprogs %define version 2.8.18 %define release %mkrel 1 %define lib_name_orig libxfs %define lib_major 1 %define lib_name %mklibname xfs %{lib_major} Summary: Utilities for managing the XFS filesystem Name: %{name} Version: %{version} Release: %{release} Source0: ftp://oss.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.bz2 License: GPL Group: System/Kernel and hardware BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: libext2fs-devel BuildRequires: libreadline-devel BuildRequires: libtermcap-devel BuildRequires: libtool Prereq: /sbin/ldconfig URL: http://oss.sgi.com/projects/xfs/ Requires: common-licenses %description A set of commands to use the XFS filesystem, including mkfs.xfs. XFS is a high performance journaling filesystem which originated on the SGI IRIX platform. It is completely multi-threaded, can support large files and large filesystems, extended attributes, variable block sizes, is extent based, and makes extensive use of Btrees (directories, extents, free space) to aid both performance and scalability. Refer to the documentation at http://oss.sgi.com/projects/xfs/ for complete details. This implementation is on-disk compatible with the IRIX version of XFS. %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: XFS filesystem-specific static libraries and headers Group: Development/C Requires: %{lib_name} = %{version} Provides: %{lib_name_orig}-devel = %{version}-%{release} Provides: xfs-devel = %{version}-%{release} Obsoletes: xfs-devel %description -n %{lib_name}-devel %{lib_name}-devel contains the libraries and header files needed to develop XFS filesystem-specific programs. You should install %{lib_name}-devel if you want to develop XFS filesystem-specific programs, If you install %{lib_name}-devel, you'll also want to install xfsprogs. %prep %setup -q # make it lib64 aware, better make a patch? perl -pi -e "/(libuuid|pkg_s?lib_dir)=/ and s|/lib\b|/%{_lib}|;" configure %build aclocal && autoconf %configure2_5x \ --libdir=/%{_lib} \ --libexecdir=%{_libdir} \ --sbindir=/sbin \ --bindir=/usr/sbin \ --enable-gettext=yes \ --enable-readline=yes \ --enable-editline=no \ --enable-termcap=yes \ --enable-shared=yes \ --enable-shared-uuid=yes %make DEBUG=-DNDEBUG OPTIMIZER="${RPM_OPT_FLAGS}" %install rm -rf $RPM_BUILD_ROOT make install DIST_ROOT=%{buildroot}/ make install-dev DIST_ROOT=%{buildroot}/ # nuke files already packaged as %doc rm -rf %{buildroot}%{_datadir}/doc/xfsprogs/ %find_lang %{name} %clean rm -rf %{buildroot} %post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %doc doc/CHANGES.gz doc/COPYING doc/CREDITS README %{_sbindir}/xfs_admin %{_sbindir}/xfs_bmap %{_sbindir}/xfs_check %{_sbindir}/xfs_copy %{_sbindir}/xfs_db %{_sbindir}/xfs_freeze %{_sbindir}/xfs_growfs %{_sbindir}/xfs_info %{_sbindir}/xfs_io %{_sbindir}/xfs_logprint %{_sbindir}/xfs_mkfile %{_sbindir}/xfs_ncheck %{_sbindir}/xfs_quota %{_sbindir}/xfs_rtcp /sbin/fsck.xfs /sbin/mkfs.xfs /sbin/xfs_repair %{_mandir}/man[85]/* %files -n %{lib_name} %defattr(-,root,root) %doc README /%{_lib}/*.so.* %files -n %{lib_name}-devel %defattr(-,root,root) %doc doc/PORTING README /%{_lib}/*.so /%{_lib}/*a %{_libdir}/*so %{_libdir}/*a %{_includedir}/xfs %{_includedir}/disk %{_mandir}/man3/* %changelog * Mon Feb 12 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.8.18-1mdv2007.0 + Revision: 118890 - Release 2.8.18-1. - Import xfsprogs * Fri Aug 25 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.8.11-1mdv2007.0 - 2.8.11. * Sat Jul 08 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.8.4-1mdv2007.0 - 2.8.4. - Added update patch for pl translation. * Thu May 04 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.7.11-1mdk - 2.7.11 * Wed Jan 11 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.6.36-4mdk - add BuildRequires: libtool * Sun Jan 01 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 2.6.36-3mdk - Rebuild * Sat Aug 06 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.6.36-2mdk - add BuildRequires: libreadline-devel libtermcap-devel * Tue Aug 02 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.6.36-1mdk - 2.6.36. * Sat May 23 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 2.6.13-1mdk - 2.6.13. * Thu Apr 29 2004 Juan Quintela <quintela@mandrakesoft.com> 2.6.10-1mdk - 2.6.10. * Thu Feb 26 2004 Thomas Backlund <tmb@mandrake.org> 2.6.3-1mdk - update to 2.6.3 - done by Per Øyvind Karlsen * 2.6.2 * drop prefix tag * cosmetics * Wed Aug 13 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.5.4-2mdk - Enforce current practise to BuildRequires: libxfs-devel * Fri Aug 8 2003 Juan Quintela <quintela@mandrakesoft.com> 2.5.4-1mdk - binaries back at /sbin & /usr/sbin. - 2.5.4. * Fri Jul 18 2003 Juan Quintela <quintela@mandrakesoft.com> 2.4.12-1mdk - 2.4.12. * Tue Jun 17 2003 Juan Quintela <quintela@trasno.org> 2.3.9-1mdk - 2.3.9. * Wed Apr 23 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.0.6-2mdk - make it lib64 aware - nuke files already packaged as %%doc * Wed Jul 24 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.6-1mdk - 2.0.6 * Wed Jul 10 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.3-2mdk - fixed changelog typo. Thanks eagle-eye gc for pointing it out to me ;o) * Wed Jul 10 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.3-1mdk - 2.0.3 * Thu Mar 7 2002 Frederic Lepied <flepied@mandrakesoft.com> 2.0.0-1mdk - 2.0.0 * Tue Feb 5 2002 Jeff Garzik <jgarzik@mandrakesoft.com> 1.3.13-2mdk - Requires: common-licenses - use %%configure2_5x * Tue Nov 20 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3.13-1mdk - 1.3.13. * Sat Sep 29 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3.7-1mdk - 1.3.7. * Fri Sep 28 2001 Stefan van der Eijk <stefan@eijk.nu> 1.3.5-3mdk - BuildRequires: libext2fs-devel - Copyright --> License * Fri Sep 7 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3.5-2mdk - Fix provides. * Fri Sep 7 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3.5-1mdk - 1.3.5. - Split lib in subpackage. - Rework the spec. * Wed May 2 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.2.0-1mdk - Fist attempt based on the SGI spec. # end of file