📄 botan.spec
字号:
# Botan base spec file# Note that some of the commands in here pretty much assume a GNU# toolset, which is unfortunate and should probably be fixed.################################################### Hardware restrictions on various modules ###################################################%define HAS_RDTSC i586 i686 athlon################################################### Version numbers and other config options ###################################################%define MAJOR $MAJOR%define MINOR $MINOR%define PATCH $PATCH# This is the list of modules built into the library. We also# include the 'unix' module set.%define THREADS mutex_pthread%define MISC comp_bzip2,comp_zlib%ifarch %{HAS_RDTSC} %define TIMERS timer_posix,timer_hw_ia32%endif%ifnarch %{HAS_RDTSC} %define TIMERS timer_posix%endif%define MODULES %{TIMERS},%{THREADS},%{MISC}################################################### Descriptions ###################################################%define VERSION %{MAJOR}.%{MINOR}.%{PATCH}Name: BotanSummary: A C++ crypto libraryVersion: %{VERSION}Release: 1Copyright: BSDGroup: System Environment/LibrariesRequires: bzip2 >= 1.0.0, zlib >= 1.1.3Source: http://botan.randombit.net/botan/files/Botan-%{VERSION}.tgzURL: http://botan.randombit.netPackager: Jack Lloyd <lloyd@randombit.net>BuildRoot: /var/tmp/botan-rpmrootPrefix: /usr/local%descriptionBotan is a library, written in C++, for providing cryptographic algorithms toany application which may find such things useful. It includes a wide selectionof cryptographic algorithms, and a high-level filter based interface.%package develSummary: Development files for BotanGroup: Development/LibrariesRequires: Botan = %{VERSION}%description develThis package contains the header files and libraries needed to develop programsthat use the Botan library.################################################### Main Logic ###################################################%prep%setup -n Botan-%{VERSION}%build./configure.pl --module-set=unix --modules=%{MODULES} \ gcc-%{_target_os}-%{_target_cpu}# Work around the occasionally somewhat-less-than-functional RedHat compilermake LIB_OPT="-O3" shared static%cleanrm -rf $RPM_BUILD_ROOT%installROOT="$RPM_BUILD_ROOT/usr/local"make OWNER=`id -u` GROUP=`id -g` INSTALLROOT="$ROOT" install# Need this since we're installing shared libs...%postif ! grep "^$RPM_INSTALL_PREFIX/lib$" /etc/ld.so.conf 2>&1 >/dev/nullthen echo "$RPM_INSTALL_PREFIX/lib" >>/etc/ld.so.conffi/sbin/ldconfig%post develif [ $RPM_INSTALL_PREFIX != "/usr" -a -d "/usr/include" ]then ln -s $RPM_INSTALL_PREFIX/include/botan /usr/include/botan ln -s $RPM_INSTALL_PREFIX/include/botan /usr/include/openclfi%postunRMDIR_IGNORE_NONEMPTY="rmdir --ignore-fail-on-non-empty"/sbin/ldconfigif [ -d $RPM_INSTALL_PREFIX/share/doc/botan-%{VERSION} ]; then $RMDIR_IGNORE_NONEMPTY $RPM_INSTALL_PREFIX/share/doc/botan-%{VERSION}fi%postun develRMDIR_IGNORE_NONEMPTY="rmdir --ignore-fail-on-non-empty"if [ $RPM_INSTALL_PREFIX != "/usr" ]then if [ -L /usr/include/botan ] then rm -f /usr/include/botan fi if [ -L /usr/include/opencl ] then rm -f /usr/include/opencl fifiif [ -d $RPM_INSTALL_PREFIX/include/botan ]; then $RMDIR_IGNORE_NONEMPTY $RPM_INSTALL_PREFIX/include/botanfi################################################### File Lists ###################################################%files%attr(-,root,root) %docdir /usr/local/share/doc/botan-%{VERSION}/%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/license.txt%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/readme.txt%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/log.txt%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/thanks.txt%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/authors.txt%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/pgpkeys.asc%attr(-,root,root) /usr/local/lib/libbotan-%{MAJOR}.so%attr(-,root,root) /usr/local/lib/libbotan-%{MAJOR}.%{MINOR}.so%attr(-,root,root) /usr/local/lib/libbotan-%{MAJOR}.%{MINOR}.%{PATCH}.so%files devel%attr(-,root,root) %docdir /usr/local/share/doc/botan-%{VERSION}/%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/bugs.txt%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/deprecated.txt%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/todo.txt%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/indent.el%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/api.ps%attr(-,root,root) /usr/local/share/doc/botan-%{VERSION}/api.tex%attr(-,root,root) /usr/local/lib/libopencl.so%attr(-,root,root) /usr/local/lib/libbotan.so%attr(-,root,root) /usr/local/lib/libbotan.a%attr(-,root,root) /usr/local/include/botan/%attr(-,root,root) /usr/local/include/opencl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -