[python-landslide] Initial import BZ #981971

Eduardo Javier Echeverria Alvarado echevemaster at fedoraproject.org
Mon Jul 8 18:07:42 UTC 2013


commit dc77a23f52f927750bff1d2a3ec53732fa28d83f
Author: Eduardo Echeverria <echevemaster at gmail.com>
Date:   Mon Jul 8 13:37:28 2013 -0430

    Initial import BZ #981971

 .gitignore            |    1 +
 python-landslide.spec |   58 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4239fa4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/landslide-1.1.1-a007840.tar.gz
diff --git a/python-landslide.spec b/python-landslide.spec
new file mode 100644
index 0000000..888052f
--- /dev/null
+++ b/python-landslide.spec
@@ -0,0 +1,58 @@
+%global pkgname landslide
+%global commit	a0078400c8e8f2fe19a754c0dbd55e7a3dbb796d
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+Name:		python-landslide
+Version:	1.1.1
+Release:	2%{?dist}
+Summary:	Lightweight markup language-based html5 slideshow generator
+Group:		Applications/Productivity
+License:	ASL 2.0
+URL:		https://pypi.python.org/pypi/landslide
+Source0:	https://github.com/adamzap/%{pkgname}/archive/%{commit}/%{pkgname}-%{version}-%{shortcommit}.tar.gz
+
+BuildArch:	noarch
+BuildRequires:	python2-devel
+BuildRequires:	python-sphinx
+Requires:	python-jinja2
+Requires:	python-markdown
+Requires:	python-pygments
+Requires:	python-docutils
+Requires:	python-textile
+
+%description
+Takes your Markdown, ReST, or Textile file(s) and generates 
+fancy HTML5 slideshows
+
+%prep
+%setup -qn %{pkgname}-%{commit}
+# Change shebang to recognized the default interpreter installed 
+# from system-wide
+sed -i 's|/usr/bin/env python|/usr/bin/python|g' src/landslide/main.py
+# Remove bundled egg-info
+rm -rf src/landslide.egg-info
+
+%build
+%{__python} setup.py build
+
+PYTHONPATH=$(pwd) make -C docs html
+rm -f docs/_build/html/.buildinfo
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+find %{buildroot} -name 'main.py' | xargs chmod 0755
+ 
+%files
+%doc LICENSE CHANGELOG.md README.md docs/_build/html
+%{_bindir}/landslide
+%{python_sitelib}/landslide
+%{python_sitelib}/landslide-*.egg-info
+
+
+%changelog
+* Sun Jul 07 2013 Eduardo Echeverria  <echevemaster at gmail.com> - 1.1.1-2
+- Change shebang to recognize the installed default interpreter.
+- Remove MANIFEST.in from documentation
+
+* Sun Jul 07 2013 Eduardo Echeverria  <echevemaster at gmail.com> - 1.1.1-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..3a351e9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2d8bdc23bd85377b7082b05a9bedb035  landslide-1.1.1-a007840.tar.gz


More information about the scm-commits mailing list