da3e11
764ed1
Name:    gpgme
466db9
Summary: GnuPG Made Easy - high level crypto API
208c0a
Version: 1.3.0
08f340
Release: 5%{?dist}
da3e11
608528
License: LGPLv2+
466db9
Group:   Applications/System
466db9
URL:     http://www.gnupg.org/related_software/gpgme/
ec2cc6
Source0: ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-%{version}.tar.bz2
ec2cc6
Source1: ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-%{version}.tar.bz2.sig
764ed1
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsextras cfe98d
8462f3
Patch1: gpgme-1.3.0-config_extras.patch
e4fc36
ebd764
# fix ImplicitDSOLinking in tests/, upstreamable
208c0a
Patch2:  gpgme-1.3.0-ImplicitDSOLinking.patch
ebd764
07d90f
# add -D_FILE_OFFSET_BITS... to gpgme-config, upstreamable
07d90f
Patch3:  gpgme-1.2.0-largefile.patch
07d90f
7d4c60
BuildRequires: gawk
e96f5d
BuildRequires: gnupg2
4cfd26
BuildRequires: gnupg2-smime
e96f5d
BuildRequires: libgpg-error-devel
e96f5d
BuildRequires: pth-devel
31d5bb
BuildRequires: libassuan2-devel
466db9
daccd1
# --disable-gpg-test required since 'make check' currently includes some
daccd1
# gpg(1)-specific tests
daccd1
%define _with_gpg --with-gpg=%{_bindir}/gpg2 --disable-gpg-test
e96f5d
Requires: gnupg2
cvsextras cfe98d
Simon Lukasik 7552b0
# On the following architectures workaround multiarch conflict of -devel packages:
Simon Lukasik 7552b0
%define multilib_arches %{ix86} x86_64 ia64 ppc ppc64 s390 s390x %{sparc}
Simon Lukasik 7552b0
cvsextras cfe98d
%description
cvsextras cfe98d
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
cvsextras cfe98d
easier for applications.  It provides a high-level crypto API for
cvsextras cfe98d
encryption, decryption, signing, signature verification and key
cvsextras cfe98d
management.
cvsextras cfe98d
466db9
%package devel
86a966
Summary:  Development headers and libraries for %{name}
466db9
Group:    Development/Libraries
764ed1
Requires: %{name} = %{version}-%{release}
466db9
Requires: libgpg-error-devel
31d5bb
# http://bugzilla.redhat.com/676954
31d5bb
# TODO: see if -lassuan can be added to config_extras patch too -- Rex
8462f3
#Requires: libassuan2-devel
fc0330
# /usr/share/aclocal ownership
fc0330
#Requires: automake
cvsextras cfe98d
Requires(post): /sbin/install-info
cvsextras cfe98d
Requires(postun): /sbin/install-info
da3e11
%description devel
c0f6fa
%{summary}
cvsextras cfe98d
cvsextras cfe98d
cvsextras cfe98d
%prep
cvsextras cfe98d
%setup -q
da3e11
e4fc36
%patch1 -p1 -b .config_extras
ebd764
%patch2 -p1 -b .ImplicitDSOLinking
07d90f
%patch3 -p1 -b .largefile
e4fc36
f8ec49
## HACK ALERT
f8ec49
# The config script already suppresses the -L if it's /usr/lib, so cheat and
f8ec49
# set it to a value which we know will be suppressed.
4f8e7d
sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g' src/gpgme-config.in
cvsextras cfe98d
cvsextras cfe98d
%build
466db9
%configure \
d33d50
  --disable-static \
daccd1
  %{?_with_gpg}
