[python-scss] Import

Patrick Uiterwijk puiterwijk at fedoraproject.org
Wed Dec 4 22:23:31 UTC 2013


commit ad5e0d3f3265df402a8effff3d915c7baf1d8d5e
Author: Patrick Uiterwijk <puiterwijk at redhat.com>
Date:   Wed Dec 4 23:23:22 2013 +0100

    Import

 .gitignore                        |    1 +
 python-scss-remove-shebangs.patch |   16 +++++++++
 python-scss.spec                  |   68 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 4 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0e7c7b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-scss-1.2.0-2c10593.tar.gz
diff --git a/python-scss-remove-shebangs.patch b/python-scss-remove-shebangs.patch
new file mode 100644
index 0000000..0df1497
--- /dev/null
+++ b/python-scss-remove-shebangs.patch
@@ -0,0 +1,16 @@
+diff -rupN pyScss-1.2.0.orig/scss/__init__.py pyScss-1.2.0/scss/__init__.py
+--- scss/__init__.py	2013-10-17 19:05:22.318303399 +0200
++++ scss/__init__.py	2013-10-17 19:05:29.738291962 +0200
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ #-*- coding: utf-8 -*-
+ """
+ pyScss, a Scss compiler for Python
+diff -rupN pyScss-1.2.0.orig/scss/scss_meta.py pyScss-1.2.0/scss/scss_meta.py
+--- scss/scss_meta.py	2013-10-17 19:05:22.319303398 +0200
++++ scss/scss_meta.py	2013-10-17 19:05:34.056285301 +0200
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ #-*- coding: utf-8 -*-
+ """
+ pyScss, a Scss compiler for Python
diff --git a/python-scss.spec b/python-scss.spec
new file mode 100644
index 0000000..1de4f4c
--- /dev/null
+++ b/python-scss.spec
@@ -0,0 +1,68 @@
+# sitelib for noarch packages, sitearch for others (remove the unneeded one)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+
+# Filter the _speedups.so provides that otherwise comes into the provides
+%global __provides_exclude_from ^(%{python_sitearch}/.*\\.so)$
+
+# Github commit hash
+%global commit 2c10593a7bcec17b8d3dcca9ba40e24868f8ca5c
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+
+Name:           python-scss
+Version:        1.2.0
+Release:        2%{?dist}
+Summary:        A Scss compiler for Python
+
+License:        MIT
+URL:            https://github.com/Kronuz/pyScss
+Source0:        https://github.com/Kronuz/pyScss/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+# Review request for this is filed: https://github.com/Kronuz/pyScss/pull/241
+Patch0:         python-scss-remove-shebangs.patch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-six
+BuildRequires:  python-sphinx
+BuildRequires:  pcre-devel
+Requires:       python-six
+
+%description
+A Scss compiler for Python
+
+%prep
+%setup -q -n pyScss-%{commit}
+%patch0 -p0
+
+
+%build
+CFLAGS="%{optflags}" %{__python} setup.py build
+cd docs
+make SPHINXBUILD=sphinx-build man
+
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+chmod +x %{buildroot}%{python_sitearch}/scss/tool.py
+mkdir -p %{buildroot}%{_mandir}/man1/
+cp -ar docs/_build/man/pyscss.1 %{buildroot}%{_mandir}/man1/pyscss.1
+
+ 
+%files
+%doc DESCRIPTION LICENSE README.rst
+%{python_sitearch}/*
+%{_bindir}/pyscss
+%{_mandir}/man1/pyscss.1.gz
+
+
+
+%changelog
+* Wed Nov 06 2013 Patrick Uiterwijk <puiterwijk at gmail.com> - 1.2.0-2
+- Buildrequire set to python2-devel
+- Added buildrequire pcre-devel
+- Changed URL to Source
+- Added -a to cp to retain timestamp
+
+* Thu Oct 17 2013 Patrick Uiterwijk <puiterwijk at gmail.com> - 1.2.0-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..158e50b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+501f4f02426b27f38e789930ee40a9bb  python-scss-1.2.0-2c10593.tar.gz


More information about the scm-commits mailing list