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