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