libgpg-error.spec revision 17181
10139N/A#
10139N/A# spec file for package libgpg-error
10139N/A# Security team will take over ownership of libgpg-error
10139N/A# So we stop upgrading it before that.
10139N/A#
10139N/A# Owner: jefftsai
10139N/A#
12353N/A
10139N/A%define OSR 8020:1.5
17178N/A
17178N/AName: libgpg-error
17178N/AVersion: 1.7
10139N/ARelease: 1
10139N/ASummary: libgpg-error - Common error codes for GnuPG, Libgcrypt etc.
10139N/ALicense: GPL v2, LGPL v2.1
12556N/AVendor: Sun Microsystems, Inc.
10139N/AGroup: Development/Libraries
10139N/ACopyright: LGPL
10139N/AAutoreqprov: on
10139N/AURL: http://www.gnupg.org/
10139N/ASource: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2
10139N/ASource1: l10n-configure.sh
10139N/A# owner:laca type:feature date:2007-10-02
10139N/APatch1: libgpg-error-01-gettext.diff
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A
10139N/A%description
10139N/AThis is a library that defines common error values for all GnuPG
10139N/Acomponents. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
10139N/Apinentry, SmartCard Daemon and possibly more in the future.
10139N/A
10139N/A%prep
10139N/A%setup -n %{name}-%{version}
10139N/A%patch1 -p1
10139N/A
10139N/Abash -x %SOURCE1 --enable-sun-linguas
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/Aglib-gettextize --force
10139N/Aaclocal $ACLOCAL_FLAGS -I ./m4
10139N/Aautoconf
10139N/Aexport CFLAGS="%optflags"
10139N/Aexport LDFLAGS="%_ldflags"
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
12556N/A --bindir=%{_bindir} \
12556N/A --libdir=%{_libdir} \
12053N/A --sysconfdir=/etc \
12053N/A --libdir=%{_libdir} \
10139N/A --infodir=%{_infodir}
10139N/A
10139N/Amake -j$CPUS MSGFMT_OPTS=
10139N/A
10139N/A%install
10139N/Amake DESTDIR=$RPM_BUILD_ROOT install MSGFMT_OPTS=
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
10139N/A
10139N/A%clean
rm -fr $RPM_BUILD_ROOT
make distclean
%post
%run_ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING COPYING.LIB AUTHORS README INSTALL NEWS ChangeLog
%attr(0755,root,root) %{_bindir}/gpg-error-config
%attr(0755,root,root) %{_bindir}/gpg-error
%attr(0755,root,root) %{_libdir}/*gpg-error.so*
%attr(0644,root,root) %{_libdir}/*gpg-error.a
%{_includedir}/gpg-error.h
%{_datadir}/aclocal/gpg-error.m4
%changelog -n libgpg-error
* Thu Jan 22 2008 - jeff.cai@sun.com
- Bump to 1.7
* Fri Oct 31 2008 - jeff.cai@sun.com
- Change the license tag.
* Fri Jun 06 2008 - jeff.cai@sun.com
Bump to 1.6
* Tue Oct 2 2007 - laca@sun.com
- add patch gettext.diff that fixes the l10n build
* Tue Mar 27 2007 - laca@sun.com
- clean up, enable parallel build
* Fri Mar 16 2007 - jeff.cai@sun.com
- Bump to 1.5.
* Sat Jul 22 2006 - halton.huo@sun.com
- Bump version to 1.3.
* Tue Apr 04 2006 - halton.huo@sun.com
- Remove .a/.la files part in linux spec.
* Wed Aug 31 2005 - halton.huo@sun.com
- Initial version.