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