51af4756a4b25075ffbced6be90fec75f249587e
[packages/ca-certificates.git] / ca-certificates.spec
1 Summary:        Common CA Certificates PEM files
2 Name:           ca-certificates
3 Version:        20070303
4 Release:        0.11
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
12 #Requires:      /usr/bin/c_rehash
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Common CA Certificates PEM files
17
18 %prep
19 %setup -q
20
21 %install
22 rm -rf $RPM_BUILD_ROOT
23 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},%{_sysconfdir}/ssl/certs}
24
25 %{__make} install \
26         DESTDIR=$RPM_BUILD_ROOT
27
28 (
29 cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates
30 find . -name '*.crt' | sort | cut -b3-
31 ) > $RPM_BUILD_ROOT%{_sysconfdir}/ca-certificates.conf
32
33 touch $RPM_BUILD_ROOT%{_sysconfdir}/ssl/certs/ca-certificates.crt
34
35 %clean
36 rm -rf $RPM_BUILD_ROOT
37
38 %post
39 %{_sbindir}/update-ca-certificates || :
40
41 %files
42 %defattr(644,root,root,755)
43 %dir %{_sysconfdir}/ssl/certs
44 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ca-certificates.conf
45 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ssl/certs/ca-certificates.crt
46 %attr(755,root,root) %{_sbindir}/update-ca-certificates
47 %{_datadir}/ca-certificates
This page took 0.026613 seconds and 2 git commands to generate.