- new (based on gentoo ebuild)
[packages/ca-certificates.git] / ca-certificates.spec
CommitLineData
8bb152c1
ER
1Summary: Common CA Certificates PEM files
2Name: ca-certificates
3Version: 20070303
4Release: 0.11
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
11#Requires: openssl-tools
12#Requires: /usr/bin/c_rehash
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16Common CA Certificates PEM files
17
18%prep
19%setup -q
20
21%install
22rm -rf $RPM_BUILD_ROOT
23install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},%{_sysconfdir}/ssl/certs}
24
25%{__make} install \
26 DESTDIR=$RPM_BUILD_ROOT
27
28(
29cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates
30find . -name '*.crt' | sort | cut -b3-
31) > $RPM_BUILD_ROOT%{_sysconfdir}/ca-certificates.conf
32
33touch $RPM_BUILD_ROOT%{_sysconfdir}/ssl/certs/ca-certificates.crt
34
35%clean
36rm -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.093473 seconds and 4 git commands to generate.