78 lines
1.7 KiB
RPMSpec
78 lines
1.7 KiB
RPMSpec
%define utempter_compat_ver 0.5.2
|
|
|
|
Summary: A privileged helper for utmp/wtmp updates
|
|
Name: libutempter
|
|
Version: 1.2.1
|
|
Release: 3
|
|
License: LGPLv2+
|
|
URL: https://github.com/altlinux/libutempter
|
|
|
|
Source0: http://download.basealt.ru/pub/people/ldv/libutempter/%{name}-%{version}.tar.gz
|
|
|
|
Patch0: test-libutempter.patch
|
|
|
|
BuildRequires: gcc CUnit-devel
|
|
Requires(pre): shadow-utils
|
|
|
|
Provides: utempter = %{utempter_compat_ver}
|
|
|
|
%description
|
|
This library supports saving session records to
|
|
to utmp and wtmp files.
|
|
|
|
%package devel
|
|
Summary: Development package for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Files for development with %{name}.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" \
|
|
libdir="%{_libdir}" libexecdir="%{_libexecdir}"
|
|
|
|
%check
|
|
make check
|
|
|
|
%install
|
|
%make_install libdir="%{_libdir}" libexecdir="%{_libexecdir}"
|
|
%delete_la_and_a
|
|
|
|
%pre
|
|
%{_sbindir}/groupadd -g 22 -r -f utmp || :
|
|
%{_sbindir}/groupadd -g 35 -r -f utempter || :
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%doc COPYING README
|
|
%{_libdir}/libutempter.so.0
|
|
%{_libdir}/libutempter.so.1.*
|
|
%dir %attr(755,root,utempter) %{_libexecdir}/utempter
|
|
%attr(2711,root,utmp) %{_libexecdir}/utempter/utempter
|
|
|
|
%files devel
|
|
%{_includedir}/utempter.h
|
|
%{_libdir}/libutempter.so
|
|
|
|
%files help
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Wed Feb 8 2023 fuanan <fuanan3@h-partners.com> - 1.2.1-3
|
|
- add test unit for libutempter
|
|
|
|
* Fri Nov 6 2020 yixiangzhike <zhangxingliang3@huawei.com> - 1.2.1-2
|
|
- Modify the URL
|
|
|
|
* Mon Aug 24 2020 SimpleUpdate Robot <tc@openeuler.org> - 1.2.1-1
|
|
- Upgrade to version 1.2.1
|
|
|
|
* Thu Sep 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.6-16
|
|
- Package init
|