]>
Commit | Line | Data |
---|---|---|
8bb152c1 | 1 | Summary: Common CA Certificates PEM files |
500a6231 | 2 | Summary(pl.UTF-8): Pliki PEM popularnych certyfikatów CA |
8bb152c1 | 3 | Name: ca-certificates |
156426d3 | 4 | Version: 20090814 |
390fc244 | 5 | Release: 1 |
ed111db5 | 6 | License: distributable |
8bb152c1 | 7 | Group: Libraries |
8bb152c1 | 8 | Source0: ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.gz |
156426d3 | 9 | # Source0-md5: 307052c985bec7f9a00eb84293eef779 |
6c894e75 | 10 | Source1: https://www.verisign.com/support/thawte-roots.zip |
156426d3 | 11 | # Source1-md5: 3e50e5facce6b6bfbf68271d066005fa |
ed111db5 JR |
12 | Source2: http://www.certum.pl/keys/CA.pem |
13 | # Source2-md5: 35610177afc9c64e70f1ce62c1885496 | |
14 | Source3: http://www.certum.pl/keys/level1.pem | |
15 | # Source3-md5: ba2d2e234ef9cfd2e6e5f810c964862e | |
16 | Source4: http://www.certum.pl/keys/level2.pem | |
17 | # Source4-md5: d06578a04e8cb23071f3870430ea0cf0 | |
18 | Source5: http://www.certum.pl/keys/level3.pem | |
19 | # Source5-md5: 47b67c63a52236576fc0d1150327c962 | |
20 | Source6: http://www.certum.pl/keys/level4.pem | |
21 | # Source6-md5: f1f8a65d177745311a1e99f029ae5d71 | |
22 | Source7: http://www.certum.pl/keys/vs.pem | |
23 | # Source7-md5: 8da19ffc48c5dcc2868b1aa55f1d5983 | |
24 | Source8: http://www.certum.pl/keys/na.pem | |
25 | # Source8-md5: ba571cb35e7672ff7ae95132ac1bfec4 | |
26 | Source9: http://www.certum.pl/keys/tsa.pem | |
27 | # Source9-md5: 1a7b3faf8ed00f4d80297de74862e102 | |
28 | Source10: http://www.certum.pl/keys/class1.pem | |
29 | # Source10-md5: 058436b132ea2df6972821f546104a16 | |
30 | Source11: http://www.certum.pl/keys/class2.pem | |
31 | # Source11-md5: 5caf7fe99b1fc6e63c40b3d081711d1b | |
32 | Source12: http://www.certum.pl/keys/class3.pem | |
33 | # Source12-md5: 07bc97e21da092ba53535c7379e1b58b | |
34 | Source13: http://www.certum.pl/keys/class4.pem | |
35 | # Source13-md5: 99ef61d509539af89f1c025b67245965 | |
4619b3d9 | 36 | Patch0: %{name}-undebianize.patch |
ed111db5 | 37 | Patch1: %{name}-more-certs.patch |
c7360e68 | 38 | Patch2: %{name}-etc-certs.patch |
302ace1c | 39 | Patch3: %{name}-c_rehash.sh.patch |
500a6231 | 40 | URL: http://www.cacert.org/ |
156426d3 JR |
41 | BuildRequires: coreutils |
42 | BuildRequires: python | |
ed111db5 | 43 | BuildRequires: unzip |
ed111db5 | 44 | Obsoletes: certificates |
5352fc69 | 45 | BuildArch: noarch |
8bb152c1 ER |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
850133d0 ER |
48 | %define certsdir /etc/certs |
49 | ||
8bb152c1 | 50 | %description |
500a6231 JB |
51 | Common CA Certificates PEM files. |
52 | ||
53 | %description -l pl.UTF-8 | |
54 | Pliki PEM popularnych certyfikatów CA. | |
8bb152c1 | 55 | |
302ace1c JR |
56 | %package update |
57 | Summary: Script for updating CA Certificates database | |
58 | Summary(pl.UTF-8): Skrypt do odświeżania bazy certyfikatów CA | |
59 | Group: Libraries | |
6c894e75 | 60 | Requires: %{name} = %{version}-%{release} |
74154eae | 61 | Requires: mktemp |
302ace1c JR |
62 | Requires: openssl-tools >= 0.9.8i-3 |
63 | ||
64 | %description update | |
65 | Script and data for updating CA Certificates database. | |
66 | ||
6c894e75 | 67 | %description update -l pl.UTF-8 |
302ace1c JR |
68 | Skrypt i dane do odświeżania bazy certyfikatów CA. |
69 | ||
8bb152c1 | 70 | %prep |
156426d3 | 71 | %setup -q |
ed111db5 JR |
72 | %patch0 -p1 |
73 | %patch1 -p1 | |
c7360e68 | 74 | %patch2 -p1 |
302ace1c | 75 | %patch3 -p1 |
ed111db5 | 76 | |
156426d3 JR |
77 | %{__unzip} -qq %{SOURCE1} -d thawte |
78 | # resolve file name clash | |
79 | mv 'thawte/Thawte Roots/Thawte Extended Validation/thawte Primary Root CA - G1 (EV)/thawte_Primary_Root_CA.pem' \ | |
80 | 'thawte/Thawte Roots/Thawte Extended Validation/thawte Primary Root CA - G1 (EV)/thawte_Primary_Root_CA_CC.pem' | |
81 | ||
82 | find thawte/ -name *.pem | while read f ; do | |
83 | ff=$(echo $f | sed -e 's|[ ,]|_|g' -e 's|[()]|=|g') | |
84 | fff="thawte/$(basename "$ff" .pem).crt" | |
85 | tr -d '\r' < "$f" > "$fff" | |
ed111db5 JR |
86 | done |
87 | ||
88 | install -d certum | |
89 | install %{SOURCE2} certum | |
90 | install %{SOURCE3} certum | |
91 | install %{SOURCE4} certum | |
92 | install %{SOURCE5} certum | |
93 | install %{SOURCE6} certum | |
94 | install %{SOURCE7} certum | |
95 | install %{SOURCE8} certum | |
96 | install %{SOURCE9} certum | |
97 | install %{SOURCE10} certum | |
98 | install %{SOURCE11} certum | |
99 | install %{SOURCE12} certum | |
100 | install %{SOURCE13} certum | |
ebf0e82f ER |
101 | for a in certum/*.pem; do |
102 | mv "$a" "${a%.pem}.crt" | |
ed111db5 JR |
103 | done |
104 | ||
105 | %build | |
106 | %{__make} | |
107 | ||
108 | # We have those and more in specific dirs | |
109 | rm mozilla/{Thawte,thawte,Certum}*.crt | |
8bb152c1 ER |
110 | |
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
850133d0 | 113 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},%{certsdir}} |
8bb152c1 ER |
114 | |
115 | %{__make} install \ | |
116 | DESTDIR=$RPM_BUILD_ROOT | |
117 | ||
118 | ( | |
119 | cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates | |
120 | find . -name '*.crt' | sort | cut -b3- | |
121 | ) > $RPM_BUILD_ROOT%{_sysconfdir}/ca-certificates.conf | |
122 | ||
302ace1c JR |
123 | ( |
124 | cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates | |
125 | find . -name '*.crt' -print0 | xargs -0 cat | |
850133d0 | 126 | ) > $RPM_BUILD_ROOT%{certsdir}/ca-certificates.crt |
8bb152c1 ER |
127 | |
128 | %clean | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
302ace1c | 131 | %post update |
ed9496cb | 132 | %{_sbindir}/update-ca-certificates --fresh || : |
8bb152c1 ER |
133 | |
134 | %files | |
135 | %defattr(644,root,root,755) | |
850133d0 | 136 | %config(noreplace) %verify(not md5 mtime size) %{certsdir}/ca-certificates.crt |
302ace1c JR |
137 | |
138 | %files update | |
139 | %defattr(644,root,root,755) | |
8bb152c1 | 140 | %attr(755,root,root) %{_sbindir}/update-ca-certificates |
302ace1c | 141 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ca-certificates.conf |
8bb152c1 | 142 | %{_datadir}/ca-certificates |