From 4332ad5396577948ef27f79e6c56f58979006be8 Mon Sep 17 00:00:00 2001 From: Jon Ciesla Date: Fri, 28 Oct 2016 13:42:46 -0500 Subject: [PATCH] Initial import. --- .gitignore | 1 + python-scour.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 86 insertions(+) create mode 100644 python-scour.spec diff --git a/.gitignore b/.gitignore index e69de29..a35e0f0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/scour-0.35.tar.gz diff --git a/python-scour.spec b/python-scour.spec new file mode 100644 index 0000000..879be24 --- /dev/null +++ b/python-scour.spec @@ -0,0 +1,84 @@ +%global modname scour +%global sum An SVG scrubber + +Name: python-scour +Version: 0.35 +Release: 2%{?dist} +Summary: %{sum} + +License: ASL 2.0 +URL: https://github.com/scour-project/scour +Source0: %{url}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz + +BuildRequires: python2-devel +BuildRequires: python-setuptools + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +BuildArch: noarch + +%description +%{sum}. + + +%package -n python2-%{modname} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{modname}} + + +%description -n python2-%{modname} +%{sum}. + + +%package -n python3-%{modname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{modname}} + + +%description -n python3-%{modname} +%{sum}. + + +%prep +%autosetup -n %{modname}-%{version} + +# Better safe than sorry +find . -type f -name '*.py' -exec sed -i /env\ python/d {} ';' +find . -type f -name '*.py' -exec sed -i /env\ python/d {} ';' + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + + +#%%check +#%%{__python2} setup.py test +#%%{__python3} setup.py test + +%{!?_licensedir: %global license %doc} + +%files -n python2-%{modname} +%doc README.md +%license LICENSE +%{python2_sitelib}/%{modname}/ +%{python2_sitelib}/%{modname}-%{version}* + +%files -n python3-%{modname} +%doc README.md +%license LICENSE +%{_bindir}/%{modname} +%{python3_sitelib}/%{modname}/ +%{python3_sitelib}/%{modname}-%{version}* + + +%changelog +* Fri Oct 28 2016 Jon Ciesla - 0.35-2 +- Fix Source0. + +* Fri Oct 28 2016 Jon Ciesla - 0.35-1 +- Initial package. diff --git a/sources b/sources index e69de29..a9f90c7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +811edeb8ec0991e491be38fbba13b76d scour-0.35.tar.gz