466db9
cvsextras cfe98d
make %{?_smp_mflags}
cvsextras cfe98d
cvsextras cfe98d
cvsextras cfe98d
%install
cvsextras cfe98d
rm -rf $RPM_BUILD_ROOT
da3e11
cvsextras cfe98d
make install DESTDIR=$RPM_BUILD_ROOT
466db9
850617
# unpackaged files
da3e11
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
fc0330
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
850617
rm -rf $RPM_BUILD_ROOT%{_datadir}/common-lisp/source/gpgme/
cvsextras cfe98d
Simon Lukasik 7552b0
# Hack to resolve multiarch conflict (#341351)
Simon Lukasik 7552b0
%ifarch %{multilib_arches}
Simon Lukasik 7552b0
install $RPM_BUILD_ROOT%{_bindir}/gpgme-config{,.%{_target_cpu}}
Simon Lukasik 7552b0
cat > $RPM_BUILD_ROOT%{_bindir}/gpgme-config <<__END__
Simon Lukasik 7552b0
#!/bin/sh
Simon Lukasik 7552b0
exec %{_bindir}/gpgme-config.\$(arch) \$@
Simon Lukasik 7552b0
__END__
Simon Lukasik 7552b0
%endif
cvsextras cfe98d
cb7a93
%check 
86a966
# expect 1(+?) errors with gnupg < 1.2.4
19c9bd
# gpgme-1.1.6 includes one known failure (FAIL: t-sign)
4f8e7d
make -C tests check 
cvsextras cfe98d
cvsextras cfe98d
cvsextras cfe98d
%clean
cvsextras cfe98d
rm -rf $RPM_BUILD_ROOT
cvsextras cfe98d
cvsextras cfe98d
cvsextras cfe98d
%post -p /sbin/ldconfig
cvsextras cfe98d
da3e11
%postun -p /sbin/ldconfig
466db9
cvsextras cfe98d
%post devel
cvsextras cfe98d
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
cvsextras cfe98d
4f8e7d
%preun devel
cvsextras cfe98d
if [ $1 -eq 0 ] ; then
466db9
  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
cvsextras cfe98d
fi
cvsextras cfe98d
cvsextras cfe98d
cvsextras cfe98d
%files
cvsextras cfe98d
%defattr(-,root,root,-)
466db9
%doc AUTHORS COPYING* ChangeLog NEWS README* THANKS TODO VERSION
daccd1
%{_libdir}/libgpgme.so.11*
daccd1
%{_libdir}/libgpgme-pth.so.11*
daccd1
%{_libdir}/libgpgme-pthread.so.11*
cvsextras cfe98d
cvsextras cfe98d
%files devel
cvsextras cfe98d
%defattr(-,root,root,-)
cvsextras cfe98d
%{_bindir}/gpgme-config
Simon Lukasik 7552b0
%ifarch %{multilib_arches}
Simon Lukasik 7552b0
  %{_bindir}/gpgme-config.%{_target_cpu}
