%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: attr Version: 2.4.46 Release: %mkrel 5 Source0: http://mirrors.aixtools.net/sv/%{name}/%{name}-%{version}.src.tar.gz Patch0: attr-2.4.46-libexec.patch License: GPLv2 Group: System/Kernel and hardware 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 License: LGPLv2.1 Requires(pre): filesystem >= 2.1.9-18 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 License: LGPLv2.1 Requires(pre): filesystem >= 2.1.9-18 Requires: %{lib_name} = %{version} Provides: %{lib_name_orig}-devel = %{version}-%{release} Provides: attr-devel = %{version}-%{release} Obsoletes: attr-devel < %{version}-%{release} %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 %apply_patches %build %configure2_5x %make %install 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 %{buildroot}{%_mandir/man2,%_datadir/doc} # Remove unpackaged symlinks rm -fr %{buildroot}%{_libdir}/libattr.la %find_lang %{name} %files -f %{name}.lang %doc doc/CHANGES.gz README %{_bindir}/* %{_mandir}/man1/* %files -n %{lib_name} %{_libdir}/*.so.* %files -n %{lib_name}-devel %doc doc/CHANGES.gz README %{_libdir}/*.so %{_libdir}/*a %{_mandir}/man3/* %{_mandir}/man5/* %dir %{_includedir}/%{name} %{_includedir}/%{name}/*