1 | %define utempter_compat_ver 0.5.5 |
---|
2 | |
---|
3 | Name: libutempter |
---|
4 | Summary: A privileged helper for utmp/wtmp updates |
---|
5 | Version: 1.1.6 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | |
---|
8 | Group: System Environment/Libraries |
---|
9 | License: LGPLv2 |
---|
10 | URL: ftp://ftp.altlinux.org/pub/people/ldv/utempter |
---|
11 | |
---|
12 | Source0: ftp://ftp.altlinux.org/pub/people/ldv/utempter/%{name}-%{version}.tar.bz2 |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | Requires(pre): shadow-utils |
---|
16 | Requires(post): /sbin/ldconfig |
---|
17 | Requires(postun): /sbin/ldconfig |
---|
18 | |
---|
19 | Provides: utempter = %{utempter_compat_ver} |
---|
20 | Obsoletes: utempter |
---|
21 | |
---|
22 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
23 | |
---|
24 | %description |
---|
25 | This library provides interface for terminal emulators such as |
---|
26 | screen and xterm to record user sessions to utmp and wtmp files. |
---|
27 | |
---|
28 | %package devel |
---|
29 | Summary: Development environment for utempter |
---|
30 | Group: Development/Libraries |
---|
31 | Requires: %{name} = %{version}-%{release} |
---|
32 | |
---|
33 | %description devel |
---|
34 | This package contains development files required to build |
---|
35 | utempter-based software. |
---|
36 | |
---|
37 | |
---|
38 | %package -n compat32-%{name} |
---|
39 | Summary: A privileged helper for utmp/wtmp updates. |
---|
40 | Group: System Environment/Libraries |
---|
41 | Requires: %{name} = %{version}-%{release} |
---|
42 | |
---|
43 | %description -n compat32-%{name} |
---|
44 | Utempter is a utility which allows some non-privileged programs to |
---|
45 | have required root access without compromising system |
---|
46 | security. Utempter accomplishes this feat by acting as a buffer |
---|
47 | between root and the programs. |
---|
48 | |
---|
49 | %package -n compat32-%{name}-devel |
---|
50 | Summary: Development environment for utempter |
---|
51 | Group: Development/Libraries |
---|
52 | Requires: compat32-%{name} = %{version} |
---|
53 | Requires: %{name}-devel = %{version} |
---|
54 | |
---|
55 | %description -n compat32-%{name}-devel |
---|
56 | This package contains development files required to build |
---|
57 | utempter-based software. |
---|
58 | |
---|
59 | |
---|
60 | %prep |
---|
61 | %setup -q |
---|
62 | |
---|
63 | %build |
---|
64 | make CFLAGS="$RPM_OPT_FLAGS" libdir="%{_libdir}" libexecdir="%{_libexecdir}" |
---|
65 | |
---|
66 | %install |
---|
67 | rm -rf $RPM_BUILD_ROOT |
---|
68 | |
---|
69 | make install DESTDIR="$RPM_BUILD_ROOT" libdir="%{_libdir}" libexecdir="%{_libexecdir}" |
---|
70 | |
---|
71 | # FIXME: We might need to enable this part for backward compat with the |
---|
72 | # Red Hat / Fedora 'utempter' package: |
---|
73 | # |
---|
74 | # mkdir -p %{_sbindir} |
---|
75 | # ln -sf %{helperdir}/utempter %{_sbindir}/utempter |
---|
76 | |
---|
77 | |
---|
78 | # NOTE: Static lib intentionally disabled. |
---|
79 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
80 | |
---|
81 | %clean |
---|
82 | rm -rf $RPM_BUILD_ROOT |
---|
83 | |
---|
84 | %pre |
---|
85 | { |
---|
86 | %{_sbindir}/groupadd -g 22 -r -f utmp || : |
---|
87 | %{_sbindir}/groupadd -g 35 -r -f utempter || : |
---|
88 | } |
---|
89 | |
---|
90 | %post |
---|
91 | { |
---|
92 | /sbin/ldconfig |
---|
93 | for file in /var/log/wtmp /var/run/utmp ; do |
---|
94 | if [ -f $file ]; then |
---|
95 | chown root:utmp $file |
---|
96 | chmod 664 $file |
---|
97 | fi |
---|
98 | done |
---|
99 | } |
---|
100 | |
---|
101 | %postun -p /sbin/ldconfig |
---|
102 | |
---|
103 | %if %{build_compat32} |
---|
104 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
105 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
106 | %endif |
---|
107 | |
---|
108 | %files |
---|
109 | %defattr(-,root,root,-) |
---|
110 | %doc COPYING README |
---|
111 | %{_libdir}/libutempter.so.* |
---|
112 | %dir %attr(755,root,utempter) %{_libexecdir}/utempter |
---|
113 | %attr(2711,root,utmp) %{_libexecdir}/utempter/utempter |
---|
114 | # FIXME: If a symlink is needed for compat here, uncomment the code in the |
---|
115 | # install section and this as well: |
---|
116 | #%{_sbindir}/utempter |
---|
117 | |
---|
118 | %files devel |
---|
119 | %defattr(-,root,root,-) |
---|
120 | %{_includedir}/utempter.h |
---|
121 | %{_libdir}/libutempter.so |
---|
122 | |
---|
123 | %if %{build_compat32} |
---|
124 | %files -n compat32-%{name} |
---|
125 | %defattr(-,root,root) |
---|
126 | %{_libdir}/libutempter.so.* |
---|
127 | |
---|
128 | %files -n compat32-%{name}-devel |
---|
129 | %defattr(-,root,root) |
---|
130 | %{_libdir}/libutempter.so |
---|
131 | %endif |
---|
132 | |
---|
133 | %changelog |
---|
134 | * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.6-1 |
---|
135 | - update to 1.1.6 |
---|
136 | |
---|
137 | * Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.5-4 |
---|
138 | - rebuilt with new toolchain |
---|
139 | |
---|
140 | * Sun Jul 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.5-3 |
---|
141 | - initial build for Vine Linux |
---|
142 | - replaced utempter |
---|
143 | * Fri Oct 28 2005 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 0.5.5-6vl2 |
---|
144 | - added compat32- packages for x86_64 architecture support |
---|
145 | * Mon Jun 13 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.5-6vl1 |
---|
146 | - based on Fedora 0.5.5-6 |
---|
147 | * Mon Apr 19 2004 Mike A. Harris <mharris@redhat.com> 0.5.5-1 |
---|
148 | - [SECURITY] Fix CAN-2004-0233 utempter directory traversal symlink attack |
---|
149 | issue for immediate erratum release. |
---|
150 | - Build all-arch test package 0.5.5-1 in dist-fc2-scratch |
---|
151 | * Mon Feb 23 2004 Mike A. Harris <mharris@redhat.com> 0.5.4-1 |
---|
152 | - Rewrote post install script to be a bit cleaner and rebuilt in rawhide to |
---|
153 | pick up twaugh's chown change |
---|
154 | - Added 'srpm-x' target to Makefile for package maintainer SRPM building |
---|
155 | * Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com> |
---|
156 | - Use ':' instead of '.' as separator for chown. |
---|
157 | * Sat Oct 4 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.3-2vl1 |
---|
158 | - based on Redhat Rawhide 0.5.3-2 |
---|
159 | * Fri May 30 2003 Mike A. Harris <mharris@redhat.com> 0.5.3-1 |
---|
160 | - Bump version and release and rebuild to strip debug info into .debuginfo |
---|
161 | package, as the Red Hat Linux 9 package shipped unstripped (#91664) |
---|
162 | - Updated license field to reflect dual license MIT style + LGPL |
---|
163 | - Changed spec file Copyright tag to proper License tag |
---|
164 | - Removed stupid crackrock "version" macro define |
---|
165 | * Thu Jun 20 2002 Elliot Lee <sopwith@redhat.com> 0.5.2-9 |
---|
166 | - Don't strip binary |
---|
167 | - Thu Feb 24 2000 Erik Troan <ewt@redhat.com> |
---|
168 | - added LGPL notice |
---|
169 | * Wed Feb 20 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.2-4vl2 |
---|
170 | - rebuild to remove rpmlib dependancy |
---|
171 | * Tue May 29 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
172 | - 0.5.2-4vl1 |
---|
173 | - rebuilt for Vine Linux |
---|
174 | |
---|
175 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.5-2 |
---|
176 | - Autorebuild for GCC 4.3 |
---|
177 | |
---|
178 | * Wed Nov 07 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
179 | - 1.1.5-1 |
---|
180 | - version upgrade |
---|
181 | - fix #246063 |
---|
182 | |
---|
183 | * Tue Aug 21 2007 Adam Jackson <ajax@redhat.com> - 1.1.4-4 |
---|
184 | - Rebuild for build id |
---|
185 | |
---|
186 | * Thu Jul 27 2006 Mike A. Harris <mharris@redhat.com> 1.1.4-3.fc6 |
---|
187 | - Create 'utempter' group with official allocated GID==35 (from setup package). |
---|
188 | |
---|
189 | * Tue Jul 25 2006 Mike A. Harris <mharris@redhat.com> 1.1.4-2.fc6 |
---|
190 | - Removed usage of rpm macros inside the spec changelog (#200051) |
---|
191 | - Removed non-UTF-8 chars from changelog. |
---|
192 | |
---|
193 | * Mon Jul 24 2006 Mike A. Harris <mharris@redhat.com> 1.1.4-1.fc6 |
---|
194 | - Initial build of Dimitry's libutempter replacement for Fedora Core. |
---|
195 | - Reworked the upstream spec file for Fedora packaging compliance. |
---|
196 | - Removed static lib subpackage as we dont ship those. |
---|
197 | |
---|
198 | * Fri Dec 09 2005 Dmitry V. Levin <ldv@altlinux.org> 1.1.4-alt1 |
---|
199 | - Enabled almost all diagnostics supported by gcc and fixed all |
---|
200 | issues found by gcc-3.4.4-alt3. |
---|
201 | - Added FreeBSD support, based on patches from Gentoo/FreeBSD. |
---|
202 | - Makefile: |
---|
203 | + Fixed few portability issues reported by Gentoo developers. |
---|
204 | - libutempter: Linked with -Wl,-z,defs. |
---|
205 | - utempter: |
---|
206 | + Fixed struct utmp initialization on 64-bit architectures |
---|
207 | with 32-bit backwards compatibility enabled (like x86_64). |
---|
208 | + Linked with -Wl,-z,now, i.e., marked it to tell the dynamic |
---|
209 | linker to resolve all symbols when the program is started. |
---|
210 | Suggested by Gentoo developers. |
---|
211 | |
---|
212 | * Thu Aug 18 2005 Dmitry V. Levin <ldv@altlinux.org> 1.1.3-alt1 |
---|
213 | - Restricted list of global symbols exported by the library. |
---|
214 | - Updated FSF postal address. |
---|
215 | |
---|
216 | * Sun Sep 05 2004 Dmitry V. Levin <ldv@altlinux.org> 1.1.2-alt1 |
---|
217 | - Added multilib support. |
---|
218 | |
---|
219 | * Fri Feb 14 2003 Dmitry V. Levin <ldv@altlinux.org> 1.1.1-alt1 |
---|
220 | - iface.c: don't block SIGCHLD; redefine signal handler instead. |
---|
221 | |
---|
222 | * Mon Dec 23 2002 Dmitry V. Levin <ldv@altlinux.org> 1.1.0-alt1 |
---|
223 | - Changed soname back to libutempter.so.0, introduced versioning. |
---|
224 | |
---|
225 | * Tue Sep 24 2002 Dmitry V. Levin <ldv@altlinux.org> 1.0.7-alt1 |
---|
226 | - If helper execution fails, try saved group ID. |
---|
227 | |
---|
228 | * Tue May 21 2002 Dmitry V. Levin <ldv@altlinux.org> 1.0.6-alt1 |
---|
229 | - New function: utempter_set_helper. |
---|
230 | |
---|
231 | * Mon Dec 10 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.5-alt1 |
---|
232 | - iface.c: block SIGCHLD instead of redefine signal handler. |
---|
233 | |
---|
234 | * Wed Nov 21 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.4-alt1 |
---|
235 | - utempter.h: do not use "__attribute ((unused))". |
---|
236 | |
---|
237 | * Tue Nov 13 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.3-alt1 |
---|
238 | - Added compatibility declarations to ease upgrade of old applications. |
---|
239 | - Added small README file. |
---|
240 | - Corrected provides. |
---|
241 | |
---|
242 | * Thu Nov 08 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.2-alt1 |
---|
243 | - Added compatibility library to ease upgrade of old applications. |
---|
244 | |
---|
245 | * Mon Nov 05 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.1-alt1 |
---|
246 | - Indented code a bit (Solar request). |
---|
247 | |
---|
248 | * Mon Oct 15 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.0-alt1 |
---|
249 | - Rewritten the code completely. |
---|
250 | - Renamed to libutempter. |
---|
251 | - Corrected the package description. |
---|
252 | - FHSificated (yes, there are no more {_sbindir}/utempter). |
---|
253 | - Libificated. |
---|
254 | |
---|
255 | * Fri Oct 12 2001 Dmitry V. Levin <ldv@altlinux.ru> 0.5.2-alt4 |
---|
256 | - {_libdir}/utempter sounds better so use it as helper directory. |
---|
257 | |
---|
258 | * Thu Oct 11 2001 Dmitry V. Levin <ldv@altlinux.ru> 0.5.2-alt3 |
---|
259 | - Specfile cleanup. |
---|
260 | - Owl-compatible changes: |
---|
261 | + added utempter group; |
---|
262 | + utempter binary moved to {_libdir}/utempter.d, |
---|
263 | owned by group utempter with 710 permissions. |
---|
264 | |
---|
265 | * Thu Jun 28 2001 Sergie Pugachev <fd_rag@altlinux.ru> 0.5.2-alt1 |
---|
266 | - new version |
---|
267 | |
---|
268 | * Tue Dec 05 2000 AEN <aen@logic.ru> |
---|
269 | - build for RE |
---|
270 | |
---|
271 | * Tue Jul 25 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.5.1-4mdk |
---|
272 | - BM |
---|
273 | |
---|
274 | * Fri May 19 2000 Pixel <pixel@mandrakesoft.com> 0.5.1-3mdk |
---|
275 | - add -devel |
---|
276 | - add soname |
---|
277 | - spec helper cleanup |
---|
278 | |
---|
279 | * Sat Apr 08 2000 Christopher Molnar <molnarc@mandrakesoft.com> 0.5.1-2mdk |
---|
280 | - changed group |
---|
281 | |
---|
282 | * Tue Oct 26 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> |
---|
283 | - 0.5.1 |
---|
284 | - fix utmp as group 22. |
---|
285 | - strip utempter. |
---|
286 | - defattr to root. |
---|
287 | |
---|
288 | * Thu Jun 10 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com> |
---|
289 | - Mandrake adaptions |
---|
290 | |
---|
291 | * Fri Jun 4 1999 Jeff Johnson <jbj@redhat.com> |
---|
292 | - ignore SIGCHLD while processing utmp. |
---|