summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2019-09-20 21:15:10 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2019-09-20 21:15:11 +0000
commit7aab8ca29dfac4610c4db86af9397f3dca26936c (patch)
tree128581c03b5089345d4d6a547c7350fa2905939c
parente6a6fe62bedacaabd6375d87d7389384a90b0e56 (diff)
Initial packagingHEADmaster
Change-Id: If8c8094012d88dc8ea09442a2147a2856f70b94f
-rw-r--r--python-warlock.spec47
1 files changed, 47 insertions, 0 deletions
diff --git a/python-warlock.spec b/python-warlock.spec
new file mode 100644
index 0000000..753cb23
--- /dev/null
+++ b/python-warlock.spec
@@ -0,0 +1,47 @@
+%global srcname warlock
+
+Name: python3-warlock
+Version: 1.2.0
+Release: 1%{?dist}
+Summary: Python object model built on JSON schema and JSON patch.
+
+License: UNKNOWN
+URL: http://github.com/bcwaldon/warlock
+Source0: https://pypi.io/packages/source/%(c=%{srcname}; echo ${c:0:1})/%{srcname}/%{srcname}-%{version}.tar.gz
+
+BuildArch: noarch
+
+Requires: python3-jsonschema
+Requires: python3-jsonpatch
+Requires: python3-six
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-jsonschema
+BuildRequires: python3-jsonpatch
+BuildRequires: python3-six
+
+
+%description
+Python object model built on JSON schema and JSON patch.
+
+%prep
+%autosetup -n warlock-%{version} -p1
+
+%build
+rm -Rf 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 warlock"
+
+%files
+%defattr(644,root,root,755)
+%{python3_sitelib}/*
+
+%changelog
+* Fri Aug 25 2017 Tristan Cacqueray <tdecacqu@redhat.com> - 1.2.0-1
+- Initial packaging