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