[python-sievelib] Initial import (#1169895).

Juan Orti jorti at fedoraproject.org
Thu Dec 4 15:42:14 UTC 2014


commit eb2dbdc745549b01e267c3416fe675c676b48669
Author: Juan Orti Alcaine <juan.orti at miceliux.com>
Date:   Thu Dec 4 16:42:13 2014 +0100

    Initial import (#1169895).

 .gitignore           |    1 +
 python-sievelib.spec |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 59 insertions(+), 0 deletions(-)
---
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 at 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 <jorti at fedoraproject.org> - 0.8-2
+- Remove python shebang from libraries
+- Change URL to GitHub
+- Include license file
+
+* Tue Dec 02 2014 Juan Orti <jorti at fedoraproject.org> - 0.8-1
+- Spec file cleanup
+
+* Sat May 24 2014 Didier Fabert <didier.fabert at gmail.com> 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


More information about the scm-commits mailing list