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