Group :: System/Kernel and hardware
RPM: attr
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_with static
Name: attr
Version: 2.4.43
Release: alt2
Summary: Utility for managing filesystem extended attributes
License: LGPL
Group: System/Kernel and hardware
Url: http://oss.sgi.com/projects/xfs/
Source: %name-%version-%release.tar
Requires: lib%name = %version-%release
%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, extended attributes manipulation library
Group: System/Libraries
%package -n lib%name-devel
Summary: Extended attribute static libraries and headers
Group: Development/C
Requires: lib%name = %version-%release
%package -n lib%name-devel-static
Summary: Extended attribute static libraries and headers
Group: Development/C
Requires: lib%name-devel = %version-%release
%description -n lib%name
This package contains the library needed to run programs dynamically
linked with lib%name.
%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 this package if you want to develop programs
which make use of extended attributes.
%description -n lib%name-devel-static
This package contains the static libraries needed to
develop programs which make use of extended attributes.
This is an *experimental* interface, currently only XFS is
supported, and the interface may change.
You should install this package if you want to develop programs
which make use of extended attributes.
%prep
%setup
%build
export DEBUG="-DNDEBUG"
%configure
%make_build
%install
make install install-lib install-dev \
DIST_ROOT=%buildroot PKG_LIB_DIR=/%_lib PKG_DEVLIB_DIR=%_libdir
rm -rf %buildroot%_datadir/doc/%name
rm -f %buildroot/%_lib/*.{a,la,so}
ln -sf ../../%_lib/lib%name.so.1 %buildroot%_libdir/lib%name.so
%find_lang %name
%files -f %name.lang
%doc README doc/CHANGES.gz
%_bindir/*
%_mandir/man[15]/*
%files -n lib%name
/%_lib/*.so.*
%files -n lib%name-devel
%_libdir/*.so
%_mandir/man[23]/*
%_includedir/*
%if_with static
%files -n lib%name-devel-static
%_libdir/*.a
%endif
%changelog
…
Full changelog you can see here
Name: attr
Version: 2.4.43
Release: alt2
Summary: Utility for managing filesystem extended attributes
License: LGPL
Group: System/Kernel and hardware
Url: http://oss.sgi.com/projects/xfs/
Source: %name-%version-%release.tar
Requires: lib%name = %version-%release
%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, extended attributes manipulation library
Group: System/Libraries
%package -n lib%name-devel
Summary: Extended attribute static libraries and headers
Group: Development/C
Requires: lib%name = %version-%release
%package -n lib%name-devel-static
Summary: Extended attribute static libraries and headers
Group: Development/C
Requires: lib%name-devel = %version-%release
%description -n lib%name
This package contains the library needed to run programs dynamically
linked with lib%name.
%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 this package if you want to develop programs
which make use of extended attributes.
%description -n lib%name-devel-static
This package contains the static libraries needed to
develop programs which make use of extended attributes.
This is an *experimental* interface, currently only XFS is
supported, and the interface may change.
You should install this package if you want to develop programs
which make use of extended attributes.
%prep
%setup
%build
export DEBUG="-DNDEBUG"
%configure
%make_build
%install
make install install-lib install-dev \
DIST_ROOT=%buildroot PKG_LIB_DIR=/%_lib PKG_DEVLIB_DIR=%_libdir
rm -rf %buildroot%_datadir/doc/%name
rm -f %buildroot/%_lib/*.{a,la,so}
ln -sf ../../%_lib/lib%name.so.1 %buildroot%_libdir/lib%name.so
%find_lang %name
%files -f %name.lang
%doc README doc/CHANGES.gz
%_bindir/*
%_mandir/man[15]/*
%files -n lib%name
/%_lib/*.so.*
%files -n lib%name-devel
%_libdir/*.so
%_mandir/man[23]/*
%_includedir/*
%if_with static
%files -n lib%name-devel-static
%_libdir/*.a
%endif
%changelog
…
Full changelog you can see here