/[packages]/cauldron/libutempter/current/SPECS/libutempter.spec
ViewVC logotype

Contents of /cauldron/libutempter/current/SPECS/libutempter.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1792941 - (show annotations) (download)
Tue Mar 15 07:13:22 2022 UTC (2 years, 1 month ago) by umeabot
File size: 1956 byte(s)
Mageia 9 Mass Rebuild
1 %define major 0
2 %define libname %mklibname utempter %{major}
3 %define devname %mklibname utempter -d
4
5 Summary: A privileged helper for utmp/wtmp updates
6 Name: libutempter
7 Version: 1.2.1
8 Release: %mkrel 2
9 License: LGPLv2+
10 Group: System/Libraries
11 URL: ftp://ftp.altlinux.org/pub/people/ldv/utempter
12 Source0: ftp://ftp.altlinux.org/pub/people/ldv/utempter/%{name}-%{version}.tar.gz
13 Patch0: libutempter-pierelro.patch
14 Patch1: libutempter-1.2.0-sanitize-linking-naming.patch
15
16 Requires(pre): shadow-utils
17
18 %rename utempter
19
20 %description
21 The utempter library provides interface for terminal emulators such as
22 screen and xterm to record user sessions to utmp and wtmp files.
23
24 %package -n %{libname}
25 Summary: Library used by %{name}
26 Group: System/Libraries
27
28 %description -n %{libname}
29 The utempter library provides interface for terminal emulators such as
30 screen and xterm to record user sessions to utmp and wtmp files.
31
32 %package -n %{devname}
33 Summary: Devel files for %{name}
34 Group: Development/C
35 Provides: utempter-devel = %{version}-%{release}
36 Requires: %{libname} = %{version}-%{release}
37
38 %description -n %{devname}
39 This package contains development files required to build
40 utempter-based software.
41
42 %prep
43 %setup -q
44 %autopatch -p1
45
46 %build
47 %make_build CFLAGS="%{optflags}" libdir="%{_libdir}" libexecdir="%{_libexecdir}"
48
49 %install
50 %make_install libdir="%{_libdir}" libexecdir="%{_libexecdir}"
51
52 mkdir -p %{buildroot}%{_sbindir}
53 ln -sf %{_libexecdir}/utempter/utempter %{buildroot}%{_sbindir}/utempter
54
55 rm -f %{buildroot}%{_libdir}/*.a
56
57 %pre
58 {
59 %{_sbindir}/groupadd -g 22 -r -f utmp || :
60 %{_sbindir}/groupadd -g 35 -r -f utempter || :
61 }
62
63 %files
64 %doc README COPYING
65 %dir %attr(755,root,utempter) %{_libexecdir}/utempter
66 %attr(2711,root,utmp) %{_libexecdir}/utempter/utempter
67 %{_sbindir}/utempter
68 %{_mandir}/man3/*
69
70 %files -n %{libname}
71 %{_libdir}/libutempter.so.%{major}{,.*}
72
73 %files -n %{devname}
74 %{_libdir}/libutempter.so
75 %{_includedir}/utempter.h

  ViewVC Help
Powered by ViewVC 1.1.30