Blame python-wxnatpy.spec

0a010e1
# Enabled by default
0a010e1
# If the package needs to download data for the test which cannot be done in
0a010e1
# koji, these can be disabled in koji by using `bcond_with` instead, but the
0a010e1
# tests must be validated in mock with network enabled like so:
0a010e1
# mock -r fedora-rawhide-x86_64 rebuild <srpm> --enable-network --rpmbuild-opts="--with tests"
0a010e1
%bcond_with tests
0a010e1
0a010e1
%global desc %{expand: \
0a010e1
wxnatpy is a wxPython widget which allows users to browse the contents of a XNAT repository.
0a010e1
It is built on top of wxPython and xnatpy.}
0a010e1
0a010e1
%global pypi_name wxnatpy
0a010e1
0a010e1
Name:           python-%{pypi_name}
6f7a262
Version:        0.3.2
ef02539
Release:        4%{?dist}
0a010e1
Summary:        wxnatpy is a wxPython widget which allows users to browse the contents of a XNAT repository.
0a010e1
License:        ASL 2.0
0a010e1
URL:            https://github.com/pauldmccarthy/wxnatpy
0a010e1
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
0a010e1
BuildArch:      noarch
0a010e1
0a010e1
%description
0a010e1
%{desc}
0a010e1
0a010e1
%package -n python3-%{pypi_name}
0a010e1
Summary:        %{summary}
0a010e1
0a010e1
BuildRequires:  python3-devel
0a010e1
BuildRequires:  python3-setuptools
0a010e1
BuildRequires:  python3-wxpython4
78a8999
BuildRequires:  python3-xnat
0a010e1
BuildRequires:  python3-fsleyes-widgets
0a010e1
0a010e1
%{?python_provide:%python_provide python3-%{pypi_name}}
0a010e1
0a010e1
%description -n python3-%{pypi_name}
0a010e1
%{desc}
0a010e1
0a010e1
%prep
0a010e1
%autosetup -n %{pypi_name}-%{version}
0a010e1
rm -rf %{pypi_name}.egg-info
0a010e1
0a010e1
find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
0a010e1
0a010e1
%build
0a010e1
%py3_build
0a010e1
0a010e1
%install
0a010e1
%py3_install
0a010e1
0a010e1
#%check
0a010e1
#%{__python3} setup.py test
0a010e1
 
0a010e1
%files -n python3-%{pypi_name}
0a010e1
%license LICENSE
0a010e1
%doc README.md
0a010e1
%{python3_sitelib}/wxnat/
9c523db
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
0a010e1
0a010e1
%changelog
ef02539
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-4
ef02539
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ef02539
7cf55bc
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-3
7cf55bc
- Rebuilt for Python 3.9
7cf55bc
311514f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-2
311514f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
311514f
6f7a262
* Mon Sep 23 2019 Luis Bazan <lbazan@fedoraproject.org> - 0.3.2-1
6f7a262
- New upstream version
6f7a262
58a545f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-5
58a545f
- Rebuilt for Python 3.8
58a545f
102213c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-4
102213c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
102213c
56c0cdf
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-3
56c0cdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
56c0cdf
252719b
* Wed Dec 19 2018 Luis Bazan <lbazan@fedoraproject.org> - 0.3.11-2
252719b
- enable xnat
252719b
0a010e1
* Mon Nov 19 2018 Luis Bazan <lbazan@fedoraproject.org> - 0.3.11-1
0a010e1
- New upstream