summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2019-09-20 20:04:16 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2019-09-20 20:04:17 +0000
commitc9ccb10b12323b7fbe911777e09e9d61e4662a13 (patch)
tree029cfce6d5fd02a96bbaf071e2a8965c1e8d0802
parent88bf189b3d287b904179c516c3133b85b059a815 (diff)
Initial packagingHEADmaster
Change-Id: I9c0ff67a18432d225c16f63e43489eb29ae992a1
-rw-r--r--python-flask-script.spec43
1 files changed, 43 insertions, 0 deletions
diff --git a/python-flask-script.spec b/python-flask-script.spec
new file mode 100644
index 0000000..e49efca
--- /dev/null
+++ b/python-flask-script.spec
@@ -0,0 +1,43 @@
+%global srcname Flask-Script
+
+Name: python3-flask-script
+Version: 2.0.5
+Release: 1%{?dist}
+Summary: Scripting support for Flask
+
+License: BSD
+URL: http://github.com/smurfix/flask-script
+Source0: https://pypi.io/packages/source/%(c=%{srcname}; echo ${c:0:1})/%{srcname}/%{srcname}-%{version}.tar.gz
+
+BuildArch: noarch
+
+Requires: python3-flask
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-flask
+
+
+%description
+Scripting support for Flask
+
+%prep
+%autosetup -n Flask-Script-%{version} -p1
+
+%build
+rm -Rf requirements.txt test-requirements.txt *.egg-info
+PBR_VERSION=%{version} %{__python3} setup.py build
+
+%install
+PBR_VERSION=%{version} %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+
+%check
+%{__python3} -c "import flask_script"
+
+%files
+%defattr(644,root,root,755)
+%{python3_sitelib}/*
+
+%changelog
+* Mon Aug 28 2017 Tristan Cacqueray <tdecacqu@redhat.com> - 2.0.5-1
+- Initial packaging