- use our global /etc/certs dir
[packages/ca-certificates.git] / ca-certificates.spec
CommitLineData
b688799c 1# TODO
a110f4b7 2# - keep one: certificates.spec vs ca-certificates.spec
8bb152c1 3Summary: Common CA Certificates PEM files
500a6231 4Summary(pl.UTF-8): Pliki PEM popularnych certyfikatów CA
8bb152c1 5Name: ca-certificates
5352fc69 6Version: 20080809
4619b3d9 7Release: 0.2
500a6231
JB
8# is it license name or should be unified? ("distributable"?)
9License: freedist
8bb152c1 10Group: Libraries
8bb152c1 11Source0: ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.gz
5352fc69 12# Source0-md5: c155f5059006b94ad0aea7018161ab37
4619b3d9 13Patch0: %{name}-undebianize.patch
500a6231 14URL: http://www.cacert.org/
5352fc69 15# for temp files
8bb152c1 16Requires: mktemp
5352fc69 17# for c_rehash
bac37e69 18Requires: openssl-tools-perl
5352fc69 19BuildArch: noarch
8bb152c1
ER
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
500a6231
JB
23Common CA Certificates PEM files.
24
25%description -l pl.UTF-8
26Pliki PEM popularnych certyfikatów CA.
8bb152c1
ER
27
28%prep
5352fc69 29%setup -q -n %{name}
8bb152c1
ER
30
31%install
32rm -rf $RPM_BUILD_ROOT
4619b3d9 33install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},/etc/certs}
8bb152c1
ER
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
4619b3d9 43touch $RPM_BUILD_ROOT/etc/certs/ca-certificates.crt
8bb152c1
ER
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)
4619b3d9 53%config(noreplace) %verify(not md5 mtime size) /etc/certs/ca-certificates.crt
5352fc69 54%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ca-certificates.conf
8bb152c1
ER
55%attr(755,root,root) %{_sbindir}/update-ca-certificates
56%{_datadir}/ca-certificates
This page took 0.033721 seconds and 4 git commands to generate.