[python-yapsy] First upload of sources and addition of SPEC
Pete Travis
immanetize at fedoraproject.org
Sun Sep 8 04:06:22 UTC 2013
commit 8e31b083a4618d2c0daedb8a99682645f45b8e03
Author: Pete Travis <immanetize at fedoraproject.org>
Date: Sat Sep 7 22:06:05 2013 -0600
First upload of sources and addition of SPEC
.gitignore | 1 +
python-yapsy.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5c5c679 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Yapsy-1.10.2-pythons2n3.tar.gz
diff --git a/python-yapsy.spec b/python-yapsy.spec
new file mode 100644
index 0000000..0eac214
--- /dev/null
+++ b/python-yapsy.spec
@@ -0,0 +1,84 @@
+%global projectname Yapsy
+%global productname yapsy
+Name: python-yapsy
+Version: 1.10.2
+Release: 2%{?dist}
+Summary: A simple plugin system for Python applications
+
+Group: Development/Libraries
+License: BSD and CC-BY-SA
+URL: http://yapsy.sourceforge.net
+Source0: http://downloads.sourceforge.net/project/%{productname}/%{projectname}-%{version}/%{projectname}-%{version}-pythons2n3.tar.gz
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+BuildRequires: python-sphinx
+Requires: python
+
+Patch0: do-python2-magic.patch
+Patch1: do-python3-magic.patch
+
+%if 0%{?with_python3}
+%global srcdir src3
+%else
+%global srcdir src2
+%endif
+
+#Patch setup.py to avoid python version checking logic and allow proper subpackaging?
+%description
+Yapsy’s main purpose is to offer a way to easily design a plugin system in
+Python. Yapsy only depends on Python’s standard library.
+
+%package -n python-yapsy-doc
+Summary: Documentation for python-yapsy, a plugin system for Python applications
+Group: Development/Libraries
+BuildArch: noarch
+%description -n python-yapsy-doc
+Documentation for yapsy, a simple plugin system for Python applications.
+
+%if 0%{?with_python3}
+%package -n python3-yapsy
+Summary: A simple plugin system for Python3 applications.
+Group: Development/Libraries
+%description -n python3-yapsy
+Yapsy’s main purpose is to offer a way to easily design a plugin system in Python3, and motivated by the fact that many other Python plugin system are either too complicated for a basic use or depend on a lot of libraries. Yapsy only depends on Python’s standard library.
+
+%package -n python3-yapsy-doc
+Summary: Documentation for python2-yapsy, a plugin system for Python3 applications.
+Group: Development/Libraries
+BuildArch: noarch
+%description -n python3-yapsy-doc
+Documentation for yapsy, a simple plugin system for python3 applications.
+%endif
+
+%prep
+%if 0%{?with_python2}
+%patch0 -p1
+%endif
+
+%if 0%{?with_python3}
+%patch1 -p1
+%endif
+
+%setup -qn %{projectname}-%{version}-pythons2n3
+
+%build
+%{__python2} setup.py build
+%{__python2} setup.py build_sphinx -s %{srcdir}/package/doc/
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+
+%files
+%{python_sitelib}/%{projectname}-%{version}_pythons2n3-py2.7.egg-info
+%{python_sitelib}/%{productname}
+
+%files -n python-yapsy-doc
+%doc %{srcdir}/package/{README.txt,LICENSE.txt,CHANGELOG.txt} build/sphinx/html/*.html build/sphinx/html/{_sources,_static}
+
+%changelog
+* Tue Aug 20 2013 Pete Travis <immanetize at fedoraproject.org> 1.10.2-2
+- Updating spec file; cleaned up files section and BuildRequires,add noarch -doc subpackage
+
+* Mon Aug 19 2013 Pete Travis <immanetize at fedoraproject.org> 1.10.2-1
+- Initial revision
diff --git a/sources b/sources
index e69de29..77da6f6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d905b574d4f55ff62e02603ec3dc89b3 Yapsy-1.10.2-pythons2n3.tar.gz
More information about the scm-commits
mailing list