- updated to 20080809
[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
ER
4Version: 20080809
5Release: 0.1
500a6231
JB
6# is it license name or should be unified? ("distributable"?)
7License: freedist
8bb152c1 8Group: Libraries
8bb152c1 9Source0: ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.gz
5352fc69 10# Source0-md5: c155f5059006b94ad0aea7018161ab37
500a6231 11URL: http://www.cacert.org/
5352fc69 12# for temp files
8bb152c1 13Requires: mktemp
5352fc69 14# for c_rehash
bac37e69 15Requires: openssl-tools-perl
5352fc69
ER
16# for /bin/run-parts
17Requires: rc-scripts >= 0.4.1.25
18BuildArch: noarch
8bb152c1
ER
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
500a6231
JB
22Common CA Certificates PEM files.
23
24%description -l pl.UTF-8
25Pliki PEM popularnych certyfikatów CA.
8bb152c1
ER
26
27%prep
5352fc69 28%setup -q -n %{name}
8bb152c1
ER
29
30%install
31rm -rf $RPM_BUILD_ROOT
32install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},%{_sysconfdir}/ssl/certs}
33
34%{__make} install \
35 DESTDIR=$RPM_BUILD_ROOT
36
37(
38cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates
39find . -name '*.crt' | sort | cut -b3-
40) > $RPM_BUILD_ROOT%{_sysconfdir}/ca-certificates.conf
41
42touch $RPM_BUILD_ROOT%{_sysconfdir}/ssl/certs/ca-certificates.crt
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%post
48%{_sbindir}/update-ca-certificates || :
49
50%files
51%defattr(644,root,root,755)
52%dir %{_sysconfdir}/ssl/certs
8bb152c1 53%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ssl/certs/ca-certificates.crt
5352fc69
ER
54# remove noreplace?
55%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ca-certificates.conf
8bb152c1
ER
56%attr(755,root,root) %{_sbindir}/update-ca-certificates
57%{_datadir}/ca-certificates
This page took 0.042217 seconds and 4 git commands to generate.