2020-06-20 10:31:36 +08:00
|
|
|
Name: liblockfile
|
2022-07-29 16:40:39 +08:00
|
|
|
Version: 1.17
|
2024-09-09 15:03:10 +08:00
|
|
|
Release: 3
|
2020-06-20 10:31:36 +08:00
|
|
|
Summary: Library providing functions to lock standard mailboxes
|
2024-09-09 15:03:10 +08:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.0-or-later
|
2020-06-20 10:31:36 +08:00
|
|
|
URL: https://github.com/miquels/liblockfile
|
|
|
|
|
Source0: https://github.com/miquels/liblockfile/archive/v%{version}.tar.gz
|
|
|
|
|
|
2024-09-09 15:03:10 +08:00
|
|
|
BuildRequires: gcc make
|
|
|
|
|
BuildRequires: ldconfig
|
2020-06-20 10:31:36 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This library implements a number of functions found in -lmail on SysV
|
|
|
|
|
systems.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Liblockfile development files
|
|
|
|
|
Requires: liblockfile = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The liblockfile-devel package contains libraries and header files for
|
|
|
|
|
liblockfile development.
|
|
|
|
|
|
2024-09-09 15:03:10 +08:00
|
|
|
%package_help
|
2020-06-20 10:31:36 +08:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n liblockfile-%{version} -p1
|
|
|
|
|
|
2024-09-09 15:03:10 +08:00
|
|
|
# There are occurrences of "install -g GROUP ...".
|
|
|
|
|
#
|
|
|
|
|
# Changing the group requires permissions that are normally not
|
|
|
|
|
# available while packaging.
|
|
|
|
|
#
|
|
|
|
|
# Let's remove "-g GROUP".
|
|
|
|
|
sed -Ei "/install/ s/-g [^ ]+//" Makefile.in
|
|
|
|
|
|
|
|
|
|
# Makefile.in mixes and messes with DESTDIR and prefix.
|
|
|
|
|
# See the following pull requests submitted upstream:
|
|
|
|
|
# https://github.com/miquels/liblockfile/pull/11
|
|
|
|
|
# https://github.com/miquels/liblockfile/pull/15
|
|
|
|
|
sed -i \
|
|
|
|
|
-e '/^prefix/s,\$(DESTDIR),,' \
|
|
|
|
|
-e 's,\(\$(\(lib\|include\|man\|nfslock\|bin\)dir)\),$(DESTDIR)\1,' \
|
|
|
|
|
-e '/-DLOCKPROG/s,\$(DESTDIR),,' Makefile.in
|
2020-06-20 10:31:36 +08:00
|
|
|
|
|
|
|
|
%build
|
2024-09-09 15:03:10 +08:00
|
|
|
%configure --enable-shared
|
2020-06-20 10:31:36 +08:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
2024-09-09 15:03:10 +08:00
|
|
|
/sbin/ldconfig -N -n %{buildroot}/%{_libdir}
|
2020-06-20 10:31:36 +08:00
|
|
|
|
|
|
|
|
%files
|
2024-09-09 15:03:10 +08:00
|
|
|
%license COPYRIGHT
|
|
|
|
|
%attr(2755,root,mail) %{_bindir}/dotlockfile
|
|
|
|
|
%{_libdir}/liblockfile.so.*
|
2020-06-20 10:31:36 +08:00
|
|
|
|
|
|
|
|
%files devel
|
2024-09-09 15:03:10 +08:00
|
|
|
%{_libdir}/liblockfile.so
|
|
|
|
|
%{_libdir}/liblockfile.a
|
|
|
|
|
%{_includedir}/maillock.h
|
|
|
|
|
%{_includedir}/lockfile.h
|
2020-06-20 10:31:36 +08:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc README Changelog
|
|
|
|
|
%{_mandir}/man1/dotlockfile.1*
|
2024-09-09 15:03:10 +08:00
|
|
|
%{_mandir}/man3/lockfile_create.3*
|
|
|
|
|
%{_mandir}/man3/maillock.3*
|
2020-06-20 10:31:36 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2024-09-09 15:03:10 +08:00
|
|
|
* Thu Sep 19 2024 Funda Wang <fundawang@yeah.net> - 1.17-3
|
|
|
|
|
- cleanup spec
|
|
|
|
|
|
2024-08-20 15:06:14 +08:00
|
|
|
* Tue Aug 20 2024 Bowen Wang<wangbowen@cqsoftware.com.cn> - 1.17-2
|
|
|
|
|
- Added 'Buildarch: noarch' to the help subpackage
|
|
|
|
|
|
2022-07-29 16:40:39 +08:00
|
|
|
* Fri Jul 29 2022 wenzhiwei <wenzhiwei@kylinos.cn> - 1.17-1
|
|
|
|
|
- Update to 1.17
|
|
|
|
|
|
2020-06-20 10:31:36 +08:00
|
|
|
* Tue Apr 14 2020 huanghaitao <huanghaitao@huawei.com> 1.14-3
|
|
|
|
|
- Package init
|