- R: rpm-whiteout >= 1.7
[packages/ca-certificates.git] / ca-certificates.spec
1 Summary:        Common CA Certificates PEM files
2 Summary(pl.UTF-8):      Pliki PEM popularnych certyfikat√≥w CA
3 Name:           ca-certificates
4 Version:        20080809
5 Release:        1
6 License:        distributable
7 Group:          Libraries
8 Source0:        ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.gz
9 # Source0-md5:  c155f5059006b94ad0aea7018161ab37
10 Source1:        https://www.verisign.com/support/thawte-roots.zip 
11 # Source1-md5:  a3709cc0279ef3fca4f86ea775066b18
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
36 Patch0:         %{name}-undebianize.patch
37 Patch1:         %{name}-more-certs.patch
38 Patch2:         %{name}-etc-certs.patch
39 URL:            http://www.cacert.org/
40 BuildRequires:  ruby
41 BuildRequires:  unzip
42 Requires:       mktemp
43 Requires:       openssl >= 0.9.8i-2
44 Requires:       openssl-tools-perl >= 0.9.8i-2
45 Requires:       rpm-whiteout >= 1.7
46 Obsoletes:      certificates
47 BuildArch:      noarch
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %description
51 Common CA Certificates PEM files.
52
53 %description -l pl.UTF-8
54 Pliki PEM popularnych certyfikat√≥w CA.
55
56 %prep
57 %setup -q -n %{name}
58 %patch0 -p1
59 %patch1 -p1
60 %patch2 -p1
61
62 unzip %{SOURCE1} '*_b64.txt' -d thawte/
63 for I in thawte/{,*/}*.txt; do
64         mv "$I" "`echo $I | sed -e 's|_b64.txt|.crt|' -e 's|/.*/|/|'`"
65 done
66
67 install -d certum
68 install %{SOURCE2} certum
69 install %{SOURCE3} certum
70 install %{SOURCE4} certum
71 install %{SOURCE5} certum
72 install %{SOURCE6} certum
73 install %{SOURCE7} certum
74 install %{SOURCE8} certum
75 install %{SOURCE9} certum
76 install %{SOURCE10} certum
77 install %{SOURCE11} certum
78 install %{SOURCE12} certum
79 install %{SOURCE13} certum
80 for I in certum/*.pem; do
81         mv "$I" "`echo $I | sed -e 's|pem|crt|'`"
82 done
83
84 %build
85 %{__make}
86
87 # We have those and more in specific dirs
88 rm mozilla/{Thawte,thawte,Certum}*.crt
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},/etc/openssl}
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 (
98 cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates
99 find . -name '*.crt' | sort | cut -b3-
100 ) > $RPM_BUILD_ROOT%{_sysconfdir}/ca-certificates.conf
101
102 touch $RPM_BUILD_ROOT/etc/openssl/ca-certificates.crt
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post
108 %{_sbindir}/update-ca-certificates || :
109
110 %files
111 %defattr(644,root,root,755)
112 %config(noreplace) %verify(not md5 mtime size) /etc/openssl/ca-certificates.crt
113 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ca-certificates.conf
114 %attr(755,root,root) %{_sbindir}/update-ca-certificates
115 %{_datadir}/ca-certificates
This page took 0.040123 seconds and 3 git commands to generate.