10139N/A#
10139N/A# spec file for package libgpg-error
12161N/A# Security team will take over ownership of libgpg-error
12161N/A# So we stop upgrading it before that.
10139N/A#
17185N/A%define owner jefftsai
10139N/A#
17181N/A
17181N/A%define OSR 8020:1.5
17181N/A
10139N/AName: libgpg-error
19069N/AVersion: 1.10
10139N/ARelease: 1
10139N/ASummary: libgpg-error - Common error codes for GnuPG, Libgcrypt etc.
15291N/ALicense: GPL v2, LGPL v2.1
18616N/AVendor: Other
10139N/AGroup: Development/Libraries
10139N/ACopyright: LGPL
10139N/AAutoreqprov: on
10139N/AURL: http://www.gnupg.org/
10315N/ASource: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2
10139N/ASource1: l10n-configure.sh
19100N/A# owner:laca type:feature date:2007-10-02
19100N/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}
19100N/A%patch1 -p1
10139N/A
12754N/Abash -x %SOURCE1 --enable-sun-linguas
10139N/A
10139N/A%build
10374N/A%ifos linux
10374N/Aif [ -x /usr/bin/getconf ]; then
10374N/A CPUS=`getconf _NPROCESSORS_ONLN`
10374N/Afi
10374N/A%else
10374N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10374N/A%endif
10374N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10374N/A CPUS=1
10374N/Afi
10374N/A
11330N/Aglib-gettextize --force
11330N/Aaclocal $ACLOCAL_FLAGS -I ./m4
11330N/Aautoconf
10374N/Aexport CFLAGS="%optflags"
10374N/Aexport LDFLAGS="%_ldflags"
10374N/A./configure \
10374N/A --prefix=%{_prefix} \
10374N/A --bindir=%{_bindir} \
10374N/A --libdir=%{_libdir} \
10374N/A --sysconfdir=/etc \
10374N/A --libdir=%{_libdir} \
10374N/A --infodir=%{_infodir}
10374N/A
11331N/Amake -j$CPUS MSGFMT_OPTS=
10139N/A
10139N/A%install
11331N/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
10139N/Arm -fr $RPM_BUILD_ROOT
10139N/Amake distclean
10139N/A
10139N/A%post
10139N/A%run_ldconfig
10139N/A
10139N/A%postun
10139N/A/sbin/ldconfig
10139N/A
10139N/A%files
10139N/A%defattr(-,root,root)
10139N/A%doc COPYING COPYING.LIB AUTHORS README INSTALL NEWS ChangeLog
10139N/A%attr(0755,root,root) %{_bindir}/gpg-error-config
10139N/A%attr(0755,root,root) %{_bindir}/gpg-error
10139N/A%attr(0755,root,root) %{_libdir}/*gpg-error.so*
10139N/A%attr(0644,root,root) %{_libdir}/*gpg-error.a
10139N/A%{_includedir}/gpg-error.h
10139N/A%{_datadir}/aclocal/gpg-error.m4
10139N/A
10139N/A%changelog -n libgpg-error
19069N/A* Thu Oct 28 2010 - jeff.cai@oracle.com
19069N/A- Bump to 1.10
19069N/A- Remove the patch -01-gettext
18819N/A* Thu Jun 03 2010 - jeff.cai@sun.com
18819N/A- Bump to 1.8
15709N/A* Thu Jan 22 2008 - jeff.cai@sun.com
15709N/A- Bump to 1.7
15291N/A* Fri Oct 31 2008 - jeff.cai@sun.com
15291N/A- Change the license tag.
15291N/A* Fri Jun 06 2008 - jeff.cai@sun.com
13355N/A Bump to 1.6
11330N/A* Tue Oct 2 2007 - laca@sun.com
11330N/A- add patch gettext.diff that fixes the l10n build
10374N/A* Tue Mar 27 2007 - laca@sun.com
10374N/A- clean up, enable parallel build
10315N/A* Fri Mar 16 2007 - jeff.cai@sun.com
10315N/A- Bump to 1.5.
10139N/A* Sat Jul 22 2006 - halton.huo@sun.com
10139N/A- Bump version to 1.3.
10139N/A* Tue Apr 04 2006 - halton.huo@sun.com
10139N/A- Remove .a/.la files part in linux spec.
10139N/A* Wed Aug 31 2005 - halton.huo@sun.com
10139N/A- Initial version.