]>
Commit | Line | Data |
---|---|---|
b688799c | 1 | # TODO |
a110f4b7 | 2 | # - keep one: certificates.spec vs ca-certificates.spec |
8bb152c1 | 3 | Summary: Common CA Certificates PEM files |
500a6231 | 4 | Summary(pl.UTF-8): Pliki PEM popularnych certyfikatów CA |
8bb152c1 | 5 | Name: ca-certificates |
5352fc69 | 6 | Version: 20080809 |
4619b3d9 | 7 | Release: 0.2 |
ed111db5 | 8 | License: distributable |
8bb152c1 | 9 | Group: Libraries |
8bb152c1 | 10 | Source0: ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.gz |
5352fc69 | 11 | # Source0-md5: c155f5059006b94ad0aea7018161ab37 |
ed111db5 JR |
12 | Source1: https://www.verisign.com/support/thawte-roots.zip |
13 | # Source1-md5: a3709cc0279ef3fca4f86ea775066b18 | |
14 | Source2: http://www.certum.pl/keys/CA.pem | |
15 | # Source2-md5: 35610177afc9c64e70f1ce62c1885496 | |
16 | Source3: http://www.certum.pl/keys/level1.pem | |
17 | # Source3-md5: ba2d2e234ef9cfd2e6e5f810c964862e | |
18 | Source4: http://www.certum.pl/keys/level2.pem | |
19 | # Source4-md5: d06578a04e8cb23071f3870430ea0cf0 | |
20 | Source5: http://www.certum.pl/keys/level3.pem | |
21 | # Source5-md5: 47b67c63a52236576fc0d1150327c962 | |
22 | Source6: http://www.certum.pl/keys/level4.pem | |
23 | # Source6-md5: f1f8a65d177745311a1e99f029ae5d71 | |
24 | Source7: http://www.certum.pl/keys/vs.pem | |
25 | # Source7-md5: 8da19ffc48c5dcc2868b1aa55f1d5983 | |
26 | Source8: http://www.certum.pl/keys/na.pem | |
27 | # Source8-md5: ba571cb35e7672ff7ae95132ac1bfec4 | |
28 | Source9: http://www.certum.pl/keys/tsa.pem | |
29 | # Source9-md5: 1a7b3faf8ed00f4d80297de74862e102 | |
30 | Source10: http://www.certum.pl/keys/class1.pem | |
31 | # Source10-md5: 058436b132ea2df6972821f546104a16 | |
32 | Source11: http://www.certum.pl/keys/class2.pem | |
33 | # Source11-md5: 5caf7fe99b1fc6e63c40b3d081711d1b | |
34 | Source12: http://www.certum.pl/keys/class3.pem | |
35 | # Source12-md5: 07bc97e21da092ba53535c7379e1b58b | |
36 | Source13: http://www.certum.pl/keys/class4.pem | |
37 | # Source13-md5: 99ef61d509539af89f1c025b67245965 | |
4619b3d9 | 38 | Patch0: %{name}-undebianize.patch |
ed111db5 | 39 | Patch1: %{name}-more-certs.patch |
500a6231 | 40 | URL: http://www.cacert.org/ |
ed111db5 JR |
41 | BuildRequires: ruby |
42 | BuildRequires: unzip | |
8bb152c1 | 43 | Requires: mktemp |
bac37e69 | 44 | Requires: openssl-tools-perl |
ed111db5 | 45 | Obsoletes: certificates |
5352fc69 | 46 | BuildArch: noarch |
8bb152c1 ER |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
49 | %description | |
500a6231 JB |
50 | Common CA Certificates PEM files. |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | Pliki PEM popularnych certyfikatów CA. | |
8bb152c1 ER |
54 | |
55 | %prep | |
5352fc69 | 56 | %setup -q -n %{name} |
ed111db5 JR |
57 | %patch0 -p1 |
58 | %patch1 -p1 | |
59 | ||
60 | unzip %{SOURCE1} '*_b64.txt' -d thawte/ | |
61 | for I in thawte/{,*/}*.txt; do | |
62 | mv "$I" "`echo $I | sed -e 's|_b64.txt|.crt|' -e 's|/.*/|/|'`" | |
63 | done | |
64 | ||
65 | install -d certum | |
66 | install %{SOURCE2} certum | |
67 | install %{SOURCE3} certum | |
68 | install %{SOURCE4} certum | |
69 | install %{SOURCE5} certum | |
70 | install %{SOURCE6} certum | |
71 | install %{SOURCE7} certum | |
72 | install %{SOURCE8} certum | |
73 | install %{SOURCE9} certum | |
74 | install %{SOURCE10} certum | |
75 | install %{SOURCE11} certum | |
76 | install %{SOURCE12} certum | |
77 | install %{SOURCE13} certum | |
78 | for I in certum/*.pem; do | |
79 | mv "$I" "`echo $I | sed -e 's|pem|crt|'`" | |
80 | done | |
81 | ||
82 | %build | |
83 | %{__make} | |
84 | ||
85 | # We have those and more in specific dirs | |
86 | rm mozilla/{Thawte,thawte,Certum}*.crt | |
8bb152c1 ER |
87 | |
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
4619b3d9 | 90 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},/etc/certs} |
8bb152c1 ER |
91 | |
92 | %{__make} install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
95 | ( | |
96 | cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates | |
97 | find . -name '*.crt' | sort | cut -b3- | |
98 | ) > $RPM_BUILD_ROOT%{_sysconfdir}/ca-certificates.conf | |
99 | ||
4619b3d9 | 100 | touch $RPM_BUILD_ROOT/etc/certs/ca-certificates.crt |
8bb152c1 ER |
101 | |
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post | |
106 | %{_sbindir}/update-ca-certificates || : | |
107 | ||
108 | %files | |
109 | %defattr(644,root,root,755) | |
4619b3d9 | 110 | %config(noreplace) %verify(not md5 mtime size) /etc/certs/ca-certificates.crt |
5352fc69 | 111 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ca-certificates.conf |
8bb152c1 ER |
112 | %attr(755,root,root) %{_sbindir}/update-ca-certificates |
113 | %{_datadir}/ca-certificates |