Simon Lukasik 7552b0
%endif
da3e11
%{_includedir}/*
f8ec49
%{_libdir}/libgpgme*.so
cvsextras cfe98d
%{_datadir}/aclocal/gpgme.m4
cvsextras cfe98d
%{_infodir}/gpgme.info*
cvsextras cfe98d
cvsextras cfe98d
cvsextras cfe98d
%changelog
08f340
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-5
08f340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
08f340
8462f3
* Thu Mar 17 2011 Rex Dieter <rdieter@fedoraproject.org> - 1.3.0-4
8462f3
- gpgme-config: remove libassuan-related flags as threatened (#676954) 
8462f3
\
60e4c3
* Sun Feb 13 2011 Rex Dieter <rdieter@fedoraproject.org> - 1.3.0-3
60e4c3
- -devel: fix typo (broken dep)
60e4c3
31d5bb
* Sat Feb 12 2011 Rex Dieter <rdieter@fedoraproject.org> - 1.3.0-2
31d5bb
- BR: libassuan2-devel
31d5bb
- gpgme-config outputs -lassuan (#676954)
31d5bb
208c0a
* Fri Feb 11 2011 Tomas Mraz <tmraz@redhat.com> - 1.3.0-1
208c0a
- new upstream version
208c0a
329fdb
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
329fdb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
329fdb
2c122d
* Wed Aug 18 2010 Tomas Mraz <tmraz@redhat.com> - 1.2.0-3
2c122d
- fix the condition for adding the -D_FILE_OFFSET_BITS...
2c122d
07d90f
* Wed Aug 11 2010 Tomas Mraz <tmraz@redhat.com> - 1.2.0-2
07d90f
- add -D_FILE_OFFSET_BITS... to gpgme-config as appropriate (#621698)
07d90f
8abe8a
* Fri Jul 02 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.2.0-1
8abe8a
- gpgme-1.2.0 (#610984)
8abe8a
ebd764
* Sun Feb 14 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.1.8-4
ebd764
- FTBFS gpgme-1.1.8-3.fc13: ImplicitDSOLinking (#564605)
ebd764
4cfd26
* Thu Nov 19 2009 Tomas Mraz <tmraz@redhat.com> - 1.1.8-3
4cfd26
- Add buildrequires gnupg2-smime for the gpgsm
4cfd26
910ff2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-2
910ff2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
910ff2
4f8e7d
* Sat Jun 20 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.8-1
4f8e7d
- gpgme-1.1.8
4f8e7d
- -devel: s/postun/preun/ info scriptlet
4f8e7d
daccd1
* Wed Mar 11 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.7-3
daccd1
- track shlib sonames closer, to highlight future abi/soname changes
daccd1
- _with_gpg macro, to potentially conditionalize gnupg vs gnupg2 defaults
daccd1
  for various os/releases (ie, fedora vs rhel)
daccd1
bdead7
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-2
bdead7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bdead7
fc0330
* Sat Oct 18 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.7-1
fc0330
- gpgme-1.1.7
fc0330
d33d50
* Sun Feb 17 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.6-3
d33d50
- --with-gpg=%%_bindir/gpg2 (#432445)
d33d50
- drop Requires: gnupg (#432445)
d33d50
26cbd8
* Fri Feb 08 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.6-2 
26cbd8
- respin (gcc43)
26cbd8
f8ec49
* Fri Jan 04 2008 Rex Dieter <rdieter[at]fedoraproject.org> 1.1.6-1
f8ec49
- gpgme-1.1.6
f8ec49
- multiarch conflicts in gpgme (#341351)
f8ec49
7d4c60
* Sat Aug 25 2007 Rex Dieter <rdieter[at]fedoraproject.org> 1.1.5-4
7d4c60
- BR: gawk
7d4c60
4ba95e
* Sat Aug 25 2007 Rex Dieter <rdieter[at]fedoraproject.org> 1.1.5-3
4ba95e
- respin (BuildID)
4ba95e
608528
* Thu Aug 09 2007 Rex Dieter <rdieter[at]fedoraproject.org> 1.1.5-2
608528
- License: LGPLv2+
608528
e89753
* Mon Jul 09 2007 Rex Dieter <rdieter[at]fedoraproject.org> 1.1.5-1
e89753
- gpgme-1.1.5
e89753
e96f5d
* Mon Mar 05 2007 Rex Dieter <rdieter[at]fedoraproject.org> 1.1.4-1
e96f5d
- gpgme-1.1.4
e96f5d
850617
* Sat Feb 03 2007 Rex Dieter <rdieter[at]fedoraproject.org> 1.1.3-1
850617
- gpgme-1.1.3
850617
5dce2d
* Tue Oct 03 2006 Rex Dieter <rexdieter[at]users.sf.net>
5dce2d
- respin
5dce2d
80f128
* Mon Sep 18 2006 Rex Dieter <rexdieter[at]users.sf.net> 1.1.2-6
80f128
- fix gpgme-config --thread=pthread --cflags
80f128
b40ba9
* Tue Aug 29 2006 Rex Dieter <rexdieter[at]users.sf.net> 1.1.2-5
b40ba9
- fc6 respin
b40ba9
eaf032
* Mon Mar 6 2006 Rex Dieter <rexdieter[at]users.sf.net> 1.1.2-4
e4fc36
- add back support for gpgme-config --thread=pthread
e4fc36
e4fc36
* Mon Mar 6 2006 Rex Dieter <rexdieter[at]users.sf.net> 1.1.2-2
e4fc36
- drop extraneous libs from gpgme-config
e4fc36
190354
* Fri Mar 3 2006 Rex Dieter <rexdieter[at]users.sf.net> 1.1.2-1
190354
- 1.1.2
190354
- drop upstreamed gpgme-1.1.0-tests.patch
190354
565b1b
* Wed Mar 1 2006 Rex Dieter <rexdieter[at]users.sf.net>
86a966
- fc5: gcc/glibc respin
86a966
86a966
* Wed Nov 30 2005 Rex Dieter <rexdieter[at]users.sf.net> - 1.1.0-3
86a966
- (re)build against (newer) libksba/gnupg2
86a966
b0b1fd
* Thu Oct 06 2005 Rex Dieter <rexdieter[at]users.sf.net> - 1.1.0-2
c0f6fa
- 1.1.0
c0f6fa
da3e11
* Mon Aug  8 2005 Rex Dieter <rexdieter[at]users.sf.net> - 1.0.3-1
da3e11
- 1.0.3
da3e11
- --disable-static
da3e11
ec2cc6
* Thu May 12 2005 Michael Schwendt <mschwendt[at]users.sf.net> - 1.0.2-3
ec2cc6
- rebuilt
ec2cc6
bc49aa
* Fri Mar 18 2005 Ville Skyttä <ville.skytta at="" iki.fi=""> - 1.0.2-2
bc49aa
- Fix FC4 build.
bc49aa
466db9
* Tue Feb  1 2005 Michael Schwendt <mschwendt[at]users.sf.net> - 0:1.0.2-1
466db9
- LGPL used here, and made summary more explicit.
466db9
- Remove dirmngr dependency (gpgsm interfaces with it).
37986f
- Obsolete cryptplug as gpgme >= 0.4.5 provides what we used cryptplug for.
466db9
466db9
* Thu Jan 06 2005 Rex Dieter <rexdieter[at]users.sf.net> 0:1.0.2-0.fdr.1
466db9
- 1.0.2
466db9
466db9
* Thu Oct 21 2004 Rex Dieter <rexdieter at="" sf.net=""> 0:1.0.0-0.fdr.1
466db9
- 1.0.0
466db9
- Requires: dirmngr
466db9
466db9
* Tue Oct 19 2004 Rex Dieter <rexdieter at="" sf.net=""> 0:0.4.7-0.fdr.1
466db9
- 0.4.7
a5b857
cvsextras cfe98d
* Sun May  2 2004 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.4.3-0.fdr.3
cvsextras cfe98d
- Require %%{_bindir}/gpgsm instead of newpg.
cvsextras cfe98d
- Cosmetic spec file improvements.
cvsextras cfe98d
cvsextras cfe98d
* Thu Oct 23 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.4.3-0.fdr.2
cvsextras cfe98d
- Update description.
cvsextras cfe98d
cvsextras cfe98d
* Tue Oct  7 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.4.3-0.fdr.1
cvsextras cfe98d
- Update to 0.4.3.
cvsextras cfe98d
cvsextras cfe98d
* Fri Aug 15 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.4.2-0.fdr.1
cvsextras cfe98d
- Update to 0.4.2.
cvsextras cfe98d
- make check in the %%check section.
cvsextras cfe98d
cvsextras cfe98d
* Thu Jul 10 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.4.1-0.fdr.1
cvsextras cfe98d
- Update to 0.4.1.
cvsextras cfe98d
- Make -devel cooperate with --excludedocs.
cvsextras cfe98d
cvsextras cfe98d
* Sat Apr 19 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.4.0-0.fdr.2
cvsextras cfe98d
- BuildRequire pth-devel, fix missing epoch in -devel Requires (#169).
cvsextras cfe98d
- Save .spec in UTF-8.
cvsextras cfe98d
cvsextras cfe98d
* Sat Mar 22 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.4.0-0.fdr.1
cvsextras cfe98d
- Update to current Fedora guidelines.
cvsextras cfe98d
- Exclude %%{_libdir}/*.la.
cvsextras cfe98d
cvsextras cfe98d
* Tue Feb 12 2003 Warren Togami <warren@togami.com> 0.4.0-1.fedora.3
cvsextras cfe98d
- info/dir temporary workaround
cvsextras cfe98d
cvsextras cfe98d
* Sat Feb  8 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0.4.0-1.fedora.1
cvsextras cfe98d
- First Fedora release.