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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30