]>
Commit | Line | Data |
---|---|---|
8b300985 JR |
1 | # TODO |
2 | # - cleanup dead links from /etc/openssl/certs after -update uninstall | |
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 |
156426d3 | 6 | Version: 20090814 |
390fc244 | 7 | Release: 1 |
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 |
156426d3 | 11 | # Source0-md5: 307052c985bec7f9a00eb84293eef779 |
6c894e75 | 12 | Source1: https://www.verisign.com/support/thawte-roots.zip |
156426d3 | 13 | # Source1-md5: 3e50e5facce6b6bfbf68271d066005fa |
ed111db5 JR |
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 |
c7360e68 | 40 | Patch2: %{name}-etc-certs.patch |
302ace1c | 41 | Patch3: %{name}-c_rehash.sh.patch |
500a6231 | 42 | URL: http://www.cacert.org/ |
156426d3 JR |
43 | BuildRequires: coreutils |
44 | BuildRequires: python | |
ed111db5 | 45 | BuildRequires: unzip |
ed111db5 | 46 | Obsoletes: certificates |
5352fc69 | 47 | BuildArch: noarch |
8bb152c1 ER |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
850133d0 ER |
50 | %define certsdir /etc/certs |
51 | ||
8bb152c1 | 52 | %description |
500a6231 JB |
53 | Common CA Certificates PEM files. |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | Pliki PEM popularnych certyfikatów CA. | |
8bb152c1 | 57 | |
302ace1c JR |
58 | %package update |
59 | Summary: Script for updating CA Certificates database | |
60 | Summary(pl.UTF-8): Skrypt do odświeżania bazy certyfikatów CA | |
61 | Group: Libraries | |
6c894e75 | 62 | Requires: %{name} = %{version}-%{release} |
74154eae | 63 | Requires: mktemp |
302ace1c JR |
64 | Requires: openssl-tools >= 0.9.8i-3 |
65 | ||
66 | %description update | |
67 | Script and data for updating CA Certificates database. | |
68 | ||
6c894e75 | 69 | %description update -l pl.UTF-8 |
302ace1c JR |
70 | Skrypt i dane do odświeżania bazy certyfikatów CA. |
71 | ||
8bb152c1 | 72 | %prep |
156426d3 | 73 | %setup -q |
ed111db5 JR |
74 | %patch0 -p1 |
75 | %patch1 -p1 | |
c7360e68 | 76 | %patch2 -p1 |
302ace1c | 77 | %patch3 -p1 |
ed111db5 | 78 | |
156426d3 JR |
79 | %{__unzip} -qq %{SOURCE1} -d thawte |
80 | # resolve file name clash | |
81 | mv 'thawte/Thawte Roots/Thawte Extended Validation/thawte Primary Root CA - G1 (EV)/thawte_Primary_Root_CA.pem' \ | |
82 | 'thawte/Thawte Roots/Thawte Extended Validation/thawte Primary Root CA - G1 (EV)/thawte_Primary_Root_CA_CC.pem' | |
83 | ||
84 | find thawte/ -name *.pem | while read f ; do | |
85 | ff=$(echo $f | sed -e 's|[ ,]|_|g' -e 's|[()]|=|g') | |
86 | fff="thawte/$(basename "$ff" .pem).crt" | |
87 | tr -d '\r' < "$f" > "$fff" | |
ed111db5 JR |
88 | done |
89 | ||
90 | install -d certum | |
91 | install %{SOURCE2} certum | |
92 | install %{SOURCE3} certum | |
93 | install %{SOURCE4} certum | |
94 | install %{SOURCE5} certum | |
95 | install %{SOURCE6} certum | |
96 | install %{SOURCE7} certum | |
97 | install %{SOURCE8} certum | |
98 | install %{SOURCE9} certum | |
99 | install %{SOURCE10} certum | |
100 | install %{SOURCE11} certum | |
101 | install %{SOURCE12} certum | |
102 | install %{SOURCE13} certum | |
ebf0e82f ER |
103 | for a in certum/*.pem; do |
104 | mv "$a" "${a%.pem}.crt" | |
ed111db5 JR |
105 | done |
106 | ||
107 | %build | |
108 | %{__make} | |
109 | ||
110 | # We have those and more in specific dirs | |
111 | rm mozilla/{Thawte,thawte,Certum}*.crt | |
8bb152c1 ER |
112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
850133d0 | 115 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},%{certsdir}} |
8bb152c1 ER |
116 | |
117 | %{__make} install \ | |
118 | DESTDIR=$RPM_BUILD_ROOT | |
119 | ||
120 | ( | |
121 | cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates | |
122 | find . -name '*.crt' | sort | cut -b3- | |
123 | ) > $RPM_BUILD_ROOT%{_sysconfdir}/ca-certificates.conf | |
124 | ||
302ace1c JR |
125 | ( |
126 | cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates | |
127 | find . -name '*.crt' -print0 | xargs -0 cat | |
850133d0 | 128 | ) > $RPM_BUILD_ROOT%{certsdir}/ca-certificates.crt |
8bb152c1 ER |
129 | |
130 | %clean | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
302ace1c | 133 | %post update |
ed9496cb | 134 | %{_sbindir}/update-ca-certificates --fresh || : |
8bb152c1 ER |
135 | |
136 | %files | |
137 | %defattr(644,root,root,755) | |
850133d0 | 138 | %config(noreplace) %verify(not md5 mtime size) %{certsdir}/ca-certificates.crt |
302ace1c JR |
139 | |
140 | %files update | |
141 | %defattr(644,root,root,755) | |
8bb152c1 | 142 | %attr(755,root,root) %{_sbindir}/update-ca-certificates |
302ace1c | 143 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ca-certificates.conf |
8bb152c1 | 144 | %{_datadir}/ca-certificates |