Blob Blame History Raw
%global srcname bids-validator

%global desc %{expand: \
Validator for the Brain Imaging Data Structure}

Name:           python-%{srcname}
Version:        1.2.2
Release:        8%{?dist}
Summary:        Validator for the Brain Imaging Data Structure

License:        MIT
URL:            https://pypi.org/project/bids-validator/
Source0:        %pypi_source
Source1:        https://raw.githubusercontent.com/bids-standard/bids-validator/master/LICENSE

# https://github.com/bids-standard/bids-validator/issues/757: not included in pypi for some reason
Source2:        https://raw.githubusercontent.com/bids-standard/bids-validator/master/bids-validator/versioneer.py

BuildArch:      noarch

%{?python_enable_dependency_generator}

%description
%{desc}

%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  %{py3_dist setuptools}
%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-%{srcname}
%{desc}


%prep
%autosetup -n %{srcname}-%{version}
rm -rf %{srcname}.egg-info

cp %{SOURCE1} .
cp %{SOURCE2} .

%build
%py3_build

%install
%py3_install

# No tests

%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/bids_validator-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/bids_validator

%changelog
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-6
- Rebuilt for Python 3.9

* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-4
- Rebuilt for Python 3.8.0rc1 (#1748018)

* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-3
- Rebuilt for Python 3.8

* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Mon Apr 08 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.2.2-1
- Initial package