Blob Blame History Raw
# spec file for thunderbird-enigmail
#
# Copyright (c) 2009-2015 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%define thunderbird_app_id \{3550f703-e582-4d05-9a08-453d09bdfdc6\} 
%global enimail_app_id     \{847b3a00-7ab1-11d4-8f02-006008948af5\}

%global thunmin            31.0

%global enigmail_extname   %{_libdir}/mozilla/extensions/%{thunderbird_app_id}/%{enimail_app_id}

#global gitcommit          d77065b0c1ddae7a666827e9a83fb728b303503d
#global gitdate            20150227
#global gitshort           %(c=%{gitcommit}; echo ${c:0:7})

Summary:        Authentication and encryption extension for Mozilla Thunderbird
Name:           thunderbird-enigmail
Version:        1.8.2
Release:        1%{?dist}
URL:            http://enigmail.mozdev.org/
# All files licensed under MPL 1.1/GPL 2.0/LGPL 2.1
License:        MPLv1.1 or GPLv2+ or LGPLv2+
Group:          Applications/Internet
%if 0%{?gitdate}
# git clone git://git.code.sf.net/p/enigmail/source enigmail-source
# cd enigmail-source; git checkout c429d03
# git archive --format=tar.gz --prefix enigmail/ --output ../enigmail-1.8-d77065b.tar.gz --verbose  master
Source0:        enigmail-%{version}-%{gitshort}.tar.gz
%else
Source0:        http://www.mozilla-enigmail.org/download/source/enigmail-%{version}.tar.gz
%endif

BuildRequires:  zip
BuildRequires:  perl >= 5.8
BuildRequires:  python >= 2.7

Requires:  thunderbird >= %{thunmin}


%description
Enigmail is an extension to the mail client Mozilla Thunderbird
which allows users to access the authentication and encryption
features provided by GnuPG 


%prep
%setup -q -n enigmail

RDF=package/install.rdf

grep "em:version" $RDF
grep "em:min"     $RDF
sed -e '/em:version/s/>[1-9].*</>%{version}</' -i $RDF

grep -q "<em:version>%{version}</em:version>"  $RDF || exit 1


%build
# see https://www.enigmail.net/download/build_instructions.php
%configure

make
make xpi


%install
mkdir -p $RPM_BUILD_ROOT%{enigmail_extname}
unzip -q build/enigmail-*.xpi -d $RPM_BUILD_ROOT%{enigmail_extname}

# Needed for debuginfo
find $RPM_BUILD_ROOT%{enigmail_extname} \
  -name \*.so \
  -exec chmod +x {} \; \
  -print


%files
%{enigmail_extname}


#===============================================================================

%changelog
* Fri Apr 17 2015 Remi Collet <remi@fedoraproject.org> 1.8.2-1
- Enigmail 1.8.2

* Mon Mar 23 2015 Remi Collet <remi@fedoraproject.org> 1.8.1-1
- Enigmail 1.8.1

* Tue Mar 17 2015 Remi Collet <remi@fedoraproject.org> 1.8-1
- Enigmail 1.8

* Fri Aug 29 2014 Remi Collet <remi@fedoraproject.org> 1.7.2-1
- Enigmail 1.7.2, fix CVE-2014-5369

* Tue Jul 15 2014 Remi Collet <remi@fedoraproject.org> 1.7-1
- Enigmail 1.7
- new build system, without need for Thunderbird sources

* Sun Nov 03 2013 Dennis Gilmore <dennis@ausil.us> 1.6-2
- remove ExcludeArch armv7hl

* Tue Oct  8 2013 Remi Collet <remi@fedoraproject.org> 1.6-1
- Enigmail 1.6

* Sat Sep 21 2013 Remi Collet <remi@fedoraproject.org> 1.5.2-3
- Enigmail 1.5.2 for Thunderbird > 24

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Jul  4 2013 Remi Collet <remi@fedoraproject.org> 1.5.2-1
- Enigmail 1.5.2 for Thunderbird 17.0.7

* Sun Feb 10 2013 Remi Collet <remi@fedoraproject.org> 1.5.1-1
- Enigmail 1.5.1 for Thunderbird 17.0.2
- sync with latest thunderbird.spec changes

* Sun Dec 30 2012 Remi Collet <remi@fedoraproject.org> 1.5.0-1
- Enigmail 1.5.0 for Thunderbird 17

* Tue Nov 20 2012 Jan Horak <jhorak@redhat.com> - 1.4.6-2
- Rebuild against newer Thunderbird

* Fri Nov  9 2012 Remi Collet <remi@fedoraproject.org> 1.4.6-1
- Enigmail 1.4.6 for Thunderbird 16

* Tue Oct 16 2012 Remi Collet <remi@fedoraproject.org> 1.4.5-2
- Enigmail 1.4.5 for Thunderbird 16.0.1
- merge changes from thunderbird in rawhide

* Tue Oct  9 2012 Remi Collet <remi@fedoraproject.org> 1.4.5-1
- Enigmail 1.4.5 for Thunderbird 16

* Mon Aug 27 2012 Remi Collet <remi@fedoraproject.org> 1.4.4-2
- Enigmail 1.4.4 for Thunderbird 15.0

* Tue Aug 21 2012 Remi Collet <remi@fedoraproject.org> 1.4.4-1
- Enigmail 1.4.4 for Thunderbird 14.0

* Sat Jul 21 2012 Remi Collet <remi@fedoraproject.org> 1.4.3-1
- Enigmail 1.4.3 for Thunderbird 14.0

