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