Update to 1.10.12.
- Mark license.txt with %license. - Change %define -> %global.
This commit is contained in:
parent
810b42d307
commit
7aaaba071e
|
@ -1,10 +1,2 @@
|
||||||
/Botan-1.8.9.tbz
|
/Botan-*.stripped.tbz
|
||||||
/Botan-1.8.9.stripped.tbz
|
/Botan-1.10.12.stripped.tar.gz
|
||||||
/Botan-1.8.10.stripped.tbz
|
|
||||||
/Botan-1.8.11.stripped.tbz
|
|
||||||
/Botan-1.8.12.stripped.tbz
|
|
||||||
/Botan-1.8.13.stripped.tbz
|
|
||||||
/Botan-1.8.14.stripped.tbz
|
|
||||||
/Botan-1.10.5.stripped.tbz
|
|
||||||
/Botan-1.10.8.stripped.tbz
|
|
||||||
/Botan-1.10.9.stripped.tbz
|
|
||||||
|
|
31
botan.spec
31
botan.spec
|
@ -1,16 +1,16 @@
|
||||||
%global major_version 1.10
|
%global major_version 1.10
|
||||||
|
|
||||||
Name: botan
|
Name: botan
|
||||||
Version: %{major_version}.9
|
Version: %{major_version}.12
|
||||||
Release: 10%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Crypto library written in C++
|
Summary: Crypto library written in C++
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://botan.randombit.net/
|
URL: http://botan.randombit.net/
|
||||||
# tarfile is stripped using repack.sh. original tarfile to be found
|
# tarfile is stripped using repack.sh. original tarfile to be found
|
||||||
# here: http://files.randombit.net/botan/Botan-%%{version}.tbz
|
# here: http://botan.randombit.net/releases/Botan-%%{version}.tgz
|
||||||
Source0: Botan-%{version}.stripped.tbz
|
Source0: Botan-%{version}.stripped.tar.gz
|
||||||
Source1: README.fedora
|
Source1: README.fedora
|
||||||
Patch0: botan-aarch64.patch
|
Patch0: botan-aarch64.patch
|
||||||
Patch1: botan-1.10-add-ppc64le.patch
|
Patch1: botan-1.10-add-ppc64le.patch
|
||||||
|
@ -90,10 +90,10 @@ rm -rf checks/ec_tests.cpp
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# we have the necessary prerequisites, so enable optional modules
|
# we have the necessary prerequisites, so enable optional modules
|
||||||
%define enable_modules bzip2,zlib,openssl
|
%global enable_modules bzip2,zlib,openssl
|
||||||
|
|
||||||
# fixme: maybe disable unix_procs, very slow.
|
# fixme: maybe disable unix_procs, very slow.
|
||||||
%define disable_modules gnump
|
%global disable_modules gnump
|
||||||
|
|
||||||
./configure.py \
|
./configure.py \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
|
@ -141,8 +141,13 @@ rm -r %{buildroot}%{_pkgdocdir}/manual/{.doctrees,.buildinfo}
|
||||||
%files
|
%files
|
||||||
%dir %{_pkgdocdir}
|
%dir %{_pkgdocdir}
|
||||||
%{_pkgdocdir}/readme.txt
|
%{_pkgdocdir}/readme.txt
|
||||||
%{_pkgdocdir}/license.txt
|
|
||||||
%{_pkgdocdir}/README.fedora
|
%{_pkgdocdir}/README.fedora
|
||||||
|
%if 0%{?_licensedir:1}
|
||||||
|
%exclude %{_pkgdocdir}/license.txt
|
||||||
|
%license doc/license.txt
|
||||||
|
%else
|
||||||
|
%{_pkgdocdir}/license.txt
|
||||||
|
%endif # licensedir
|
||||||
%{_libdir}/libbotan-%{major_version}.so.*
|
%{_libdir}/libbotan-%{major_version}.so.*
|
||||||
|
|
||||||
|
|
||||||
|
@ -161,8 +166,13 @@ rm -r %{buildroot}%{_pkgdocdir}/manual/{.doctrees,.buildinfo}
|
||||||
# next files duplicated on purpose, because -doc doesn't depend on the
|
# next files duplicated on purpose, because -doc doesn't depend on the
|
||||||
# main package
|
# main package
|
||||||
%{_pkgdocdir}/readme.txt
|
%{_pkgdocdir}/readme.txt
|
||||||
%{_pkgdocdir}/license.txt
|
|
||||||
%{_pkgdocdir}/README.fedora
|
%{_pkgdocdir}/README.fedora
|
||||||
|
%if 0%{?_licensedir:1}
|
||||||
|
%exclude %{_pkgdocdir}/license.txt
|
||||||
|
%license doc/license.txt
|
||||||
|
%else
|
||||||
|
%{_pkgdocdir}/license.txt
|
||||||
|
%endif # licensedir
|
||||||
|
|
||||||
|
|
||||||
%files python
|
%files python
|
||||||
|
@ -183,6 +193,11 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 8 2016 Thomas Moschny <thomas.moschny@gmx.de> - 1.10.12-1
|
||||||
|
- Update to 1.10.12.
|
||||||
|
- Mark license.txt with %%license.
|
||||||
|
- Change %%define -> %%global.
|
||||||
|
|
||||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.9-10
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.9-10
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
|
26
repack.sh
26
repack.sh
|
@ -1,18 +1,20 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
version=1.10.9
|
name=Botan-1.10.12
|
||||||
name=Botan-${version}
|
src=${name}.tgz
|
||||||
suffix=.tbz
|
dst=${name}.stripped.tar.gz
|
||||||
newsuffix=.stripped.tbz
|
|
||||||
compr=bzip2
|
|
||||||
|
|
||||||
trap '${tmpfile:+rm ${tmpfile}}' EXIT
|
rm -f ${dst} ${dst%.gz}
|
||||||
tmpfile=$(mktemp)
|
cp -av ${src} ${dst}
|
||||||
|
|
||||||
${compr} -cd ${name}${suffix} > ${tmpfile}
|
gzip -d ${dst}
|
||||||
|
|
||||||
tar --delete --file=${tmpfile} Botan-${version}/src/block/rc6
|
tar --delete --file=${dst%.gz} \
|
||||||
tar --delete --file=${tmpfile} Botan-${version}/src/block/rc5
|
${name}/src/block/rc6 \
|
||||||
tar --delete --file=${tmpfile} Botan-${version}/src/pubkey/gost_3410
|
${name}/src/block/rc5 \
|
||||||
|
${name}/src/pubkey/gost_3410
|
||||||
|
|
||||||
|
touch -m -r ${src} ${dst%.gz}
|
||||||
|
|
||||||
|
gzip ${dst%.gz}
|
||||||
|
|
||||||
${compr} -c ${tmpfile} > ${name}${newsuffix}
|
|
||||||
|
|
Loading…
Reference in New Issue