Blame SPECS/python-m2r.spec

4a8019
%global pkgname m2r
4a8019
%global desc M2R converts a markdown file including reST markups to a valid reST format.
4a8019
4a8019
%global commit 66f4a5a500cdd9fc59085106bff082c9cadafaf3
4a8019
%global shortcommit %(c=%{commit}; echo ${c:0:7})
4a8019
%global date 20190604
4a8019
4a8019
Name:           python-%{pkgname}
4a8019
Version:        0.2.1
4a8019
Release:        3.%{date}git%{shortcommit}%{?dist}
4a8019
Summary:        Markdown to reStructuredText converter
4a8019
4a8019
License:        MIT
4a8019
URL:            https://github.com/miyakogi/%{pkgname}
4a8019
Source0:        https://github.com/miyakogi/%{pkgname}/archive/%{commit}/%{pkgname}-%{shortcommit}.tar.gz
4a8019
4a8019
# https://github.com/miyakogi/m2r/pull/62
4a8019
Patch0:         test_no_file.patch
4a8019
4a8019
BuildArch:      noarch
4a8019
4a8019
4a8019
%description
4a8019
%{desc}
4a8019
4a8019
4a8019
%package -n python3-%{pkgname}
4a8019
BuildRequires:  python3-devel
4a8019
BuildRequires:  python3-setuptools
4a8019
BuildRequires:  python3-docutils
4a8019
BuildRequires:  python3-mistune
4a8019
BuildRequires:  python3-pygments
4a8019
BuildRequires:  python3-mock
4a8019
Requires:       python3-docutils
4a8019
Requires:       python3-mistune
4a8019
Summary:        %{summary}
4a8019
%{?python_provide:%python_provide python3-%{pkgname}}
4a8019
4a8019
4a8019
%description -n python3-%{pkgname}
4a8019
%{desc}
4a8019
4a8019
4a8019
%prep
4a8019
%autosetup -p1 -n %{pkgname}-%{commit}
4a8019
4a8019
# Remove upstream's egg-info
4a8019
rm -rf %{pkgname}.egg-info
4a8019
4a8019
# Remove shebang
4a8019
sed -i '1{\@^#!/usr/bin/env python@d}' m2r.py
4a8019
4a8019
4a8019
%build
4a8019
%py3_build
4a8019
4a8019
4a8019
%install
4a8019
%py3_install
4a8019
4a8019
4a8019
%check
4a8019
PYTHONPATH=$(pwd) %{__python3} setup.py test -s tests
4a8019
4a8019
4a8019
%files -n python3-%{pkgname}
4a8019
%license LICENSE
4a8019
%doc README.md
4a8019
%{_bindir}/m2r
4a8019
%{python3_sitelib}/__pycache__/*
4a8019
%{python3_sitelib}/%{pkgname}.py
4a8019
%{python3_sitelib}/%{pkgname}-%{version}*-py%{python3_version}.egg-info
4a8019
%exclude %{python3_sitelib}/tests
4a8019
4a8019
4a8019
%changelog
4a8019
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3.20190604git66f4a5a
4a8019
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4a8019
4a8019
* Fri Jan 08 2021 Nikola Forró <nforro@redhat.com> - 0.2.1-2.20190604git66f4a5a
4a8019
- Fix test_no_file
4a8019
  resolves: #1914270
4a8019
4a8019
* Wed Nov 25 2020 Nikola Forró <nforro@redhat.com> - 0.2.1-1.20190604git66f4a5a
4a8019
- Update to the latest upstream commit
4a8019
4a8019
* Fri Aug 21 2020 Nikola Forró <nforro@redhat.com> - 0.2.0-12
4a8019
- Explicitly build-require setuptools
4a8019
4a8019
* Thu Aug 20 2020 Nikola Forró <nforro@redhat.com> - 0.2.0-11
4a8019
- Use reST literal block for Sphinx code block
4a8019
  resolves: #1870105
4a8019
4a8019
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-10
4a8019
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4a8019
4a8019
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-9
4a8019
- Rebuilt for Python 3.9
4a8019
4a8019
* Tue Apr 14 2020 Nikola Forró <nforro@redhat.com> - 0.2.0-8
4a8019
- Fix Sphinx 3 compatibility
4a8019
  resolves: #1823514
4a8019
4a8019
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-7
4a8019
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4a8019
4a8019
* Thu Nov 07 2019 Nikola Forró <nforro@redhat.com> - 0.2.0-6
4a8019
- Remove Python 2 subpackage
4a8019
  resolves: #1769838
4a8019
4a8019
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-5
4a8019
- Rebuilt for Python 3.8.0rc1 (#1748018)
4a8019
4a8019
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-4
4a8019
- Rebuilt for Python 3.8
4a8019
4a8019
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-3
4a8019
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4a8019
4a8019
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
4a8019
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4a8019
4a8019
* Wed Aug 15 2018 Nikola Forró <nforro@redhat.com> - 0.2.0-1
4a8019
- Update to 0.2.0
4a8019
  resolves: #1615361
4a8019
4a8019
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.15-2
4a8019
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4a8019
4a8019
* Wed Jul 04 2018 Nikola Forró <nforro@redhat.com> - 0.1.15-1
4a8019
- Update to 0.1.15
4a8019
  resolves: #1597056
4a8019
4a8019
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1.14-2
4a8019
- Rebuilt for Python 3.7
4a8019
4a8019
* Thu Mar 22 2018 Nikola Forró <nforro@redhat.com> - 0.1.14-1
4a8019
- Update to 0.1.14
4a8019
  resolves: #1559372
4a8019
4a8019
* Wed Feb 14 2018 Nikola Forró <nforro@redhat.com> - 0.1.13-1
4a8019
- Update to 0.1.13
4a8019
  resolves: #1545220
4a8019
4a8019
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.12-3
4a8019
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4a8019
4a8019
* Wed Dec 06 2017 Nikola Forró <nforro@redhat.com> - 0.1.12-2
4a8019
- Use more descriptive source tarball name
4a8019
- Fix python2 dependency names
4a8019
4a8019
* Wed Sep 13 2017 Nikola Forró <nforro@redhat.com> - 0.1.12-1
4a8019
- Update to 0.1.12
4a8019
  resolves: #1490365
4a8019
4a8019
* Wed Aug 30 2017 Nikola Forró <nforro@redhat.com> - 0.1.11-1
4a8019
- Update to 0.1.11
4a8019
  resolves: #1486504
4a8019
4a8019
* Fri Aug 25 2017 Nikola Forró <nforro@redhat.com> - 0.1.10-2
4a8019
- Add missing dist tag
4a8019
4a8019
* Tue Aug 15 2017 Nikola Forró <nforro@redhat.com> - 0.1.10-1
4a8019
- Update to 0.1.10
4a8019
- Switch to release versioning
4a8019
  resolves: #1480575
4a8019
4a8019
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-2.git8e4ce37
4a8019
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4a8019
4a8019
* Thu Jul 20 2017 Nikola Forró <nforro@redhat.com> - 0.1.7-1.git8e4ce37
4a8019
- Update to 0.1.7
4a8019
  resolves: #1473289
4a8019
4a8019
* Wed May 31 2017 Nikola Forró <nforro@redhat.com> - 0.1.6-1.git871d579
4a8019
- Update to 0.1.6
4a8019
  resolves: #1457165
4a8019
4a8019
* Wed May 17 2017 Nikola Forró <nforro@redhat.com> - 0.1.5-2.git539a079
4a8019
- Make image_link regex non-greedy
4a8019
4a8019
* Tue May 16 2017 Nikola Forró <nforro@redhat.com> - 0.1.5-1.git539a079
4a8019
- Initial package