- c_rehash is in openssl-tools-perl
[packages/ca-certificates.git] / ca-certificates.spec
CommitLineData
8bb152c1
ER
1Summary: Common CA Certificates PEM files
2Name: ca-certificates
3Version: 20070303
bac37e69 4Release: 0.12
8bb152c1
ER
5Group: Libraries
6URL: http://www.cacert.org/
7Source0: ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.gz
8# Source0-md5: e356066a02d257d23f8e0f4d48d08b1b
9License: freedist
10Requires: mktemp
bac37e69 11Requires: openssl-tools-perl
8bb152c1
ER
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15Common CA Certificates PEM files
16
17%prep
18%setup -q
19
20%install
21rm -rf $RPM_BUILD_ROOT
22install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},%{_sysconfdir}/ssl/certs}
23
24%{__make} install \
25 DESTDIR=$RPM_BUILD_ROOT
26
27(
28cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates
29find . -name '*.crt' | sort | cut -b3-
30) > $RPM_BUILD_ROOT%{_sysconfdir}/ca-certificates.conf
31
32touch $RPM_BUILD_ROOT%{_sysconfdir}/ssl/certs/ca-certificates.crt
33
34%clean
35rm -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.035097 seconds and 4 git commands to generate.