Name: archivemail Version: 0.9.0 Release: 10%{?dist} Summary: A tool for archiving and compressing old email in mailboxes Group: Applications/Internet License: GPLv2+ URL: http://archivemail.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz # Small wrapper script for launching archivemail Source1: archivemail Source2: archivemail-README.tests #Patch0: test_archivemail.patch #Patch1: archivemail-test-noshebang.patch Patch2: archivemail-main-noshebang.patch Patch3: archivemail-0.8.0-test_path.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: python %description Archivemail is a tool written in Python for archiving and compressing old email in mailboxes. It can move messages older than the specified number of days to a separate mbox format mailbox that is compressed with gzip, or optionally just delete old email. %prep %setup -q chmod 0644 test_archivemail # The patch creates the foundation for removing hardcoded dirs... #%patch0 -b .paths # ...but I then use sed to further modify the files, so that the RPM build system's # path macros are used properly: #sed -i "s:ARCHIVEMAIL_DATADIR = '\\./':ARCHIVEMAIL_DATADIR = '%{_datadir}/archivemail':" test_archivemail.py # Again, follow RPM's macros (in case these get redefined, the package can simply # be rebuilt instead of modified to compensate for it: #sed -i "s:/usr/share/archivemail:%{_datadir}/archivemail:" %{SOURCE1} #%patch1 -p0 %patch2 -p0 %patch3 -p0 %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} install -D -m 755 -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/archivemail install -D -m 644 -p archivemail $RPM_BUILD_ROOT%{_datadir}/archivemail/archivemail.py install -D -m 644 -p archivemail.1 $RPM_BUILD_ROOT%{_mandir}/man1/archivemail.1 cp %{SOURCE2} . %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc archivemail.xml CHANGELOG COPYING FAQ README test_archivemail TODO examples archivemail-README.tests %{_bindir}/archivemail %{_datadir}/archivemail %{_mandir}/man1/archivemail.1.gz %changelog * Wed Jul 26 2017 Fedora Release Engineering - 0.9.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.9.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 0.9.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.9.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.9.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.9.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 13 2013 Fedora Release Engineering - 0.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 0.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Jul 10 2011 Jon Ciesla 0.9.0-1 - New upstream release. * Mon Feb 07 2011 Fedora Release Engineering - 0.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Oct 18 2010 Jon Ciesla 0.8.2-1 - New upstream release. * Fri Oct 01 2010 Jon Ciesla 0.8.1-1 - New upstream release. * Mon Aug 09 2010 Jon Ciesla 0.8.0-1 - New upstream release. - Updated test patches, dropped patch fuzz. Finally. :) * Fri Jul 24 2009 Fedora Release Engineering - 0.7.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 0.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Sep 12 2008 Jon Ciesla 0.7.2-2 - Introduced patch fuzz workaround, will fix. * Fri Nov 9 2007 Jon Ciesla 0.7.2-1 - Update to 0.7.2. * Thu Nov 8 2007 Jon Ciesla 0.7.1-1 - Update to 0.7.1. - Updated test_archivemail.patch for new version. - Removed fpname and imap patches, fixed by upstream. * Thu Aug 16 2007 Jon Ciesla 0.7.0-7 - License tag correction. * Tue Jun 12 2007 Jon Ciesla 0.7.0-6 - Patch to fix imap handling, BZ 243846. * Thu May 24 2007 Jon Ciesla 0.7.0-5 - Applied upstream patch to fix issues with python 2.5. * Thu May 24 2007 Jon Ciesla 0.7.0-4 - Removed shebang from test, main scripts. * Wed May 23 2007 Jon Ciesla 0.7.0-3 - Added Readme about test script. * Wed May 23 2007 Francois Aucamp - 0.7.0-1.1 - Example spec file using distributed file paths for unit tests and the archivemail python module - Added sed scripts to %%prep - Moved chmod entries from %%build to %%prep, and cleaned them up - Removed unnecessary %%doc entries - Removed unnecessary versioned dependencies * Tue May 22 2007 Jon Ciesla 0.7.0-1 - Initial packaging.