diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..29aff60 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/wxnatpy-0.3.1.tar.gz diff --git a/python-wxnatpy.spec b/python-wxnatpy.spec new file mode 100644 index 0000000..b052188 --- /dev/null +++ b/python-wxnatpy.spec @@ -0,0 +1,63 @@ +# Enabled by default +# If the package needs to download data for the test which cannot be done in +# koji, these can be disabled in koji by using `bcond_with` instead, but the +# tests must be validated in mock with network enabled like so: +# mock -r fedora-rawhide-x86_64 rebuild --enable-network --rpmbuild-opts="--with tests" +%bcond_with tests + +%global desc %{expand: \ +wxnatpy is a wxPython widget which allows users to browse the contents of a XNAT repository. +It is built on top of wxPython and xnatpy.} + +%global pypi_name wxnatpy + +Name: python-%{pypi_name} +Version: 0.3.1 +Release: 1%{?dist} +Summary: wxnatpy is a wxPython widget which allows users to browse the contents of a XNAT repository. +License: ASL 2.0 +URL: https://github.com/pauldmccarthy/wxnatpy +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +%{desc} + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-wxpython4 +#BuildRequires: python3-xnat +BuildRequires: python3-fsleyes-widgets + +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%{desc} + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' + +%build +%py3_build + +%install +%py3_install + +#%check +#%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/wxnat/ +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%changelog +* Mon Nov 19 2018 Luis Bazan - 0.3.11-1 +- New upstream diff --git a/sources b/sources new file mode 100644 index 0000000..45f1868 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (wxnatpy-0.3.1.tar.gz) = 031e77962312d9600fc21cd86a6a6321bc9b1200527c057f173db5799956343332b3d2ed80ed7a204dfa407981aa3d30af38847d53f8f949c1ad1bcd0f4765ec