2024-01-06 06:00:39 +01:00
|
|
|
%define utmp_gid 17
|
|
|
|
%define utempter_gid 51
|
|
|
|
Name: libutempter
|
2024-01-06 06:00:40 +01:00
|
|
|
Version: 1.2.1
|
2024-01-06 06:00:39 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A privileged helper for utmp/wtmp updates
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Tiziana Ferro <tiziana.ferro@email.it>
|
|
|
|
URL: ftp://ftp.altlinux.org/pub/people/ldv/utempter
|
2024-01-06 06:00:40 +01:00
|
|
|
Source: ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-%{version}.tar.gz
|
2024-01-06 06:00:39 +01:00
|
|
|
License: LGPL
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Provides: utempter = %{version}
|
|
|
|
Obsoletes: utempter
|
|
|
|
|
|
|
|
%description
|
|
|
|
This library provides interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains development files required to build utempter-based software.
|
|
|
|
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
2024-01-06 06:00:40 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 06:00:39 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%make libdir=%{_libdir}
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall DESTDIR="%{buildroot}" libdir=%{_libdir}
|
|
|
|
|
|
|
|
# NOTE: Static lib intentionally disabled.
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%{_sbindir}/groupadd -g %{utmp_gid} -r utmp 2>/dev/null || :
|
|
|
|
%{_sbindir}/groupadd -g %{utempter_gid} -r utempter 2>/dev/null || :
|
|
|
|
:
|
|
|
|
|
2024-01-06 06:00:40 +01:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
2024-01-06 06:00:39 +01:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
%{_sbindir}/groupdel utempter
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 06:00:40 +01:00
|
|
|
%{_libdir}/libutempter.so.*
|
2024-01-06 06:00:39 +01:00
|
|
|
%dir %attr(755,root,utempter) %{_prefix}/lib/utempter
|
|
|
|
%attr(2711,root,utmp) %{_prefix}/lib/utempter/utempter
|
|
|
|
%doc COPYING README
|
|
|
|
# FIXME: If a symlink is needed for compat here, uncomment the code in the
|
|
|
|
# install section and this as well:
|
|
|
|
#%{_sbindir}/utempter
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/utempter.h
|
|
|
|
%{_libdir}/libutempter.so
|
2024-01-06 06:00:40 +01:00
|
|
|
%{_mandir}/man3/libutempter.3*
|
|
|
|
%{_mandir}/man3/utempter*.3*
|
2024-01-06 06:00:39 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 06:00:40 +01:00
|
|
|
* Mon Jul 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-1mamba
|
|
|
|
- update to 1.2.1
|
|
|
|
|
2024-01-06 06:00:39 +01:00
|
|
|
* Sat Aug 11 2012 Automatic Build System <autodist@mambasoft.it> 1.1.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Feb 08 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.5-3mamba
|
|
|
|
- remove missing groupadd option -f
|
|
|
|
- assign proper id's for utmp and utempter gropus from openmamba resources db
|
|
|
|
|
|
|
|
* Fri Oct 31 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.5-2mamba
|
|
|
|
- fixed specfile name
|
|
|
|
|
|
|
|
* Thu Oct 30 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.1.5-1mamba
|
|
|
|
- package created by autospec
|