blob: a657321dc196354bc332bd7b976141442772153d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d
Summary: A program to allow arbitrary access to device files
Name: resmgr
Version: 1.0
Release: %mkrel 14
License: GPLv2
Group: System/Servers
URL: http://www.lst.de/~okir/resmgr/
Source: ftp://ftp.lst.de/pub/people/okir/%{name}/%{name}-%{version}.tar.bz2
Source1: resmgr.init
Source2: resmgr.conf
Source3: desktopdev
Patch0: resmgr-1.0-syslog.patch
Patch1: resmgr-va_list.patch
Patch2: resmgr-glibc28.diff
Patch3: resmgr-linkage_fix.diff
Patch4: resmgr-permission_fix.diff
Requires(post): rpm-helper
Requires(preun): rpm-helper
BuildRequires: pam-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%description
The resource manager is a framework to give user applications access
to certain device files. The resource manager daemon can be configured
to give certain users access to different resource classes.
It supports hotplugging devices (i.e. new devices can be added to
and removed from resource classes at run time), and it provides
transparent access to the raw SCSI device corresponding to
a CD writer or a scanner.
%package -n %{libname}
Summary: Shared libraries for %{name}
Group: System/Libraries
%description -n %{libname}
The resource manager is a framework to give user applications access
to certain device files. The resource manager daemon can be configured
to give certain users access to different resource classes.
It supports hotplugging devices (i.e. new devices can be added to
and removed from resource classes at run time), and it provides
transparent access to the raw SCSI device corresponding to
a CD writer or a scanner.
%package -n %{develname}
Summary: Development headers and libraries for %{name}
Group: Development/C
Requires: %{libname} = %{version}
Provides: lib%{name}-devel = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
Obsoletes: %{mklibname resmgr 1 -d}
%description -n %{develname}
The resource manager is a framework to give user applications access
to certain device files. The resource manager daemon can be configured
to give certain users access to different resource classes.
It supports hotplugging devices (i.e. new devices can be added to
and removed from resource classes at run time), and it provides
transparent access to the raw SCSI device corresponding to
a CD writer or a scanner.
%prep
%setup -q
%patch0 -p1 -b .syslog
%patch1 -p1 -b .va_list
%patch2 -p0 -b .glibc28
%patch3 -p0 -b .linkage_fix
%patch4 -p0 -b .permission_fix
%build
%make CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{ldflags}"
%install
rm -rf %{buildroot}
%makeinstall_std LIBDIR=%{buildroot}/%{_lib} PAMDIR=%{buildroot}/%{_lib}/security
ln -sf libresmgr.so.* %{buildroot}/%{_lib}/libresmgr.so
install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/%{name}
mkdir -p %{buildroot}/usr/sbin/
ln -s ../..%{_initrddir}/%{name} %{buildroot}%{_sbindir}/rc%{name}
# install config file
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}.conf
install -c -m755 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/udev/agents.d/usb/desktopdev
%post
%_post_service %{name}
%preun
%_preun_service %{name}
%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README TODO ANNOUNCE
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_initrddir}/%{name}
%{_sysconfdir}/udev/agents.d/usb/desktopdev
%{_sbindir}/rc%{name}
/sbin/%{name}
/sbin/%{name}d
%{_mandir}/man*/*
%files -n %{libname}
%defattr(-,root,root)
/%{_lib}/*.so.*
/%{_lib}/security/*
%files -n %{develname}
%defattr(-,root,root)
/%{_lib}/*.so
%{_includedir}/%{name}.h
%changelog
* Mon Jul 18 2011 Tim Williams <tim@my-place.org.uk> 1.0-14mdv2010.2
+ Rebuild for Trinity
* Thu Sep 03 2009 Christophe Fergeau <cfergeau@mandriva.com> 1.0-13mdv2010.0
+ Revision: 426907
- rebuild
* Mon Dec 22 2008 Oden Eriksson <oeriksson@mandriva.com> 1.0-12mdv2009.1
+ Revision: 317576
- use %%ldflags
* Fri Jul 18 2008 Oden Eriksson <oeriksson@mandriva.com> 1.0-11mdv2009.0
+ Revision: 238350
- fix linkage
- fix errors in the init script
- fix permissions (for strip + debug packaging)
* Fri Jul 18 2008 Oden Eriksson <oeriksson@mandriva.com> 1.0-10mdv2009.0
+ Revision: 238102
- added P1 from pld
- fix build, P2 + -D_GNU_SOURCE
+ Thierry Vignaud <tvignaud@mandriva.com>
- rebuild
+ Pixel <pixel@mandriva.com>
- do not call ldconfig in %%post/%%postun, it is now handled by filetriggers
* Wed Mar 05 2008 Oden Eriksson <oeriksson@mandriva.com> 1.0-8mdv2008.1
+ Revision: 179431
- rebuild
+ Olivier Blin <oblin@mandriva.com>
- restore BuildRoot
+ Thierry Vignaud <tvignaud@mandriva.com>
- kill re-definition of %%buildroot on Pixel's request
* Wed Aug 01 2007 Adam Williamson <awilliamson@mandriva.org> 1.0-7mdv2008.0
+ Revision: 57363
- rebuild for 2008
- new devel policy
- spec clean
* Mon Jul 31 2006 Helio Chissini de Castro <helio@mandriva.com>
+ 2006-07-31 20:51:47 (42877)
- Increase release number
* Mon Jul 31 2006 Helio Chissini de Castro <helio@mandriva.com>
+ 2006-07-31 20:50:48 (42876)
- Fix for http://qa.mandriva.com/show_bug.cgi?id=23968 ( wrong init services )
* Wed Jul 26 2006 Helio Chissini de Castro <helio@mandriva.com>
+ 2006-07-26 03:39:04 (42167)
- Moved to subversion
- Added patch from Jan Ciger to fix syslog defines
* Wed Jul 26 2006 Helio Chissini de Castro <helio@mandriva.com>
+ 2006-07-26 03:11:36 (42165)
- import resmgr-1.0-4mdk
* Wed Jan 18 2006 Olivier Blin <oblin@mandriva.com> 1.0-4mdk
- fix pam files installation on x86_64
- buildrequire pam-devel
- drop hotplug requirement
* Sat Aug 27 2005 Olivier Blin <oblin@mandriva.com> 1.0-3mdk
- move hotplug script to in udev agents.d directory
- update Source4 to explain how it should be handled with udev
* Sun Jun 12 2005 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.0-2mdk
- rebuild
- fix requires
- do not mark init file as config file
- %%{1}mdv2007.0
* Fri May 21 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.0-1mdk
- initial mdk release (based on suse package)
|