Summary(pl.UTF-8): Pliki PEM popularnych certyfikatów CA
Name: ca-certificates
Version: 20090814
-Release: 1
+Release: 4
License: distributable
Group: Libraries
Source0: ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.gz
Patch1: %{name}-more-certs.patch
Patch2: %{name}-etc-certs.patch
Patch3: %{name}-c_rehash.sh.patch
+Patch4: %{name}-endline.patch
URL: http://www.cacert.org/
-BuildRequires: coreutils
BuildRequires: python
BuildRequires: python-modules
+BuildRequires: sed >= 4.0
BuildRequires: unzip
Obsoletes: certificates
BuildArch: noarch
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%{__unzip} -qq %{SOURCE1} -d thawte
# resolve file name clash
find thawte/ -name *.pem | while read f ; do
ff=$(echo $f | sed -e 's|[ ,]|_|g' -e 's|[()]|=|g')
- fff="thawte/$(basename "$ff" .pem).crt"
- tr -d '\r' < "$f" > "$fff"
+ cp "$f" "thawte/$(basename "$ff" .pem).crt"
done
install -d certum
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT%{_datadir}/ca-certificates -name '*.crt' -exec sed -i -e 's/\r$//' {} \;
+
(
cd $RPM_BUILD_ROOT%{_datadir}/ca-certificates
find . -name '*.crt' | sort | cut -b3-