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