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