Package init

This commit is contained in:
overweight 2019-09-30 10:58:44 -04:00
commit 4aa05b6671
2 changed files with 63 additions and 0 deletions

BIN
libutempter-1.1.6.tar.bz2 Normal file

Binary file not shown.

63
libutempter.spec Normal file
View File

@ -0,0 +1,63 @@
%define utempter_compat_ver 0.5.2
Summary: A privileged helper for utmp/wtmp updates
Name: libutempter
Version: 1.1.6
Release: 16
License: LGPLv2+
URL: ftp://ftp.altlinux.org/pub/people/ldv/utempter
Source0: http://download.basealt.ru/pub/people/ldv/libutempter/%{name}-%{version}.tar.bz2
BuildRequires: gcc
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}"
%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
* Thu Sep 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.6-16
- Package init