| 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
|---|
| 2 | Summary: common error codes for GnuPG related projects |
|---|
| 3 | Summary(ja): GnuPG 関連プロジェクトで共通のエラーコード |
|---|
| 4 | Name: libgpg-error |
|---|
| 5 | Version: 1.10 |
|---|
| 6 | Release: 1%{?_dist_release} |
|---|
| 7 | URL: ftp://ftp.gnupg.org/gcrypt/libgpg-error/ |
|---|
| 8 | Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2 |
|---|
| 9 | Source1: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2.sig |
|---|
| 10 | Group: System Environment/Libraries |
|---|
| 11 | License: LGPL |
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 13 | |
|---|
| 14 | Vendor: Project Vine |
|---|
| 15 | Distribution: Vine Linux |
|---|
| 16 | |
|---|
| 17 | %description |
|---|
| 18 | This is a library that defines common error values for all GnuPG |
|---|
| 19 | components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, |
|---|
| 20 | pinentry, SmartCard Daemon and possibly more in the future. |
|---|
| 21 | |
|---|
| 22 | %package devel |
|---|
| 23 | Summary: Development files for the %{name} package |
|---|
| 24 | Summary(ja): %{name} パッケージの開発用ファイル |
|---|
| 25 | Group: Development/Libraries |
|---|
| 26 | Requires: %{name} = %{version}-%{release} |
|---|
| 27 | |
|---|
| 28 | %description devel |
|---|
| 29 | This is a library that defines common error values for all GnuPG |
|---|
| 30 | components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, |
|---|
| 31 | pinentry, SmartCard Daemon and possibly more in the future. This package |
|---|
| 32 | contains files necessary to develop applications using libgpg-error. |
|---|
| 33 | |
|---|
| 34 | %package -n compat32-%{name} |
|---|
| 35 | Summary: common error codes for GnuPG related projects |
|---|
| 36 | Summary(ja): GnuPG 関連プロジェクトで共通のエラーコード |
|---|
| 37 | Group: System Environment/Libraries |
|---|
| 38 | Requires: %{name} = %{version}-%{release} |
|---|
| 39 | |
|---|
| 40 | %description -n compat32-%{name} |
|---|
| 41 | This is a library that defines common error values for all GnuPG |
|---|
| 42 | components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, |
|---|
| 43 | pinentry, SmartCard Daemon and possibly more in the future. |
|---|
| 44 | |
|---|
| 45 | %package -n compat32-%{name}-devel |
|---|
| 46 | Summary: Development files for the %{name} package |
|---|
| 47 | Summary(ja): %{name} パッケージの開発用ファイル |
|---|
| 48 | Group: Development/Libraries |
|---|
| 49 | Requires: compat32-%{name} = %{version}-%{release} |
|---|
| 50 | Requires: %{name}-devel = %{version}-%{release} |
|---|
| 51 | |
|---|
| 52 | %description -n compat32-%{name}-devel |
|---|
| 53 | This is a library that defines common error values for all GnuPG |
|---|
| 54 | components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, |
|---|
| 55 | pinentry, SmartCard Daemon and possibly more in the future. This package |
|---|
| 56 | contains files necessary to develop applications using libgpg-error. |
|---|
| 57 | |
|---|
| 58 | %prep |
|---|
| 59 | %setup -q |
|---|
| 60 | |
|---|
| 61 | %build |
|---|
| 62 | %configure --disable-static |
|---|
| 63 | make %{?_smp_mflags} |
|---|
| 64 | |
|---|
| 65 | %install |
|---|
| 66 | rm -rf $RPM_BUILD_ROOT |
|---|
| 67 | %makeinstall |
|---|
| 68 | |
|---|
| 69 | # remove unneeded files |
|---|
| 70 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
|---|
| 71 | rm -rf $RPM_BUILD_ROOT%{_datadir}/common-lisp |
|---|
| 72 | |
|---|
| 73 | %find_lang %{name} |
|---|
| 74 | |
|---|
| 75 | %clean |
|---|
| 76 | rm -rf $RPM_BUILD_ROOT |
|---|
| 77 | |
|---|
| 78 | %post -p /sbin/ldconfig |
|---|
| 79 | |
|---|
| 80 | %postun -p /sbin/ldconfig |
|---|
| 81 | |
|---|
| 82 | %post -n compat32-%{name} -p /sbin/ldconfig |
|---|
| 83 | |
|---|
| 84 | %postun -n compat32-%{name} -p /sbin/ldconfig |
|---|
| 85 | |
|---|
| 86 | %files -f %{name}.lang |
|---|
| 87 | %defattr(-,root,root) |
|---|
| 88 | %doc COPYING COPYING.LIB AUTHORS README INSTALL NEWS ChangeLog |
|---|
| 89 | %{_bindir}/gpg-error |
|---|
| 90 | %{_libdir}/libgpg-error.so.* |
|---|
| 91 | |
|---|
| 92 | %files devel |
|---|
| 93 | %defattr(-,root,root) |
|---|
| 94 | %{_bindir}/gpg-error-config |
|---|
| 95 | %{_libdir}/libgpg-error.so |
|---|
| 96 | %{_includedir}/gpg-error.h |
|---|
| 97 | %{_datadir}/aclocal/gpg-error.m4 |
|---|
| 98 | |
|---|
| 99 | # compat32 |
|---|
| 100 | %if %{build_compat32} |
|---|
| 101 | %files -n compat32-%{name} |
|---|
| 102 | %defattr(-,root,root) |
|---|
| 103 | %{_libdir}/libgpg-error.so.* |
|---|
| 104 | |
|---|
| 105 | %files -n compat32-%{name}-devel |
|---|
| 106 | %defattr(-,root,root) |
|---|
| 107 | %{_libdir}/libgpg-error.so |
|---|
| 108 | %endif |
|---|
| 109 | |
|---|
| 110 | %changelog |
|---|
| 111 | * Mon Apr 4 2011 IWAI, Masaharu <iwai@alib.jp> 1.10-1 |
|---|
| 112 | - new upstream release |
|---|
| 113 | |
|---|
| 114 | * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.9-1 |
|---|
| 115 | - new upstream release |
|---|
| 116 | |
|---|
| 117 | * Thu Apr 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7-1 |
|---|
| 118 | - new upstream release |
|---|
| 119 | - added --disable-static to %%configure |
|---|
| 120 | - built with new toolchain |
|---|
| 121 | |
|---|
| 122 | * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.6-3 |
|---|
| 123 | - added compat32 package for x86_64 arch support |
|---|
| 124 | |
|---|
| 125 | * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6-2 |
|---|
| 126 | - spec in utf-8 |
|---|
| 127 | - remove static lib |
|---|
| 128 | |
|---|
| 129 | * Tue Mar 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6-1vl5 |
|---|
| 130 | - new upstream release |
|---|
| 131 | - used _dist_release macro |
|---|
| 132 | |
|---|
| 133 | * Fri Mar 09 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4-0vl1 |
|---|
| 134 | - new upstream release |
|---|
| 135 | - add Vendor/Distribution tag |
|---|
| 136 | |
|---|
| 137 | * Sun Apr 09 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.3-0vl1 |
|---|
| 138 | - new upstream release |
|---|
| 139 | |
|---|
| 140 | * Tue Nov 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl1 |
|---|
| 141 | - initial build for Vine Linux |
|---|
| 142 | |
|---|
| 143 | * Tue Aug 31 2004 Bill Nottingham <notting@redhat.com> - 1.0-1 |
|---|
| 144 | - update to 1.0 |
|---|
| 145 | |
|---|
| 146 | * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> |
|---|
| 147 | - rebuilt |
|---|
| 148 | |
|---|
| 149 | * Fri Apr 16 2004 Bill Nottingham <notting@redhat.com> - 0.7-1 |
|---|
| 150 | - adapt upstream specfile |
|---|