* Tue Jun 05 2012 Remi Collet <remi@fedoraproject.org> 1.4.2-1
- Enigmail 1.4.2 for Thunderbird 13.0

* Sat Apr 28 2012 Remi Collet <remi@fedoraproject.org> 1.4.1-1
- Enigmail 1.4.1 for Thunderbird 12.0

* Fri Mar 16 2012 Remi Collet <remi@fedoraproject.org> 1.4-2.1
- latest patch from rawhide

* Thu Mar 15 2012 Remi Collet <remi@fedoraproject.org> 1.4-2
- Enigmail 1.4 for Thunderbird 11.0

* Sat Mar 03 2012 Remi Collet <remi@fedoraproject.org> 1.4-1
- Enigmail 1.4 for Thunderbird 10.0.2
- using upstream fixlang.pl instead of our fixlang.php

* Tue Jan 31 2012 Remi Collet <remi@fedoraproject.org> 1.3.5-1
- Enigmail 1.3.5 for Thunderbird 10.0

* Wed Dec 21 2011 Remi Collet <remi@fedoraproject.org> 1.3.4-1
- Enigmail 1.3.4 for Thunderbird 9.0

* Sat Nov 12 2011 Remi Collet <remi@fedoraproject.org> 1.3.3-1
- Enigmail 1.3.3 for Thunderbird 8.0

* Wed Oct 12 2011 Georgi Georgiev <chutzimir@gmail.com> - 1.3.2-2
- Make it work on RHEL

* Sat Oct 01 2011 Remi Collet <remi@fedoraproject.org> 1.3.2-2
- Enigmail 1.3.2 for Thunderbird 7.0.1
- fix extension version

* Thu Sep 29 2011 Remi Collet <remi@fedoraproject.org> 1.3.2-1
- Enigmail 1.3.2 for Thunderbird 7.0

* Wed Aug 17 2011 Remi Collet <remi@fedoraproject.org> 1.3-1
- Enigmail 1.3 for Thunderbird 6.0

* Sat Jul 30 2011 Remi Collet <remi@fedoraproject.org> 1.2.1-1
- Enigmail 1.2.1 for Thunderbird 5.0

* Tue Jul 19 2011 Remi Collet <remi@fedoraproject.org> 1.2-1.2
- add --enable-chrome-format=jar to generate enigmail.jar

* Sun Jul 17 2011 Remi Collet <remi@fedoraproject.org> 1.2-1.1
- fix BR (dos2unix + php-cli)

* Sun Jul 17 2011 Remi Collet <rpms@famillecollet.com> 1.2-1
- Enigmail 1.2 for Thunderbird 5.0

* Thu Jul 22 2010 Remi Collet <rpms@famillecollet.com> 1.1.2-3
- move to /usr/lib/mozilla/extensions (as lightning)
- build against thunderbird 3.1.1 sources
- sync patches with F-13

* Sat Jul 10 2010 Remi Collet <rpms@famillecollet.com> 1.1.2-2
- remove link mecanism as thundebird dir is now stable (see #608511)

* Wed Jun 30 2010 Remi Collet <rpms@famillecollet.com> 1.1.2-1
- Enigmail 1.1.1 (against thunderbird 3.1)

* Sat Jun 26 2010 Remi Collet <rpms@famillecollet.com> 1.1.1-2
- new sources (only fix displayed version)

* Sat Jun 26 2010 Remi Collet <rpms@famillecollet.com> 1.1.1-1
- Enigmail 1.1.1 (against thunderbird 3.1)

* Mon May 31 2010 Remi Collet <rpms@famillecollet.com> 1.1-1
- Enigmail 1.1 (against thunderbird 3.1rc1)

* Mon Feb 01 2010 Remi Collet <rpms@famillecollet.com> 1.0.1-1
- Enigmail 1.0.1 (against thunderbird 3.0.1)

* Fri Jan 29 2010 Remi Collet <rpms@famillecollet.com> 1.0.1-0.1.rc1
- Enigmail 1.0.1rc1 (against thunderbird 3.0.1)

* Mon Nov 30 2009 Remi Collet <rpms@famillecollet.com> 1.0.0-1
- Enigmail 1.0 (against thunderbird 3.0rc1)

* Sat Nov 21 2009 Remi Collet <rpms@famillecollet.com> 1.0-0.1.cvs20091121
- new CVS snapshot (against thunderbird 3.0rc1)

* Tue Jul 21 2009 Remi Collet <rpms@famillecollet.com> 0.97a-0.1.cvs20090721
- new CVS snapshot (against thunderbird 3.0b3)

* Thu May 21 2009 Remi Collet <rpms@famillecollet.com> 0.96a-0.3.cvs20090521
- new CVS snapshot
- fix License and Sumnary

* Mon May 18 2009 Remi Collet <rpms@famillecollet.com> 0.96a-0.2.cvs20090516
- use mozilla-extension-update.sh from thunderbird-lightning

* Sat May 16 2009 Remi Collet <rpms@famillecollet.com> 0.96a-0.1.cvs20090516
- new CVS snapshot
- rpmfusion review proposal

* Thu Apr 30 2009 Remi Collet <rpms@famillecollet.com> 0.96a-0.1.cvs20090430.fc11.remi
- new CVS snapshot
- F11 build

* Mon Mar 16 2009 Remi Collet <rpms@famillecollet.com> 0.96a-0.1.cvs20090316.fc#.remi
- new CVS snapshot
- add enigmail-fixlang.php

* Sun Mar 15 2009 Remi Collet <rpms@famillecollet.com> 0.96a-0.1.cvs20090315.fc#.remi
- enigmail 0.96a (CVS), Thunderbird 3.0b2