1 |
%if %{?rhel}%{!?rhel:0} <= 5 |
2 |
%global _initddir %{_initrddir} |
3 |
%endif |
4 |
|
5 |
Name: dctcs-cli |
6 |
Version: @VERSION@ |
7 |
Release: @RELEASE@%{?dist} |
8 |
Summary: DigiCert TCS API Certificate Request and Provisioning Tool |
9 |
|
10 |
Group: Applications/System |
11 |
License: Apache 2.0 |
12 |
URL: https://software.nikhef.nl/experimental/tcstools/ |
13 |
Source: http://software.nikhef.nl/experimental/tcstools/dctcs-cli/%{name}-%{version}.tar.gz |
14 |
Vendor: Nikhef |
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
16 |
BuildArch: noarch |
17 |
|
18 |
Requires: perl, perl(LWP), perl(POSIX), perl(File::Temp), perl(IO::Socket::SSL), perl(LWP::Protocol::https), perl(JSON), perl(strict) perl(vars) |
19 |
Autoreq: 0 |
20 |
|
21 |
Prefix: /usr/local |
22 |
|
23 |
%description |
24 |
Request and retrieve certificates from the TCS DigiCert service via the API. |
25 |
Provisioning by default follows NDPF mechanisms, but can be flexibly |
26 |
configured - if you know how. |
27 |
Beware: using the API keys must be done with care, contact your TCS |
28 |
contact before you try! |
29 |
|
30 |
%prep |
31 |
|
32 |
%setup |
33 |
|
34 |
%build |
35 |
|
36 |
%clean |
37 |
rm -rf $RPM_BUILD_ROOT |
38 |
|
39 |
%install |
40 |
rm -rf $RPM_BUILD_ROOT |
41 |
make install PREFIX=$RPM_BUILD_ROOT%{_usr} ETC=$RPM_BUILD_ROOT%{_sysconfdir} CACHE=$RPM_BUILD_ROOT%{_localstatedir}/cache |
42 |
|
43 |
%post |
44 |
|
45 |
%preun |
46 |
|
47 |
%files |
48 |
%defattr(644,root,root,755) |
49 |
%attr(755,root,root) %{_bindir}/dctcs-cli |
50 |
%doc %{_defaultdocdir}/%{name}-%{version} |
51 |
|
52 |
%changelog |
53 |
* Thu Mar 19 2015 David Groep <davidg@nikhef.nl> |
54 |
Initial build of version 2.0a from vlaai - Nikhef NDPF specific |