libgpg-error.spec revision 12754
16969N/A#
16969N/A# spec file for package libgpg-error
16969N/A# Security team will take over ownership of libgpg-error
16969N/A# So we stop upgrading it before that.
16969N/A#
16969N/A# Owner: jefftsai
16969N/A#
16969N/AName: libgpg-error
16969N/AVersion: 1.5
16969N/ARelease: 1
16969N/ASummary: libgpg-error - Common error codes for GnuPG, Libgcrypt etc.
16969N/ALicense: GPL, Other License(s), see package
16969N/AGroup: Development/Libraries
16969N/ACopyright: LGPL
16969N/AAutoreqprov: on
16969N/AURL: http://www.gnupg.org/
16969N/ASource: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2
16969N/ASource1: l10n-configure.sh
16969N/A# owner:laca type:feature date:2007-10-02
16969N/APatch1: libgpg-error-01-gettext.diff
16969N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16969N/A
16969N/A%description
16969N/AThis is a library that defines common error values for all GnuPG
16969N/Acomponents. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
16969N/Apinentry, SmartCard Daemon and possibly more in the future.
16969N/A
%prep
%setup -n %{name}-%{version}
%patch1 -p1
bash -x %SOURCE1 --enable-sun-linguas
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
glib-gettextize --force
aclocal $ACLOCAL_FLAGS -I ./m4
autoconf
export CFLAGS="%optflags"
export LDFLAGS="%_ldflags"
./configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--libdir=%{_libdir} \
--sysconfdir=/etc \
--libdir=%{_libdir} \
--infodir=%{_infodir}
make -j$CPUS MSGFMT_OPTS=
%install
make DESTDIR=$RPM_BUILD_ROOT install MSGFMT_OPTS=
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
%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
* 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.