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