libgpg-error.spec revision 10374
10139N/A#
10139N/A# spec file for package libgpg-error
10139N/A#
12279N/A# Owner: jefftsai
10139N/A#
10139N/AName: libgpg-error
10139N/AVersion: 1.5
13969N/ARelease: 1
10139N/ASummary: libgpg-error - Common error codes for GnuPG, Libgcrypt etc.
10139N/ALicense: GPL, Other License(s), see package
10139N/AGroup: Development/Libraries
10139N/ACopyright: LGPL
16135N/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/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16135N/A
12773N/A%description
12773N/AThis is a library that defines common error values for all GnuPG
12773N/Acomponents. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
10139N/Apinentry, SmartCard Daemon and possibly more in the future.
16353N/A
10139N/A%prep
10139N/A%setup -n %{name}-%{version}
10139N/A
10139N/Abash -x %SOURCE1
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/Aexport CFLAGS="%optflags"
10139N/Aexport LDFLAGS="%_ldflags"
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --bindir=%{_bindir} \
10139N/A --libdir=%{_libdir} \
10139N/A --sysconfdir=/etc \
10139N/A --libdir=%{_libdir} \
10139N/A --infodir=%{_infodir}
10139N/A
10139N/Amake -j$CPUS
10139N/A
10139N/A%install
10139N/Amake DESTDIR=$RPM_BUILD_ROOT install
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
11139N/A%{_datadir}/aclocal/gpg-error.m4
12773N/A
12773N/A%changelog -n libgpg-error
12773N/A* Tue Mar 27 2007 - laca@sun.com
12773N/A- clean up, enable parallel build
12773N/A* Fri Mar 16 2007 - jeff.cai@sun.com
10139N/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.
10139N/A