]> git.pld-linux.org Git - packages/libutempter.git/blob - libutempter.spec
- added using %%{__make} macro.
[packages/libutempter.git] / libutempter.spec
1 Summary:        Privledged helper for utmpx updates
2 Summary(pl):    Biblioteka pozwalaj±ca na zapisywanie w utmpx
3 Name:           utempter
4 Version:        0.5.2
5 Release:        3
6 Copyright:      MIT
7 Group:          Base
8 Group(pl):      Podstawowe
9 Source0:        %{name}-%{version}.tar.gz
10 Patch0:         utempter-lastlog.patch
11 Prereq:         /sbin/ldconfig
12 Prereq:         SysVinit >= 2.76-14
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Utempter is a utility which allows programs to log information to a
17 privledged file (/var/run/utmpx), without compromising system
18 security. It accomplishes this task by acting as a buffer between root
19 and the programs.
20
21 %description -l pl
22 Utempter jest programem pozwalaj±cym na zapisywanie uzytkownikom do
23 pliku /var/run/utmpx bez naruszania bezpieczeñstwa systemu.
24
25 %package devel
26 Summary:        utempter library header files
27 Group:          Development/Libraries
28 Group(fr):      Development/Librairies
29 Group(pl):      Programowanie/Biblioteki
30 Requires:       %{name} = %{version}
31
32 %description devel
33 utempter library header files.
34
35 %description -l pl devel
36 Pliki nag³ówkowe utempter.
37
38 %prep
39 %setup -q
40 %patch -p1
41
42 %build
43 %{__make} CFLAGS="$RPM_OPT_FLAGS"
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 %{__make} PREFIX=$RPM_BUILD_ROOT install
48
49 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
50 strip $RPM_BUILD_ROOT%{_sbindir}/*
51
52 install -d $RPM_BUILD_ROOT/var/run
53 :> $RPM_BUILD_ROOT/var/run/utmpx
54  
55 %post   -p /sbin/ldconfig
56 %postun -p /sbin/ldconfig
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %attr(2755,root,utmp) %{_sbindir}/*
64 %attr(0755,root,root) %{_libdir}/lib*.so.*
65
66 %attr(664,root,utmp) %ghost /var/run/utmpx
67
68 %files devel
69 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_libdir}/lib*.so
71 %{_includedir}/utempter.h
This page took 0.179468 seconds and 3 git commands to generate.