[python-XStatic] initial import, fixed source url, python2-devel

Matthias Runge mrunge at fedoraproject.org
Tue Jul 8 13:21:57 UTC 2014


commit 2318c09150b0b2e2619e84ca6df1d446065c300c
Author: Matthias Runge <mrunge at redhat.com>
Date:   Tue Jul 8 15:21:55 2014 +0200

    initial import, fixed source url, python2-devel

 .gitignore          |    1 +
 python-XStatic.spec |  102 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 104 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c85f330 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XStatic-1.0.1.tar.gz
diff --git a/python-XStatic.spec b/python-XStatic.spec
new file mode 100644
index 0000000..b23771e
--- /dev/null
+++ b/python-XStatic.spec
@@ -0,0 +1,102 @@
+%if 0%{?fedora} > 12 || 0%{?rhel} >= 8
+%global with_python3 1
+%endif
+
+%{!?__python2:%global __python2 %{__python}}
+%{!?python2_sitelib:   %global python2_sitelib         %{python_sitelib}}
+%{!?python2_sitearch:  %global python2_sitearch        %{python_sitearch}}
+%{!?python2_version:   %global python2_version         %{python_version}}
+
+
+%global pypi_name XStatic
+
+Name:           python-%{pypi_name}
+Version:        1.0.1
+Release:        1%{?dist}
+Summary:        XStatic base package with minimal support code
+
+License:        MIT
+URL:            http://bitbucket.org/thomaswaldmann/xstatic
+Source0:        https://pypi.python.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+ 
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+
+%description
+The goal of XStatic family of packages is to provide static
+file packages with minimal overhead - without selling you some 
+dependencies you don't want.
+
+XStatic has some minimal support code for working with the
+XStatic-* packages.
+
+%if 0%{?with_python3}
+%package -n python3-%{pypi_name}
+Summary:       XStatic base package with minimal support code
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%description -n python3-%{pypi_name}
+
+The goal of XStatic family of packages is to provide static
+file packages with minimal overhead - without selling you some 
+dependencies you don't want.
+
+XStatic has some minimal support code for working with the
+XStatic-* packages.
+
+
+%endif
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+
+%build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+
+%{__python2} setup.py build
+
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+
+%files
+%doc README.txt
+%{python2_sitelib}/xstatic
+%{python2_sitelib}/XStatic-%{version}-py%{python2_version}.egg-info
+%{python2_sitelib}/XStatic-%{version}-py%{python2_version}-nspkg.pth
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc README.txt
+%{python3_sitelib}/xstatic
+%{python3_sitelib}/XStatic-%{version}-py%{python3_version}.egg-info
+%{python3_sitelib}/XStatic-%{version}-py%{python3_version}-nspkg.pth
+
+%endif
+
+
+%changelog
+* Tue Jul 08 2014 Matthias Runge <mrunge at redhat.com> - 1.0.1-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..3d7e628 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7064b5ea7fd1ee990e0ae0538301d9bc  XStatic-1.0.1.tar.gz


More information about the scm-commits mailing list