source: projects/specs/trunk/lib/libu/libutempter/libutempter-vl.spec @ 12335

Revision 12335, 9.7 KB checked in by tomop, 4 years ago (diff)

updated 14 packages

chkconfig-1.3.61-3

diffutils-3.7-1

findutils-4.7.0-1

libmpc-1.1.0-1

libuser-0.62-1

libutempter-1.1.6-2

mpfr-4.0.2-1

mpfr3-3.1.6-1

psmisc-23.2-1

sed-4.8-1

shadow-utils-4.8-1

tcsh-6.22.02-1

texinfo-6.7-1

usermode-1.109-2

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