Package libcryptopp: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | %def_without autotools %def_disable static %define oname cryptopp %ifarch armh %add_optflags -mfpu=neon %endif Name: libcryptopp Version: 8.9.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@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 * Mon Dec 25 2023 Vitaly Lipatov <lav@altlinux.ru> 8.9.0-alt1 - new version 8.9.0 (with rpmrb script) * Sun Aug 20 2023 Vitaly Lipatov <lav@altlinux.ru> 8.8.0-alt1 - new version 8.8.0 (with rpmrb script) * Sun May 01 2022 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 8.6.0-alt1.1 - fixed build for Elbrus * Sun Apr 03 2022 Vitaly Lipatov <lav@altlinux.ru> 8.6.0-alt1 - new version 8.6.0 (with rpmrb script) * Wed Sep 08 2021 Vitaly Lipatov <lav@altlinux.ru> 8.5.0-alt2 - disable build devel-static package (due LTO error) * Thu Jul 01 2021 Vitaly Lipatov <lav@altlinux.ru> 8.5.0-alt1 - new version 8.5.0 (with rpmrb script) * Thu Jun 13 2019 Vitaly Lipatov <lav@altlinux.ru> 8.2.0-alt1 - new version 8.2.0 (with rpmrb script) * Sun Nov 04 2018 Vitaly Lipatov <lav@altlinux.ru> 7.0.0-alt1 - new version 7.0.0 (with rpmrb script) * Sat Jun 09 2018 Vitaly Lipatov <lav@altlinux.ru> 6.1.0-alt1 - new version 6.1.0 (with rpmrb script) * Sat Dec 09 2017 Vitaly Lipatov <lav@altlinux.ru> 5.6.5-alt1 - new version 5.6.5 (with rpmrb script) - return to native build - enable check during build * Sat Jan 30 2016 Vitaly Lipatov <lav@altlinux.ru> 5.6.3-alt1 - new version 5.6.3 (with rpmrb script) * Sat Jul 11 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 5.6.2-alt1.1 - Rebuilt with gcc5 * Wed Jul 17 2013 Evgeny Sinelnikov <sin@altlinux.ru> 5.6.2-alt1 - Update to last stable release with multiple fixes and SHA-3 implemetation - Change license from GPL to Boost Software License 1.0 * Tue Nov 13 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 5.6.0-alt3.qa3 - Fixed build with gcc 4.7 * Thu Aug 16 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 5.6.0-alt3.qa2 - Rebuilt for debuginfo * Thu Nov 25 2010 Igor Vlasenko <viy@altlinux.ru> 5.6.0-alt3.qa1 - rebuild using girar-nmu to require/provide setversion by request of mithraen@ * Sun Dec 13 2009 Vitaly Lipatov <lav@altlinux.ru> 5.6.0-alt3 - really pack 5.6.0 (fix bug #22515) * Wed Jul 22 2009 Vitaly Lipatov <lav@altlinux.ru> 5.6.0-alt2 - fix pkgconfig file * Mon Jul 20 2009 Vitaly Lipatov <lav@altlinux.ru> 5.6.0-alt1 - new version 5.6.0 (with rpmrb script) - add pkgconfig file (ALT #20826) * Sat Mar 29 2008 Vitaly Lipatov <lav@altlinux.ru> 5.5.2-alt2 - fix devel-static package name * Fri Jan 25 2008 Vitaly Lipatov <lav@altlinux.ru> 5.5.2-alt1 - new version (5.5.2), update autoconf/automake files - disable asm code * Fri Jan 25 2008 Vitaly Lipatov <lav@altlinux.ru> 5.2.1-alt1 - initial build for ALT Linux Sisyphus (spec from PLD) |