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