Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2
Botan
Botan.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Botan.spec of Package Botan
# # spec file for package Botan (Version 1.6.4) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define lib_pkg_name libbotan-1_6_4 Name: Botan Version: 1.6.4 Release: 4.<RELEASE1> %define ONLY_BASE_MODS 0 ################################################## # Hardware restrictions on various modules # ################################################## %define USE_TM_HARD i586 i686 athlon x86_64 ppc ppc64 alpha sparcv9 sparc64 %define MP64_ARCH alpha ppc64 ia64 sparc64 ################################################## # Module settings # ################################################## %define BASE_MODS alloc_mmap,ml_unix,es_egd,es_ftw,es_unix,fd_unix,tm_unix %define EXTRA_MODS comp_bzip2,comp_zlib,mux_pthr,tm_posix,eng_gmp %ifarch %{USE_TM_HARD} %{expand: %%define EXTRA_MODS %{EXTRA_MODS},tm_hard} %endif %ifarch %{USE_MP64} %{expand: %%define EXTRA_MODS %{EXTRA_MODS},mp_asm64} %endif %ifarch x86 %{expand: %%define EXTRA_MODS %{EXTRA_MODS},mp_ia32,alg_ia32} %endif %ifarch x86_64 %{expand: %%define EXTRA_MODS %{EXTRA_MODS},mp_amd64,alg_amd64} %endif %if %{ONLY_BASE_MODS} %define MODULES %{BASE_MODS} %else %define MODULES %{BASE_MODS},%{EXTRA_MODS} %endif Url: http://botan.randombit.net Summary: A C++ Crypto Library License: BSD3c AutoReqProv: on Prefix: /usr Group: Development/Libraries/C and C++ Source: %{name}-%{version}.tar.bz2 Patch0: Botan-inttypes.patch Patch1: Botan-ull_constants.patch.bz2 Patch2: Botan-no_fpermissive.patch Patch3: Botan-no_cpu_tuning.patch Patch4: Botan-no_executable_stack.patch Patch5: Botan-missing_sentinel.patch Patch6: Botan-fix_link_order.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %if ! %{ONLY_BASE_MODS} Requires: zlib, bzip2 >= 1.0.2, gmp >= 4.1 BuildRequires: bzip2 >= 1.0.2 gmp-devel >= 4.1 zlib-devel BuildRequires: gcc-c++ gmp-devel libbz2-devel %endif %description Botan is a C++ library that provides support for many common cryptographic operations, including encryption, authentication, and X.509v3 certificates and CRLs. A wide variety of algorithms is supported, including RSA, DSA, DES, AES, MD5, and SHA-1. Authors: -------- Jack Lloyd <lloyd@randombit.net> %package -n libbotan-1_6_4 License: BSD3c Summary: A C++ Crypto Library Group: Development/Libraries/C and C++ #Rename done for openSUSE 11.0 Provides: Botan = %{version} Obsoletes: Botan < %{version} %description -n libbotan-1_6_4 Botan is a C++ library that provides support for many common cryptographic operations, including encryption, authentication, and X.509v3 certificates and CRLs. A wide variety of algorithms is supported, including RSA, DSA, DES, AES, MD5, and SHA-1. Authors: -------- Jack Lloyd <lloyd@randombit.net> %package -n libbotan-devel License: BSD3c Summary: Development files for Botan Group: Development/Libraries/C and C++ Requires: libbotan-1_6_4 = %{version} Requires: gmp-devel libbz2-devel Provides: Botan-devel = %{version} Obsoletes: Botan-devel < %{version} %description -n libbotan-devel This package contains the header files and libraries needed to develop programs that use the Botan library. Authors: -------- Name: Jack Lloyd <lloyd@randombit.net> %prep %setup -q %patch0 %patch1 %patch2 %patch3 %patch4 %patch5 %patch6 %build %define botan_docdir %{_defaultdocdir}/%{name} %define common_config_flags --libdir=%{_lib} --noauto --modules=%{MODULES} %ifarch %arm ./configure.pl %{common_config_flags} gcc-%{_target_os}-arm3 %else ./configure.pl %{common_config_flags} gcc-%{_target_os}-%{_target_cpu} %endif make LANG_FLAGS+="%{optflags}" DOCDIR=%{_defaultdocdir}/%{name} shared static %install make DOCDIR=%{buildroot}/%{botan_docdir} OWNER=$(id -u) GROUP=$(id -g) INSTALLROOT="%{buildroot}%{prefix}" install rm -rf %{buildroot}/usr/share/doc/Botan-1.6.1 rm -f %{buildroot}/%{botan_docdir}/fips140.tex %clean rm -rf %{buildroot} %post -n libbotan-1_6_4 -p /sbin/ldconfig %postun -n libbotan-1_6_4 -p /sbin/ldconfig %files -n libbotan-1_6_4 %defattr(-,root,root) %docdir %{botan_docdir} %{botan_docdir}/license.txt %{botan_docdir}/readme.txt %{botan_docdir}/log.txt %{botan_docdir}/thanks.txt %{botan_docdir}/credits.txt %{botan_docdir}/pgpkeys.asc %{botan_docdir}/info.txt %{_libdir}/libbotan-*.so %files -n libbotan-devel %defattr(-,root,root) %docdir %{botan_docdir} %dir %{botan_docdir} %{botan_docdir}/api.pdf %{botan_docdir}/api.tex %{botan_docdir}/tutorial.pdf %{botan_docdir}/tutorial.tex %{botan_docdir}/todo.txt %{_libdir}/libbotan.so %{_libdir}/libbotan.a %{_includedir}/botan/ %{_bindir}/botan-config %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor