Blame SPECS/libgpg-error.spec

2782b1
Summary: Library for error values used by GnuPG components
2782b1
Name: libgpg-error
2782b1
Version: 1.12
2782b1
Release: 1%{?dist}
2782b1
URL: ftp://ftp.gnupg.org/gcrypt/libgpg-error/
2782b1
Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2
2782b1
Source1: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2.sig
2782b1
Group: System Environment/Libraries
2782b1
License: LGPLv2+
2782b1
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2782b1
2782b1
BuildRequires: gawk, gettext, autoconf, automake, gettext-devel, libtool
2782b1
%if 0%{?fedora} > 13
2782b1
BuildRequires: gettext-autopoint
2782b1
%endif
2782b1
Requires(post): /sbin/ldconfig
2782b1
Requires(postun): /sbin/ldconfig
2782b1
2782b1
%description
2782b1
This is a library that defines common error values for all GnuPG
2782b1
components.  Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
2782b1
pinentry, SmartCard Daemon and possibly more in the future.
2782b1
2782b1
%package devel
2782b1
Summary: Development files for the %{name} package
2782b1
Group: Development/Libraries
2782b1
Requires: %{name}%{?_isa} = %{version}-%{release}
2782b1
2782b1
%description devel
2782b1
This is a library that defines common error values for all GnuPG
2782b1
components.  Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
2782b1
pinentry, SmartCard Daemon and possibly more in the future. This package
2782b1
contains files necessary to develop applications using libgpg-error.
2782b1
2782b1
%prep
2782b1
%setup -q
2782b1
# The config script already suppresses the -L if it's /usr/lib, so cheat and
2782b1
# set it to a value which we know will be suppressed.
2782b1
sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g;s|@GPG_ERROR_CONFIG_HOST@|none|g' src/gpg-error-config.in
2782b1
2782b1
# We need a version of libtool that won't decide to add an rpath of /usr/lib64
2782b1
# even when we ask it not to.
2782b1
autoreconf -f -i
2782b1
2782b1
%build
2782b1
%configure --disable-static --disable-rpath --disable-languages
2782b1
make %{?_smp_mflags}
2782b1
2782b1
%install
2782b1
rm -fr $RPM_BUILD_ROOT
2782b1
make install DESTDIR=$RPM_BUILD_ROOT
2782b1
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
2782b1
2782b1
%find_lang %{name}
2782b1
2782b1
# Relocate the shared libraries to /%{_lib}.
2782b1
mkdir -p $RPM_BUILD_ROOT/%{_lib}
2782b1
for shlib in $RPM_BUILD_ROOT/%{_libdir}/*.so* ; do
2782b1
	if test -L "$shlib" ; then
2782b1
		rm "$shlib"
2782b1
	else
2782b1
		mv "$shlib" $RPM_BUILD_ROOT/%{_lib}/
2782b1
	fi
2782b1
done
2782b1
# Figure out where /%{_lib} is relative to %{_libdir}.
2782b1
touch $RPM_BUILD_ROOT/root_marker
2782b1
relroot=..
2782b1
while ! test -f $RPM_BUILD_ROOT/%{_libdir}/$relroot/root_marker ; do
2782b1
	relroot=$relroot/..
2782b1
done
2782b1
# Overwrite development symlinks.
2782b1
pushd $RPM_BUILD_ROOT/%{_libdir}
2782b1
for shlib in $relroot/%{_lib}/lib*.so.* ; do
2782b1
	shlib=`echo "$shlib" | sed -e 's,//,/,g'`
2782b1
	target=`basename "$shlib" | sed -e 's,\.so.*,,g'`.so
2782b1
	ln -sf $shlib $target
2782b1
done
2782b1
popd
2782b1
# Add the soname symlink.
2782b1
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_lib}/
2782b1
rm -f $RPM_BUILD_ROOT/root_marker
2782b1
2782b1
%check
2782b1
make check
2782b1
2782b1
%clean
2782b1
rm -fr $RPM_BUILD_ROOT
2782b1
2782b1
%post -p /sbin/ldconfig
2782b1
2782b1
%postun -p /sbin/ldconfig
2782b1
2782b1
%files -f %{name}.lang
2782b1
%defattr(-,root,root)
2782b1
%doc COPYING COPYING.LIB AUTHORS README NEWS ChangeLog
2782b1
%{_bindir}/gpg-error
2782b1
/%{_lib}/libgpg-error.so.0*
2782b1
2782b1
%files devel
2782b1
%defattr(-,root,root)
2782b1
%{_bindir}/gpg-error-config
2782b1
%{_libdir}/libgpg-error.so
2782b1
%{_includedir}/gpg-error.h
2782b1
%{_datadir}/aclocal/gpg-error.m4
2782b1
2782b1
%changelog
2782b1
* Fri Aug 23 2013 Tomáš Mráz <tmraz@redhat.com> 1.12-1
2782b1
- new upstream release
2782b1
2782b1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
2782b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2782b1
2782b1
* Fri Apr  5 2013 Tomáš Mráz <tmraz@redhat.com> 1.11-1
2782b1
- new upstream release
2782b1
2782b1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-4
2782b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2782b1
2782b1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
2782b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2782b1
2782b1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
2782b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2782b1
2782b1
* Fri Jul 15 2011 Tomáš Mráz <tmraz@redhat.com> 1.10-1
2782b1
- new upstream release
2782b1
2782b1
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-2
2782b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2782b1
2782b1
* Fri Jul 23 2010 Rex Dieter <rdieter@fedoraproject.org> 1.9-1
2782b1
- libgpg-error-1.9
2782b1
2782b1
* Thu Feb 25 2010 Nalin Dahyabhai <nalin@redhat.com> - 1.7-3
2782b1
- turn off common lisp bindings the right way
2782b1
- drop finger output
2782b1
- recode the changelog into UTF-8 if it isn't UTF-8 (rpmlint)
2782b1
2782b1
* Mon Jan 11 2010 Nalin Dahyabhai <nalin@redhat.com> - 1.7-2
2782b1
- fix use of macro in changelog (rpmlint)
2782b1
- build with --disable-rpath (rpmlint)
2782b1
- build with %%{?_smp_mflags}
2782b1
2782b1
* Thu Oct 15 2009 Nalin Dahyabhai <nalin@redhat.com> - 1.7-1
2782b1
- long-overdue update to 1.7
2782b1
- add a disttag
2782b1
2782b1
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-4
2782b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2782b1
2782b1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
2782b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2782b1
2782b1
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.6-2
2782b1
- Autorebuild for GCC 4.3
2782b1
2782b1
* Fri Dec  7 2007 Nalin Dahyabhai <nalin@redhat.com>
2782b1
- remove the generic install docs (#226021)
2782b1
2782b1
* Fri Dec  7 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.6-1
2782b1
- update to 1.6
2782b1
- add suggested summary, buildrequires, and modify install call as suggested
2782b1
  by package review (#226021)
2782b1
2782b1
* Mon Oct 15 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-6
2782b1
- use ldconfig to make the soname symlink so that it gets packaged (#331241)
2782b1
2782b1
* Wed Aug 22 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-5
2782b1
- add missing gawk buildrequirement
2782b1
2782b1
* Thu Aug 16 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-4
2782b1
- clarify license
2782b1
2782b1
* Mon Jul 30 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-3
2782b1
- disable static libraries (part of #249815)
2782b1
2782b1
* Fri Jul 27 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-2
2782b1
- move libgpg-error shared library to /%%{_lib} (#249816)
2782b1
2782b1
* Thu Jul 19 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-1
2782b1
- update to 1.5
2782b1
2782b1
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 1.4-2
2782b1
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
2782b1
2782b1
* Mon Sep 18 2006 Bill Nottngham <notting@redhat.com> - 1.4-1
2782b1
- update to 1.4
2782b1
- don't ship lisp bindings
2782b1
2782b1
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.3-3.1
2782b1
- rebuild
2782b1
2782b1
* Mon Jun  5 2006 Nalin Dahyabhai <nalin@redhat.com> 1.3-3
2782b1
- give gpg-error-config libdir=@exec_prefix@/lib instead of @libdir@, so that
2782b1
  it agrees on 32- and 64-bit arches (it suppresses the -L argument if @libdir@
2782b1
  is /usr/lib, so this should be cleaner than adding a non-standard .pc file
2782b1
  which upstream developers might inadvertently think they can depend to be on
2782b1
  every system which provides this library)
2782b1
2782b1
* Mon May 15 2006 Karsten Hopp <karsten@redhat.de> 1.3-2
2782b1
- switch to pkgconfig so that gpg-error-config can be the same on 
2782b1
  32bit and 64bit archs
2782b1
2782b1
* Tue May  2 2006 Nalin Dahyabhai <nalin@redhat.com> - 1.3-1
2782b1
- update to version 1.3
2782b1
2782b1
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.1-1.2.1
2782b1
- bump again for double-long bug on ppc(64)
2782b1
2782b1
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.1-1.2
2782b1
- rebuilt for new gcc4.1 snapshot and glibc changes
2782b1
2782b1
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
2782b1
- rebuilt
2782b1
2782b1
* Wed Nov 30 2005 Karsten Hopp <karsten@redhat.de> 1.1-1
2782b1
- update
2782b1
2782b1
* Wed Mar  2 2005 Bill Nottingham <notting@redhat.com> - 1.0-2
2782b1
- we can rebuild it. we have the technology.
2782b1
2782b1
* Tue Aug 31 2004 Bill Nottingham <notting@redhat.com> - 1.0-1
2782b1
- update to 1.0
2782b1
2782b1
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
2782b1
- rebuilt
2782b1
2782b1
* Fri Apr 16 2004 Bill Nottingham <notting@redhat.com> - 0.7-1
2782b1
- adapt upstream specfile