Группа :: Система/Библиотеки
Пакет: libcryptopp
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_without autotools
%def_disable static
%define oname cryptopp
%ifarch armh
%add_optflags -mfpu=neon
%endif
Name: libcryptopp
Version: 8.8.0
Release: alt1
# convert 5.6.2 -> 562 format
%define orig_version %(echo %version | sed -e "s/\\.//g")
Summary: Cryptopp Library - a free C++ class library of cryptographic schemes
License: Boost Software License
Url: http://www.cryptopp.com/
Group: System/Libraries
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: http://www.cryptopp.com/%oname%orig_version.zip
Source: %name-%version.tar
Patch: %oname-autotools.patch
Provides: libcrypto++ = %version-%release
Obsoletes: libcrypto++
# Automatically added by buildreq on Sun Jan 27 2008
BuildRequires: gcc-c++
%description
Cryptopp Library is a free C++ class library of cryptographic schemes.
Small intro in russian: http://andreyvit.livejournal.com/37576.html
%package devel
Summary: Files for development of applications which will use Cryptopp
Group: Development/C++
Requires: %name = %version-%release
Provides: libcrypto++-devel = %version-%release
Obsoletes: libcrypto++-devel
%description devel
Files for development of applications which will use Cryptopp.
%package devel-static
Summary: Static Cryptopp library
Group: Development/C++
Requires: %name-devel = %version-%release
Provides: %name-static
Obsoletes: %name-static
%description devel-static
Static Cryptopp library.
%package progs
Summary: Cryptopp programs
Group: File tools
Requires: %name = %version-%release
%description progs
Cryptopp programs.
%prep
%setup
%if_with autotools
%patch -p1
rm -f GNUmakefile
%endif
%ifarch %e2k
sed -i "1i #define CRYPTOPP_DISABLE_ASM 1" config_asm.h
%endif
#touch NEWS README AUTHORS ChangeLog
%build
%add_optflags -fpermissive
%if_with autotools
%autoreconf
%configure %{subst_enable static}
%ifnarch x86_64
# Does not build with PIC by default on x86, see
# http://groups.google.com/group/cryptopp-users/browse_thread/thread/d639907b0b1816b9
%__subst '1 i #define CRYPTOPP_DISABLE_SSE2' config.h
%endif
%make_build
%else
%make_build LDLIBS="-lpthread" CXXFLAGS="%optflags %optflags_shared" PREFIX=%prefix static dynamic cryptest.exe
%endif
# too long
#%check
#./cryptest v 2>&1 | tee cryptest.log
#grep -qs '^FAILED' cryptest.log && exit 1 || :
%check
make test
%install
%if_with autotools
%makeinstall_std
%else
make install DESTDIR=%buildroot PREFIX=%_prefix LIBDIR=%_libdir
mv %buildroot%_bindir/cryptest.exe %buildroot%_bindir/cryptest
%endif
%if_disabled static
rm -v %buildroot%_libdir/libcryptopp.a
%endif
mkdir -p %buildroot%_pkgconfigdir/
cat >%buildroot%_pkgconfigdir/libcrypto++.pc <<EOF
Name: libcrypto++
Description: General purpose cryptographic shared library
URL: http://www.cryptopp.com
Version: %version
Requires:
Libs: -lcryptopp
Cflags:
EOF
%files
%doc License.txt Readme.txt
%_libdir/libcryptopp.so.*
%files devel
%_libdir/libcryptopp.so
%_includedir/cryptopp/
%_pkgconfigdir/*
%if_enabled static
%files devel-static
%_libdir/libcryptopp.a
%endif
%files progs
%_bindir/cryptest
#_bindir/cryptestcwd
%_datadir/cryptopp/
%changelog
…
Полный changelog можно просмотреть здесь
%def_disable static
%define oname cryptopp
%ifarch armh
%add_optflags -mfpu=neon
%endif
Name: libcryptopp
Version: 8.8.0
Release: alt1
# convert 5.6.2 -> 562 format
%define orig_version %(echo %version | sed -e "s/\\.//g")
Summary: Cryptopp Library - a free C++ class library of cryptographic schemes
License: Boost Software License
Url: http://www.cryptopp.com/
Group: System/Libraries
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: http://www.cryptopp.com/%oname%orig_version.zip
Source: %name-%version.tar
Patch: %oname-autotools.patch
Provides: libcrypto++ = %version-%release
Obsoletes: libcrypto++
# Automatically added by buildreq on Sun Jan 27 2008
BuildRequires: gcc-c++
%description
Cryptopp Library is a free C++ class library of cryptographic schemes.
Small intro in russian: http://andreyvit.livejournal.com/37576.html
%package devel
Summary: Files for development of applications which will use Cryptopp
Group: Development/C++
Requires: %name = %version-%release
Provides: libcrypto++-devel = %version-%release
Obsoletes: libcrypto++-devel
%description devel
Files for development of applications which will use Cryptopp.
%package devel-static
Summary: Static Cryptopp library
Group: Development/C++
Requires: %name-devel = %version-%release
Provides: %name-static
Obsoletes: %name-static
%description devel-static
Static Cryptopp library.
%package progs
Summary: Cryptopp programs
Group: File tools
Requires: %name = %version-%release
%description progs
Cryptopp programs.
%prep
%setup
%if_with autotools
%patch -p1
rm -f GNUmakefile
%endif
%ifarch %e2k
sed -i "1i #define CRYPTOPP_DISABLE_ASM 1" config_asm.h
%endif
#touch NEWS README AUTHORS ChangeLog
%build
%add_optflags -fpermissive
%if_with autotools
%autoreconf
%configure %{subst_enable static}
%ifnarch x86_64
# Does not build with PIC by default on x86, see
# http://groups.google.com/group/cryptopp-users/browse_thread/thread/d639907b0b1816b9
%__subst '1 i #define CRYPTOPP_DISABLE_SSE2' config.h
%endif
%make_build
%else
%make_build LDLIBS="-lpthread" CXXFLAGS="%optflags %optflags_shared" PREFIX=%prefix static dynamic cryptest.exe
%endif
# too long
#%check
#./cryptest v 2>&1 | tee cryptest.log
#grep -qs '^FAILED' cryptest.log && exit 1 || :
%check
make test
%install
%if_with autotools
%makeinstall_std
%else
make install DESTDIR=%buildroot PREFIX=%_prefix LIBDIR=%_libdir
mv %buildroot%_bindir/cryptest.exe %buildroot%_bindir/cryptest
%endif
%if_disabled static
rm -v %buildroot%_libdir/libcryptopp.a
%endif
mkdir -p %buildroot%_pkgconfigdir/
cat >%buildroot%_pkgconfigdir/libcrypto++.pc <<EOF
Name: libcrypto++
Description: General purpose cryptographic shared library
URL: http://www.cryptopp.com
Version: %version
Requires:
Libs: -lcryptopp
Cflags:
EOF
%files
%doc License.txt Readme.txt
%_libdir/libcryptopp.so.*
%files devel
%_libdir/libcryptopp.so
%_includedir/cryptopp/
%_pkgconfigdir/*
%if_enabled static
%files devel-static
%_libdir/libcryptopp.a
%endif
%files progs
%_bindir/cryptest
#_bindir/cryptestcwd
%_datadir/cryptopp/
%changelog
…
Полный changelog можно просмотреть здесь