- c_rehash is in openssl-tools-perl
[packages/ca-certificates.git] / ca-certificates.spec
1 Summary:        Common CA Certificates PEM files
2 Name:           ca-certificates
3 Version:        20070303
4 Release:        0.12
5 Group:          Libraries
6 URL:            http://www.cacert.org/
7 Source0:        ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.gz
8 # Source0-md5:  e356066a02d257d23f8e0f4d48d08b1b
9 License:        freedist
10 Requires:       mktemp
11 Requires:       openssl-tools-perl
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 Common CA Certificates PEM files
16
17 %prep
18 %setup -q
19
20 %install
21 rm -rf $RPM_BUILD_ROOT
22 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},%{_sysconfdir}/ssl/certs}
23
24 %{__make} install \
25         DESTDIR=$RPM_BUILD_ROOT
26
27 (
28 cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates
29 find . -name '*.crt' | sort | cut -b3-
30 ) > $RPM_BUILD_ROOT%{_sysconfdir}/ca-certificates.conf
31
32 touch $RPM_BUILD_ROOT%{_sysconfdir}/ssl/certs/ca-certificates.crt
33
34 %clean
35 rm -rf $RPM_BUILD_ROOT
36
37 %post
38 %{_sbindir}/update-ca-certificates || :
39
40 %files
41 %defattr(644,root,root,755)
42 %dir %{_sysconfdir}/ssl/certs
43 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ca-certificates.conf
44 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ssl/certs/ca-certificates.crt
45 %attr(755,root,root) %{_sbindir}/update-ca-certificates
46 %{_datadir}/ca-certificates
This page took 0.115073 seconds and 3 git commands to generate.