/[mwsec]/packaging/fedora/branches/splitlcmapsinterfaces/lcmaps.spec
ViewVC logotype

Contents of /packaging/fedora/branches/splitlcmapsinterfaces/lcmaps.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17024 - (show annotations) (download)
Thu Aug 22 13:52:33 2013 UTC (9 years, 1 month ago) by dennisvd
File size: 9574 byte(s)
Adaptations for inclusion in Fedora

1 Summary: Grid (X.509) and VOMS credentials to local account mapping service
2 Name: lcmaps
3 Version: 1.4.30
4 Release: 2%{?dist}
5 License: ASL 2.0
6 Group: System Environment/Libraries
7 URL: http://www.nikhef.nl/pub/projects/grid/gridwiki/index.php/Site_Access_Control
8 Source0: http://software.nikhef.nl/security/%{name}/%{name}-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
10 BuildRequires: globus-core
11 BuildRequires: globus-common-devel
12 BuildRequires: globus-gssapi-gsi-devel
13 BuildRequires: globus-gss-assist-devel
14 BuildRequires: globus-gsi-credential-devel
15 BuildRequires: voms-devel
16 BuildRequires: flex, bison
17
18
19 %description
20 The Local Centre MAPping Service (LCMAPS) is a security middleware
21 component that processes the users Grid credentials (typically X.509
22 proxy certificates and VOMS attributes) and maps the user to a local
23 account based on the site local policy.
24
25 It is a highly configurable pluggable interface, and many plugins are
26 available to tailor almost every need. Since this is middleware, it
27 does not interact with the user directly; to use it in a program please
28 see the lcmaps-interface package.
29
30 %package interface
31 Group: Development/Libraries
32 Summary: LCMAPS plug-in API header files
33 Requires: openssl-devel
34 Requires: globus-gssapi-gsi-devel
35 Requires: pkgconfig
36 %if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
37 BuildArch: noarch
38 %endif
39
40 %description interface
41 The Local Centre MAPping Service (LCMAPS) is a security middleware
42 component that processes the users Grid credentials (typically X.509
43 proxy certificates and VOMS attributes) and maps the user to a local
44 account based on the site local policy.
45
46 It is a highly configurable pluggable interface, and many plugins are
47 available to tailor almost every need. Since this is middleware, it
48 does not interact with the user directly; to use it in a program please
49 see the lcmaps-interface package.
50
51 This package contains the header files necessary to build LCMAPS plug-ins.
52
53 %package devel
54 Group: Development/Libraries
55 Summary: LCMAPS development libraries
56 Requires: %{name}-interface = %{version}-%{release}
57 Requires: %{name} = %{version}-%{release}
58
59 %description devel
60 The Local Centre MAPping Service (LCMAPS) is a security middleware
61 component that processes the users Grid credentials (typically X.509
62 proxy certificates and VOMS attributes) and maps the user to a local
63 account based on the site local policy.
64
65 It is a highly configurable pluggable interface, and many plugins are
66 available to tailor almost every need. Since this is middleware, it
67 does not interact with the user directly; to use it in a program please
68 see the lcmaps-interface package.
69
70 This package contains the development libraries.
71
72 %package gss-assist-gridmap
73 Group: System Environment/Libraries
74 Summary: LCMAPS GSS assist interface
75 Requires: %{name} = %{version}-%{release}
76
77 %description gss-assist-gridmap
78 The GSS assist gridmap interface to the LCMAPS framework is the
79 original gridmap interface provided by globus. Given the user
80 distinguished name (DN), a username is returned based on the gridmap
81 file.
82
83 %package gss-assist-gridmap-devel
84 Group: Development/Libraries
85 Summary: LCMAPS GSS assist interface development libraries
86 Requires: %{name}-devel = %{version}-%{release}
87 Requires: lcmaps-gss-assist-gridmap = %{version}-%{release}
88
89 %description gss-assist-gridmap-devel
90 The GSS assist gridmap interface to the LCMAPS framework is the
91 original gridmap interface provided by globus. Given the user
92 distinguished name (DN), a username is returned based on the gridmap
93 file. This package contains the development library.
94
95 %package return-account-from-pem
96 Group: System Environment/Libraries
97 Summary: LCMAPS return-account-from-pem interface
98 Requires: %{name} = %{version}-%{release}
99
100 %description return-account-from-pem
101 The return-account-from-pem interface to the LCMAPS framework returns
102 the uid, gids and poolindex, i.e. leaseid. As input it requires the
103 user credential in PEM format.
104
105 %package return-account-from-pem-devel
106 Group: Development/Libraries
107 Summary: LCMAPS return-account-from-pem interface development libraries
108 Requires: %{name}-devel = %{version}-%{release}
109 Requires: lcmaps-return-account-from-pem = %{version}-%{release}
110
111 %description return-account-from-pem-devel
112 The return-account-from-pem interface to the LCMAPS framework returns
113 the uid, gids and poolindex, i.e. leaseid. As input it requires the
114 user credential in PEM format. This package contains the development
115 library.
116
117 %package verify-account-from-pem
118 Group: System Environment/Libraries
119 Summary: LCMAPS verify-account-from-pem interface
120 Requires: %{name} = %{version}-%{release}
121
122 %description verify-account-from-pem
123 The verify-account-from-pem interface to the LCMAPS framework offers a
124 dry-run testing alternative to the return-account-from-pem interface.
125 It doesn't make any changes to the gridmapdir.
126
127 %package verify-account-from-pem-devel
128 Group: Development/Libraries
129 Summary: LCMAPS verify-account-from-pem interface development libraries
130 Requires: %{name}-devel = %{version}-%{release}
131 Requires: lcmaps-verify-account-from-pem = %{version}-%{release}
132
133 %description verify-account-from-pem-devel
134 The verify-account-from-pem interface to the LCMAPS framework offers a
135 dry-run testing alternative to the return-account-from-pem interface.
136 It doesn't make any changes to the gridmapdir. This package contains
137 the development library.
138
139 %package return-poolindex
140 Group: System Environment/Libraries
141 Summary: LCMAPS return-poolindex interface
142 Requires: %{name} = %{version}-%{release}
143
144 %description return-poolindex
145 The return-poolindex interface to the LCMAPS framework returns the
146 poolindex to the calling application.
147
148 %package return-poolindex-devel
149 Group: Development/Libraries
150 Summary: LCMAPS return-poolindex interface development libraries
151 Requires: %{name}-devel = %{version}-%{release}
152 Requires: lcmaps-return-poolindex = %{version}-%{release}
153
154 %description return-poolindex-devel
155 The return-poolindex interface to the LCMAPS framework returns the
156 poolindex to the calling application. This package contains
157 the development library.
158
159
160 %prep
161 %setup -q
162
163 %build
164
165 %configure --disable-static
166
167 # The following two lines were suggested by
168 # https://fedoraproject.org/wiki/Packaging/Guidelines to prevent any
169 # RPATHs creeping in.
170 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
171 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
172
173 make %{?_smp_mflags}
174
175 %install
176 rm -rf $RPM_BUILD_ROOT
177
178 make DESTDIR=$RPM_BUILD_ROOT install
179 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
180 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}
181
182 # clean up installed files
183 rm -rf ${RPM_BUILD_ROOT}%{_docdir}
184 rm ${RPM_BUILD_ROOT}%{_libdir}/%{name}/lcmaps_plugin_example.mod
185 rm ${RPM_BUILD_ROOT}%{_libdir}/%{name}/liblcmaps_plugin_example.so
186
187 %clean
188 rm -rf $RPM_BUILD_ROOT
189
190 %post -p /sbin/ldconfig
191
192 %postun -p /sbin/ldconfig
193
194 %files
195 %defattr(-,root,root,-)
196 %{_libdir}/liblcmaps.so.0
197 %{_libdir}/liblcmaps.so.0.0.0
198 # This library is sometimes dlopened, so the .so symlink cannot be in devel
199 %{_libdir}/liblcmaps_gss_assist_gridmap.so.0
200 %{_libdir}/liblcmaps_gss_assist_gridmap.so.0.0.0
201 %{_libdir}/liblcmaps_return_account_from_pem.so.0
202 %{_libdir}/liblcmaps_return_account_from_pem.so.0.0.0
203 %{_libdir}/liblcmaps_return_poolindex.so.0
204 %{_libdir}/liblcmaps_return_poolindex.so.0.0.0
205 %{_libdir}/liblcmaps_verify_account_from_pem.so.0
206 %{_libdir}/liblcmaps_verify_account_from_pem.so.0.0.0
207 %dir %{_libdir}/%{name}
208 %dir %{_sysconfdir}/%{name}
209 %doc AUTHORS INSTALL doc/INSTALL_WITH_WORKSPACE_SERVICE LICENSE
210 %doc README README.NO_LDAP
211 %doc etc/lcmaps.db etc/groupmapfile etc/vomapfile
212
213 %files interface
214 %defattr(-,root,root,-)
215 %{_includedir}/lcmaps/lcmaps_account.h
216 %{_datadir}/pkgconfig/lcmaps-interface.pc
217 %doc LICENSE
218
219 %files devel
220 %defattr(-,root,root,-)
221 # the lcmaps.h file contains declarations of the interface functions,
222 # so they should not be used if the interface libraries are really
223 # meant to be dlopened.
224 %{_includedir}/%{name}/lcmaps.h
225 # oddly, the same argument holds for this interface header file
226 %{_includedir}/%{name}/lcmaps_return_account_from_pem.h
227
228 %{_libdir}/liblcmaps.so
229 %{_libdir}/liblcmaps_gss_assist_gridmap.so
230 %{_libdir}/liblcmaps_return_account_from_pem.so
231 %{_libdir}/liblcmaps_return_poolindex.so
232 %{_libdir}/liblcmaps_verify_account_from_pem.so
233 %{_libdir}/pkgconfig/lcmaps-gss-assist-gridmap.pc
234 %{_libdir}/pkgconfig/lcmaps-return-account-from-pem.pc
235 %{_libdir}/pkgconfig/lcmaps-return-poolindex.pc
236 %{_libdir}/pkgconfig/lcmaps-verify-account-from-pem.pc
237 %{_libdir}/pkgconfig/lcmaps.pc
238
239 %changelog
240 * Wed Jul 13 2011 Dennis van Dok <dennisvd@nikhef.nl> 1.4.30-1
241 - updated version
242
243 * Mon Jul 4 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.4.29-2
244 - Make interface package noarch
245 - Remove Vendor tag
246
247 * Mon Jul 4 2011 Dennis van Dok <dennisvd@nikhef.nl> 1.4.29-1
248 - Updated version
249
250 * Wed Mar 23 2011 Dennis van Dok <dennisvd@nikhef.nl> 1.4.28-2
251 - removed explicit requires
252
253 * Wed Mar 9 2011 Dennis van Dok <dennisvd@nikhef.nl> 1.4.28-1
254 - Made examples out of config files
255
256 * Tue Mar 8 2011 Dennis van Dok <dennisvd@nikhef.nl> 1.4.27-2
257 - Disable rpath in configure
258
259 * Mon Mar 7 2011 Dennis van Dok <dennisvd@nikhef.nl> 1.4.27-1
260 - Fixed globus dependencies
261 - added ldconfig %post(un)
262
263 * Fri Mar 4 2011 Dennis van Dok <dennisvd@nikhef.nl> 1.4.26-3
264 - disabled static libraries
265 - added proper base package requirement for devel
266 - fixed license string
267
268 * Mon Feb 21 2011 Dennis van Dok <dennisvd@nikhef.nl>
269 - Initial build.

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28