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