- add Thawte and Certum bundles
[packages/ca-certificates.git] / ca-certificates.spec
... / ...
CommitLineData
1# TODO
2# - keep one: certificates.spec vs ca-certificates.spec
3Summary: Common CA Certificates PEM files
4Summary(pl.UTF-8): Pliki PEM popularnych certyfikatów CA
5Name: ca-certificates
6Version: 20080809
7Release: 0.2
8# is it license name or should be unified? ("distributable"?)
9License: freedist
10Group: Libraries
11Source0: ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.gz
12# Source0-md5: c155f5059006b94ad0aea7018161ab37
13Patch0: %{name}-undebianize.patch
14URL: http://www.cacert.org/
15# for temp files
16Requires: mktemp
17# for c_rehash
18Requires: openssl-tools-perl
19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23Common CA Certificates PEM files.
24
25%description -l pl.UTF-8
26Pliki PEM popularnych certyfikatów CA.
27
28%prep
29%setup -q -n %{name}
30
31%install
32rm -rf $RPM_BUILD_ROOT
33install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},/etc/certs}
34
35%{__make} install \
36 DESTDIR=$RPM_BUILD_ROOT
37
38(
39cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates
40find . -name '*.crt' | sort | cut -b3-
41) > $RPM_BUILD_ROOT%{_sysconfdir}/ca-certificates.conf
42
43touch $RPM_BUILD_ROOT/etc/certs/ca-certificates.crt
44
45%clean
46rm -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
This page took 0.023761 seconds and 4 git commands to generate.