/[packages]/cauldron/acme/current/SPECS/acme.spec
ViewVC logotype

Contents of /cauldron/acme/current/SPECS/acme.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2036498 - (show annotations) (download)
Thu Feb 1 02:18:42 2024 UTC (10 months ago) by rapsys
File size: 1641 byte(s)
Version 2.0.5: add raw and fix cert removal
1 # Avoid problem without man and info
2 %define dont_compress 1
3
4 Name: acme
5 Version: 2.0.5
6 Release: %mkrel 1
7 Summary: Letsencrypt perl client
8 License: GPLv3+
9 Group: Development/Perl
10 Url: https://git.rapsys.eu/acme/
11 Source0: %{name}-%{version}.tar.xz
12 BuildArch: noarch
13 Requires: php-json perl(LWP::Protocol::https)
14 Provides: perl(Acme)
15
16 %description
17 This program allow you to configure, generate and automate
18 letsencrypt certificate generation.
19
20 %prep
21 %setup -q
22
23 %install
24 # Install directories
25 install -d %{buildroot}%{_datadir}/%{name}
26 install -d %{buildroot}%{perl_vendorlib}
27 install -d %{buildroot}%{_bindir}
28 install -d %{buildroot}%{_sysconfdir}/%{name}
29 install -d %{buildroot}/%{_mandir}/man1
30
31 # Install php script
32 install -m644 www/acme-challenge.php %{buildroot}%{_datadir}/%{name}/
33
34 # Install perl library
35 install -m644 Acme.pm %{buildroot}%{perl_vendorlib}/Acme.pm
36
37 # Install binaries
38 install -m755 acme %{buildroot}%{_bindir}/
39
40 # Touch fake man to avoid error with man and info compression
41 install -m644 acme.1 %{buildroot}/%{_mandir}/man1/
42 install -m644 acme-cert.1 %{buildroot}/%{_mandir}/man1/
43 install -m644 acme-conf.1 %{buildroot}/%{_mandir}/man1/
44 install -m644 acme-cron.1 %{buildroot}/%{_mandir}/man1/
45
46 # Touch thumbprint file
47 touch %{buildroot}/%{_sysconfdir}/%{name}/thumbprint
48
49 %files
50 # Apache configuration files
51 %doc www/example.com.conf www/acme.apache.conf www/acme.nginx.conf
52 %config %{_sysconfdir}/%{name}/thumbprint
53 %{_datadir}/%{name}/acme-challenge.php
54 %{perl_vendorlib}/Acme.pm
55 %{_bindir}/acme
56 %{_mandir}/man1/acme.1
57 %{_mandir}/man1/acme-cert.1
58 %{_mandir}/man1/acme-conf.1
59 %{_mandir}/man1/acme-cron.1

  ViewVC Help
Powered by ViewVC 1.1.30