8c55e1
Name:           liblockfile
8c55e1
Version:        1.08
6c6d65
Release:        17%{?dist}
8c55e1
Summary:        This implements a number of functions found in -lmail on SysV systems
8c55e1
8c55e1
Group:          Applications/System
8c55e1
# regarding license please see file COPYRIGHT
8c55e1
License:        GPLv2+ and LGPLv2+
8c55e1
URL:            http://packages.qa.debian.org/libl/liblockfile.html
8c55e1
Source0:        http://ftp.de.debian.org/debian/pool/main/libl/liblockfile/liblockfile_1.08.orig.tar.gz
8c55e1
8c55e1
%description
8c55e1
This library implements a number of functions found in -lmail on SysV
8c55e1
systems. These functions are designed to lock the standard mailboxes in
8c55e1
/var/mail (or wherever the system puts them).
8c55e1
8c55e1
In additions, this library adds a number of functions to create,
8c55e1
manage and remove generic lockfiles.
8c55e1
8c55e1
%package devel
8c55e1
Summary: Development files for %{name}
8c55e1
Group: Development/Libraries
8c55e1
Requires: %{name} = %{version}-%{release}
8c55e1
8c55e1
%description devel 
8c55e1
The %{name}-devel package contains libraries and header files for
8c55e1
developing applications that use %{name}.
8c55e1
8c55e1
8c55e1
%prep
8c55e1
%setup -q -n %{name}-%{version}
8c55e1
8c55e1
# remove -g root from install
8c55e1
sed -i "s/install -g root -m 755 dotlockfile \$(ROOT)\$(bindir);/install -m 755 dotlockfile \$(ROOT)\$(bindir);/" Makefile.in
8c55e1
8c55e1
8c55e1
%build
8c55e1
%configure --enable-shared
8c55e1
make %{?_smp_mflags} 
8c55e1
8c55e1
8c55e1
%install
8c55e1
rm -rf %{buildroot}
8c55e1
mkdir -p %{buildroot}/%{_includedir}
8c55e1
mkdir -p %{buildroot}/%{_bindir}
8c55e1
mkdir -p %{buildroot}/%{_libdir}
8c55e1
mkdir -p %{buildroot}/%{_mandir}/man1
8c55e1
mkdir -p %{buildroot}/%{_mandir}/man3
8c55e1
make ROOT=%{buildroot} install
8c55e1
8c55e1
ldconfig -N -n %{buildroot}/%{_libdir}
8c55e1
8c55e1
8c55e1
%post -p /sbin/ldconfig
8c55e1
8c55e1
%postun -p /sbin/ldconfig
8c55e1
8c55e1
8c55e1
%files
8c55e1
%{_bindir}/dotlockfile
8c55e1
%{_libdir}/liblockfile.so.1.0
8c55e1
%{_libdir}/liblockfile.so.1
8c55e1
%{_mandir}/man1/dotlockfile.1*
8c55e1
%doc README COPYRIGHT Changelog
8c55e1
8c55e1
8c55e1
%files devel
8c55e1
%{_libdir}/liblockfile.so
8c55e1
%{_includedir}/maillock.h
8c55e1
%{_includedir}/lockfile.h
8c55e1
%{_mandir}/man3/lockfile_create.3*
8c55e1
%{_mandir}/man3/maillock.3*
8c55e1
8c55e1
8c55e1
%changelog
6c6d65
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.08-17
6c6d65
- Mass rebuild 2014-01-24
6c6d65
6c6d65
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.08-16
6c6d65
- Mass rebuild 2013-12-27
6c6d65
8c55e1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-15
8c55e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8c55e1
8c55e1
* Fri Sep 14 2012 Matthias Runge <mrunge@redhat.com> - 1.08-14
8c55e1
- license is GPLv2+ and LGPLv2+
8c55e1
- minor spec cleanups
8c55e1
8c55e1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-13
8c55e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8c55e1
8c55e1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-12
8c55e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8c55e1
8c55e1
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-11
8c55e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8c55e1
8c55e1
* Sat Aug 14 2010 Matthias Runge <mrunge@matthias-runge.de> 1.08.10
8c55e1
- replace linking of libs with ldconfig
8c55e1
8c55e1
* Fri Aug 6 2010 Matthias Runge <mrunge@matthias-runge.de> 1.08-9
8c55e1
- change description and summary of -devel-subpackage
8c55e1
- make wildcard for man-pages even match against uncompressed files
8c55e1
8c55e1
* Fri Aug 6 2010 Matthias Runge <mrunge@matthias-runge.de> 1.08-8
8c55e1
- rename to liblockfile
8c55e1
- sorting file to main and -devel package
8c55e1
- explicitly list files in files-section
8c55e1
8c55e1
* Fri Aug 6 2010 Matthias Runge <mrunge@matthias-runge.de> 1.08-7
8c55e1
- remove COPYRIGHT from devel
8c55e1
- just fix one missing link from upstream
8c55e1
8c55e1
* Thu Aug 5 2010 Matthias Runge <mrunge@matthias-runge.de> 1.08-6
8c55e1
- include COPYRIGHT in -devel, too
8c55e1
- remove unnecessary exclude
8c55e1
8c55e1
* Tue Aug 3 2010 Matthias Runge <mrunge@matthias-runge.de> 1.08-5
8c55e1
- fix shared lib warning, sort lib to devel
8c55e1
- choose GPLv2+ as License (until we know better)
8c55e1
8c55e1
* Wed Jul 28 2010 Matthias Runge <mrunge@matthias-runge.de> 1.08-4
8c55e1
- rename to lockfile
8c55e1
- sort lib to top package, fix license, build shared lib
8c55e1
8c55e1
* Sun Jul 18 2010 Matthias Runge <mrunge@matthias-runge.de> 1.08-3
8c55e1
- fix up hidden dirs, and links
8c55e1
8c55e1
* Wed Jun 30 2010 Matthias Runge <mrunge@matthias-runge.de> 1.08-2
8c55e1
- replace patch by sed-script
8c55e1
8c55e1
* Sat May 22 2010 Matthias Runge <mrunge@matthias-runge.de> 1.08-1
8c55e1
- initial build