author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 16430 | 1630b44703c8 |
child 17865 | b7ff02e93f66 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package libgpg-error |
|
11419
685cd8353e09
Security team will take over ownership of libgpg-error
qc161282
parents:
10589
diff
changeset
|
3 |
# Security team will take over ownership of libgpg-error |
685cd8353e09
Security team will take over ownership of libgpg-error
qc161282
parents:
10589
diff
changeset
|
4 |
# So we stop upgrading it before that. |
9397 | 5 |
# |
16434 | 6 |
%define owner jefftsai |
9397 | 7 |
# |
16430 | 8 |
|
9 |
%define OSR 8020:1.5 |
|
10 |
||
9397 | 11 |
Name: libgpg-error |
14958 | 12 |
Version: 1.7 |
9397 | 13 |
Release: 1 |
14 |
Summary: libgpg-error - Common error codes for GnuPG, Libgcrypt etc. |
|
14540 | 15 |
License: GPL v2, LGPL v2.1 |
16279 | 16 |
Vendor: Sun Microsystems, Inc. |
9397 | 17 |
Group: Development/Libraries |
18 |
Copyright: LGPL |
|
19 |
Autoreqprov: on |
|
20 |
URL: http://www.gnupg.org/ |
|
9573 | 21 |
Source: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2 |
9397 | 22 |
Source1: l10n-configure.sh |
10588 | 23 |
# owner:laca type:feature date:2007-10-02 |
24 |
Patch1: libgpg-error-01-gettext.diff |
|
9397 | 25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
26 |
||
27 |
%description |
|
28 |
This is a library that defines common error values for all GnuPG |
|
29 |
components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, |
|
30 |
pinentry, SmartCard Daemon and possibly more in the future. |
|
31 |
||
32 |
%prep |
|
33 |
%setup -n %{name}-%{version} |
|
10588 | 34 |
%patch1 -p1 |
9397 | 35 |
|
12012 | 36 |
bash -x %SOURCE1 --enable-sun-linguas |
9397 | 37 |
|
38 |
%build |
|
9632 | 39 |
%ifos linux |
40 |
if [ -x /usr/bin/getconf ]; then |
|
41 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
42 |
fi |
|
43 |
%else |
|
44 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
45 |
%endif |
|
46 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
47 |
CPUS=1 |
|
48 |
fi |
|
49 |
||
10588 | 50 |
glib-gettextize --force |
51 |
aclocal $ACLOCAL_FLAGS -I ./m4 |
|
52 |
autoconf |
|
9632 | 53 |
export CFLAGS="%optflags" |
54 |
export LDFLAGS="%_ldflags" |
|
55 |
./configure \ |
|
56 |
--prefix=%{_prefix} \ |
|
57 |
--bindir=%{_bindir} \ |
|
58 |
--libdir=%{_libdir} \ |
|
59 |
--sysconfdir=/etc \ |
|
60 |
--libdir=%{_libdir} \ |
|
61 |
--infodir=%{_infodir} |
|
62 |
||
10589 | 63 |
make -j$CPUS MSGFMT_OPTS= |
9397 | 64 |
|
65 |
%install |
|
10589 | 66 |
make DESTDIR=$RPM_BUILD_ROOT install MSGFMT_OPTS= |
9397 | 67 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
68 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
69 |
||
70 |
%clean |
|
71 |
rm -fr $RPM_BUILD_ROOT |
|
72 |
make distclean |
|
73 |
||
74 |
%post |
|
75 |
%run_ldconfig |
|
76 |
||
77 |
%postun |
|
78 |
/sbin/ldconfig |
|
79 |
||
80 |
%files |
|
81 |
%defattr(-,root,root) |
|
82 |
%doc COPYING COPYING.LIB AUTHORS README INSTALL NEWS ChangeLog |
|
83 |
%attr(0755,root,root) %{_bindir}/gpg-error-config |
|
84 |
%attr(0755,root,root) %{_bindir}/gpg-error |
|
85 |
%attr(0755,root,root) %{_libdir}/*gpg-error.so* |
|
86 |
%attr(0644,root,root) %{_libdir}/*gpg-error.a |
|
87 |
%{_includedir}/gpg-error.h |
|
88 |
%{_datadir}/aclocal/gpg-error.m4 |
|
89 |
||
90 |
%changelog -n libgpg-error |
|
14958 | 91 |
* Thu Jan 22 2008 - [email protected] |
92 |
- Bump to 1.7 |
|
14540 | 93 |
* Fri Oct 31 2008 - [email protected] |
94 |
- Change the license tag. |
|
95 |
* Fri Jun 06 2008 - [email protected] |
|
12613 | 96 |
Bump to 1.6 |
10588 | 97 |
* Tue Oct 2 2007 - [email protected] |
98 |
- add patch gettext.diff that fixes the l10n build |
|
9632 | 99 |
* Tue Mar 27 2007 - [email protected] |
100 |
- clean up, enable parallel build |
|
9573 | 101 |
* Fri Mar 16 2007 - [email protected] |
102 |
- Bump to 1.5. |
|
9397 | 103 |
* Sat Jul 22 2006 - [email protected] |
104 |
- Bump version to 1.3. |
|
105 |
* Tue Apr 04 2006 - [email protected] |
|
106 |
- Remove .a/.la files part in linux spec. |
|
107 |
* Wed Aug 31 2005 - [email protected] |
|
108 |
- Initial version. |