[8268] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | Summary: A cryptographic library based on the code from GnuPG. |
---|
| 3 | Summary(ja): GnuPG のコードをベースとした暗号化ライブラリ |
---|
| 4 | Name: libgcrypt15 |
---|
| 5 | Version: 1.5.3 |
---|
| 6 | Release: 3%{?_dist_release} |
---|
| 7 | URL: http://www.gnu.org/directory/security/libgcrypt.html |
---|
| 8 | Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2 |
---|
| 9 | Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig |
---|
| 10 | License: GPLv2+ |
---|
| 11 | Group: System Environment/Libraries |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | BuildRequires: libgpg-error-devel >= 0.5 |
---|
| 15 | Requires: libgpg-error |
---|
| 16 | Requires(post,preun): /sbin/install-info |
---|
| 17 | |
---|
| 18 | Vendor: Project Vine |
---|
| 19 | Distribution: Vine Linux |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | This is a general purpose cryptographic library based on the code from |
---|
| 23 | GnuPG. It provides functions for all cryptograhic building blocks: |
---|
| 24 | symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash |
---|
| 25 | algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for |
---|
| 26 | all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large |
---|
| 27 | integer functions, random numbers and a lot of supporting functions. |
---|
| 28 | |
---|
| 29 | %package devel |
---|
| 30 | Summary: Development files for libgcrypt |
---|
| 31 | Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ |
---|
| 32 | Group: Development/Libraries |
---|
| 33 | Requires: %{name} = %{version}-%{release} |
---|
| 34 | Requires: libgpg-error-devel |
---|
| 35 | |
---|
| 36 | %description devel |
---|
| 37 | Static libraries and header files from libgcrypt. |
---|
| 38 | |
---|
| 39 | %package -n compat32-%{name} |
---|
| 40 | Summary: A cryptographic library based on the code from GnuPG. |
---|
| 41 | Summary(ja): GnuPG のコードをベースとした暗号化ライブラリ |
---|
| 42 | Group: System Environment/Libraries |
---|
| 43 | Requires: %{name} = %{version}-%{release} |
---|
| 44 | |
---|
| 45 | %description -n compat32-%{name} |
---|
| 46 | This is a general purpose cryptographic library based on the code from |
---|
| 47 | GnuPG. It provides functions for all cryptograhic building blocks: |
---|
| 48 | symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash |
---|
| 49 | algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for |
---|
| 50 | all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large |
---|
| 51 | integer functions, random numbers and a lot of supporting functions. |
---|
| 52 | |
---|
| 53 | %package -n compat32-%{name}-devel |
---|
| 54 | Summary: Development files for libgcrypt |
---|
| 55 | Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ |
---|
| 56 | Group: Development/Libraries |
---|
| 57 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 58 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 59 | Requires: compat32-libgpg-error-devel |
---|
| 60 | |
---|
| 61 | %description -n compat32-%{name}-devel |
---|
| 62 | Static libraries and header files from libgcrypt. |
---|
| 63 | |
---|
| 64 | %prep |
---|
| 65 | %setup -q -n libgcrypt-%{version} |
---|
| 66 | |
---|
| 67 | %build |
---|
| 68 | %configure --disable-static |
---|
| 69 | make |
---|
| 70 | |
---|
| 71 | %install |
---|
| 72 | [ "%{buildroot}" != / ] && rm -rf %{buildroot} |
---|
| 73 | %makeinstall |
---|
| 74 | rm -f %{buildroot}%{_infodir}/dir |
---|
| 75 | |
---|
| 76 | ## remove unuse files |
---|
| 77 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %clean |
---|
| 81 | [ "%{buildroot}" != / ] && rm -rf %{buildroot} |
---|
| 82 | |
---|
| 83 | %post -p /sbin/ldconfig |
---|
| 84 | |
---|
| 85 | %postun -p /sbin/ldconfig |
---|
| 86 | |
---|
| 87 | %post devel |
---|
| 88 | /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz ||: |
---|
| 89 | |
---|
| 90 | %preun devel |
---|
| 91 | if [ $1 = 0 ]; then |
---|
| 92 | /sbin/install-info --delete %{_infodir}/gcrypt.info.gz %{_infodir}/dir ||: |
---|
| 93 | fi |
---|
| 94 | |
---|
| 95 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 96 | |
---|
| 97 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 98 | |
---|
| 99 | %files |
---|
| 100 | %defattr(-,root,root) |
---|
| 101 | %doc README* NEWS |
---|
| 102 | %{_libdir}/*.so.* |
---|
| 103 | |
---|
| 104 | %exclude %{_bindir}/* |
---|
| 105 | %exclude %{_includedir}/* |
---|
| 106 | %exclude %{_libdir}/*.so |
---|
| 107 | %exclude %{_datadir}/aclocal/libgcrypt.m4 |
---|
| 108 | %exclude %{_infodir}/* |
---|
| 109 | |
---|
| 110 | # compat32 |
---|
| 111 | %if %{build_compat32} |
---|
| 112 | %files -n compat32-%{name} |
---|
| 113 | %defattr(-,root,root) |
---|
| 114 | %{_libdir}/*.so.* |
---|
| 115 | |
---|
| 116 | %exclude %{_libdir}/*.so |
---|
| 117 | %endif |
---|
| 118 | |
---|
| 119 | %changelog |
---|
| 120 | * Wed Jan 15 2014 NAKAMURA Kenta <kenta@vinelinux.org> - 1.5.3-3 |
---|
| 121 | - rename package (libgcrypt15) |
---|
| 122 | |
---|
| 123 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.3-2 |
---|
| 124 | - rebuild with VineSeed environment |
---|
| 125 | |
---|
| 126 | * Sat Aug 10 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.3-1 |
---|
| 127 | - new upstream release |
---|
| 128 | |
---|
| 129 | * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.6-1 |
---|
| 130 | - new upstream release |
---|
| 131 | |
---|
| 132 | * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.4.3-3 |
---|
| 133 | - added compat32 package for x86_64 arch support |
---|
| 134 | - added --disable-static %%configure option |
---|
| 135 | |
---|
| 136 | * Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.3-2 |
---|
| 137 | - removed *.la |
---|
| 138 | |
---|
| 139 | * Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3-1 |
---|
| 140 | - new upstream release |
---|
| 141 | |
---|
| 142 | * Tue Mar 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-1vl5 |
---|
| 143 | - new upstream release |
---|
| 144 | - used _dist_release macro |
---|
| 145 | |
---|
| 146 | * Sat Mar 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-0vl1 |
---|
| 147 | - new upstream release |
---|
| 148 | |
---|
| 149 | * Sun Nov 26 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-0vl1 |
---|
| 150 | - new upstream release |
---|
| 151 | - changed Group to System Environment/Libraries |
---|
| 152 | |
---|
| 153 | * Fri Dec 30 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.2-0vl1 |
---|
| 154 | - new upstream release |
---|
| 155 | |
---|
| 156 | * Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.1-0vl1 |
---|
| 157 | - new upstream release |
---|
| 158 | - fix dependencies |
---|
| 159 | - add BuildRequires: libgpg-error-devel >= 0.5 |
---|
| 160 | - add Requires: libgpg-error |
---|
| 161 | - add Requires: libgpg-error-devel for devel package |
---|
| 162 | |
---|
| 163 | * Tue Nov 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1 |
---|
| 164 | - new upstream release |
---|
| 165 | |
---|
| 166 | * Sun Mar 7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.12-0vl1 |
---|
| 167 | - initial build |
---|
| 168 | |
---|