Group :: Sistema/Bibliotecas
RPM: liblockfile
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: liblockfile
Version: 1.08
Release: alt2
Summary: NFS-safe locking library, includes dotlockfile program
License: LGPL v2+ (library), GPL v2+ (dotlockfile)
Group: System/Libraries
Packager: Vladimir V. Kamarzin <vvk at altlinux.org>
#http://ftp.debian.org/debian/pool/main/libl/liblockfile/%{name}_%version.orig.tar.gz
Source: %name-%version.tar
%description
Liblockfile is a shared library with NFS-safe locking functions. It
includes the command-line utility ``dotlockfile''.
%package devel
Summary: Header files for liblockfile library
License: LGPL v2+
Group: Development/C
Requires: %name = %version-%release
%description devel
This is a development package for liblockfile. It includes headers and
documentation.
%prep
%setup
%build
autoconf
%configure \
--enable-shared \
--with-mailgroup
%make
%install
install -d %buildroot{%_libdir,%_bindir,%_includedir,%_mandir/man{1,3}}
%make_install install \
MAILGROUP=%(id -gn) \
ROOT=%buildroot
ln -sf $(basename %buildroot%_libdir/liblockfile.so.1.*) %buildroot%_libdir/liblockfile.so.1
%files
%doc COPYRIGHT README
%_bindir/dotlockfile
%_libdir/liblockfile.so.*.*
%ghost %_libdir/liblockfile.so.1
%_man1dir/dotlockfile.1*
%files devel
%_libdir/liblockfile.so
%_includedir/lockfile.h
%_includedir/maillock.h
%_man3dir/lockfile_create.3*
%_man3dir/maillock.3*
%changelog
…
Todas as alterações você pod ver aqui
Version: 1.08
Release: alt2
Summary: NFS-safe locking library, includes dotlockfile program
License: LGPL v2+ (library), GPL v2+ (dotlockfile)
Group: System/Libraries
Packager: Vladimir V. Kamarzin <vvk at altlinux.org>
#http://ftp.debian.org/debian/pool/main/libl/liblockfile/%{name}_%version.orig.tar.gz
Source: %name-%version.tar
%description
Liblockfile is a shared library with NFS-safe locking functions. It
includes the command-line utility ``dotlockfile''.
%package devel
Summary: Header files for liblockfile library
License: LGPL v2+
Group: Development/C
Requires: %name = %version-%release
%description devel
This is a development package for liblockfile. It includes headers and
documentation.
%prep
%setup
%build
autoconf
%configure \
--enable-shared \
--with-mailgroup
%make
%install
install -d %buildroot{%_libdir,%_bindir,%_includedir,%_mandir/man{1,3}}
%make_install install \
MAILGROUP=%(id -gn) \
ROOT=%buildroot
ln -sf $(basename %buildroot%_libdir/liblockfile.so.1.*) %buildroot%_libdir/liblockfile.so.1
%files
%doc COPYRIGHT README
%_bindir/dotlockfile
%_libdir/liblockfile.so.*.*
%ghost %_libdir/liblockfile.so.1
%_man1dir/dotlockfile.1*
%files devel
%_libdir/liblockfile.so
%_includedir/lockfile.h
%_includedir/maillock.h
%_man3dir/lockfile_create.3*
%_man3dir/maillock.3*
%changelog
…
Todas as alterações você pod ver aqui