From eb2dbdc745549b01e267c3416fe675c676b48669 Mon Sep 17 00:00:00 2001 From: Juan Orti Alcaine Date: Dec 04 2014 15:42:13 +0000 Subject: Initial import (#1169895). --- diff --git a/.gitignore b/.gitignore index e69de29..29d8819 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/sievelib-0.8.tar.gz diff --git a/python-sievelib.spec b/python-sievelib.spec new file mode 100644 index 0000000..5e85927 --- /dev/null +++ b/python-sievelib.spec @@ -0,0 +1,57 @@ +%global pkgname sievelib + +Name: python-%{pkgname} +Version: 0.8 +Release: 2%{?dist} +Summary: Client-side SIEVE library + +Group: Development/Languages +License: MIT +URL: https://github.com/tonioo/sievelib +Source: https://pypi.python.org/packages/source/s/%{pkgname}/%{pkgname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python-setuptools + +%description +Client-side Sieve and Managesieve library written in Python. +* Sieve : An Email Filtering Language (RFC 5228) +* ManageSieve : A Protocol for Remotely Managing Sieve Scripts (RFC 5804) + + +%prep +%setup -qn %{pkgname}-%{version} +# remove bundled egg-info +rm -rf %{pkgname}.egg-info + + +%build +%{__python2} setup.py build + +%install +%{__python2} setup.py install --skip-build --root %{buildroot} +# Remove shebang from libraries +for lib in %{buildroot}%{python2_sitelib}/%{pkgname}/*.py; do + sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && + touch -r $lib $lib.new && + mv $lib.new $lib +done + + +%files +%doc COPYING README.rst PKG-INFO +%{python2_sitelib}/%{pkgname} +%{python2_sitelib}/%{pkgname}-%{version}-py*.egg-info + +%changelog +* Wed Dec 03 2014 Juan Orti - 0.8-2 +- Remove python shebang from libraries +- Change URL to GitHub +- Include license file + +* Tue Dec 02 2014 Juan Orti - 0.8-1 +- Spec file cleanup + +* Sat May 24 2014 Didier Fabert 0.0.4-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..e071880 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0bcf3cf7b166944c609b71f0ac69ca0a sievelib-0.8.tar.gz