From e85785fa8c674a94f2c301d11586555272989fcb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Jul 14 2019 11:43:10 +0000 Subject: * Thu Jun 20 2019 Fabian Affolter - 0.4-1 - Initial package for Fedora --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..03b7ed8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nudepy-0.4.tar.gz diff --git a/python-nudepy.spec b/python-nudepy.spec new file mode 100644 index 0000000..5a00808 --- /dev/null +++ b/python-nudepy.spec @@ -0,0 +1,61 @@ +%global pypi_name nudepy + +Name: python-%{pypi_name} +Version: 0.4 +Release: 1%{?dist} +Summary: A Python module for nudity detection + +License: MIT +URL: https://github.com/hhatto/nude.py +Source0: https://github.com/hhatto/nude.py/archive/ver%{version}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: gcc + +%description +Nudity detection in images with Python. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-Cython +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Nudity detection in images with Python. + +%package -n %{pypi_name} +Summary: %{summary} +Requires: python3-%{pypi_name} + +%description -n %{pypi_name} +Command line tools for nudity detection in images. + +%prep +%autosetup -n nude.py-ver%{version} +sed -i -e '/^#!\//, 1d' nude.py + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%doc README.rst +# https://github.com/hhatto/nude.py/pull/22 +#%license LICENSE +%{python3_sitearch}/nude.py +%{python3_sitearch}/__pycache__/* +%{python3_sitearch}/skin_classifier* +%{python3_sitearch}/%{pypi_name}*.egg-info + +%files -n %{pypi_name} +%doc README.rst +#%license LICENSE +%{_bindir}/%{pypi_name} + +%changelog +* Thu Jun 20 2019 Fabian Affolter - 0.4-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..8f9e2b1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nudepy-0.4.tar.gz) = a065e26f5733990f8bd03828ba78a0d5ff0fda35b41311d0aebe5134e9f310517a860695b057a3f0552f0d9f5af87352dd8421a81a491f43c29b1bbc69c4dc79