ce7038
%global pkgname m2r
e11fe9
%global desc M2R converts a markdown file including reST markups to a valid reST format.
e11fe9
ce7038
Name:           python-%{pkgname}
ddb7cd
Version:        0.2.0
0fa027
Release:        2%{?dist}
e11fe9
Summary:        Markdown to reStructuredText converter
e11fe9
e11fe9
License:        MIT
ce7038
URL:            https://github.com/miyakogi/%{pkgname}
1bc8a3
Source0:        https://github.com/miyakogi/%{pkgname}/archive/v%{version}/%{pkgname}-%{version}.tar.gz
e11fe9
e11fe9
BuildArch:      noarch
e11fe9
e11fe9
e11fe9
%description
e11fe9
%{desc}
e11fe9
e11fe9
ce7038
%package -n python2-%{pkgname}
e11fe9
BuildRequires:  python2-devel
1bc8a3
BuildRequires:  python2-docutils
1bc8a3
BuildRequires:  python2-mistune
1bc8a3
BuildRequires:  python2-pygments
e11fe9
BuildRequires:  python2-mock
1bc8a3
Requires:       python2-docutils
1bc8a3
Requires:       python2-mistune
e11fe9
Summary:        %{summary}
ce7038
%{?python_provide:%python_provide python2-%{pkgname}}
e11fe9
e11fe9
ce7038
%description -n python2-%{pkgname}
e11fe9
%{desc}
e11fe9
e11fe9
ce7038
%package -n python3-%{pkgname}
e11fe9
BuildRequires:  python3-devel
e11fe9
BuildRequires:  python3-docutils
e11fe9
BuildRequires:  python3-mistune
e11fe9
BuildRequires:  python3-pygments
e11fe9
BuildRequires:  python3-mock
e11fe9
Requires:       python3-docutils
e11fe9
Requires:       python3-mistune
e11fe9
Summary:        %{summary}
ce7038
%{?python_provide:%python_provide python3-%{pkgname}}
e11fe9
e11fe9
ce7038
%description -n python3-%{pkgname}
e11fe9
%{desc}
e11fe9
e11fe9
e11fe9
%prep
ce7038
%setup -qn %{pkgname}-%{version}
e11fe9
e11fe9
# Remove upstream's egg-info
ce7038
rm -rf %{pkgname}.egg-info
e11fe9
e11fe9
# Remove shebang
e11fe9
sed -i '1{\@^#!/usr/bin/env python@d}' m2r.py
e11fe9
e11fe9
e11fe9
%build
e11fe9
%py2_build
e11fe9
%py3_build
e11fe9
e11fe9
e11fe9
%install
e11fe9
%py2_install
e11fe9
%py3_install
e11fe9
e11fe9
e11fe9
%check
e11fe9
PYTHONPATH=$(pwd) %{__python2} setup.py test -s tests
e11fe9
PYTHONPATH=$(pwd) %{__python3} setup.py test -s tests
e11fe9
e11fe9
ce7038
%files -n python2-%{pkgname}
e11fe9
%license LICENSE
e11fe9
%doc README.md
ce7038
%{python2_sitelib}/%{pkgname}.py{,c,o}
ce7038
%{python2_sitelib}/%{pkgname}-%{version}*-py%{python2_version}.egg-info
e11fe9
%exclude %{python2_sitelib}/tests
e11fe9
e11fe9
ce7038
%files -n python3-%{pkgname}
e11fe9
%license LICENSE
e11fe9
%doc README.md
e11fe9
%{_bindir}/m2r
e11fe9
%{python3_sitelib}/__pycache__/*
ce7038
%{python3_sitelib}/%{pkgname}.py
ce7038
%{python3_sitelib}/%{pkgname}-%{version}*-py%{python3_version}.egg-info
e11fe9
%exclude %{python3_sitelib}/tests
e11fe9
e11fe9
e11fe9
%changelog
0fa027
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
0fa027
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0fa027
ddb7cd
* Wed Aug 15 2018 Nikola Forró <nforro@redhat.com> - 0.2.0-1
ddb7cd
- Update to 0.2.0
ddb7cd
  resolves: #1615361
ddb7cd
0240b3
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.15-2
0240b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0240b3
d793c3
* Wed Jul 04 2018 Nikola Forró <nforro@redhat.com> - 0.1.15-1
d793c3
- Update to 0.1.15
d793c3
  resolves: #1597056
d793c3
878dac
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1.14-2
878dac
- Rebuilt for Python 3.7
878dac
b4712a
* Thu Mar 22 2018 Nikola Forró <nforro@redhat.com> - 0.1.14-1
b4712a
- Update to 0.1.14
b4712a
  resolves: #1559372
b4712a
262c63
* Wed Feb 14 2018 Nikola Forró <nforro@redhat.com> - 0.1.13-1
262c63
- Update to 0.1.13
262c63
  resolves: #1545220
262c63
d2e67f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.12-3
d2e67f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d2e67f
1bc8a3
* Wed Dec 06 2017 Nikola Forró <nforro@redhat.com> - 0.1.12-2
1bc8a3
- Use more descriptive source tarball name
1bc8a3
- Fix python2 dependency names
1bc8a3
ca18c8
* Wed Sep 13 2017 Nikola Forró <nforro@redhat.com> - 0.1.12-1
ca18c8
- Update to 0.1.12
ca18c8
  resolves: #1490365
ca18c8
eacab9
* Wed Aug 30 2017 Nikola Forró <nforro@redhat.com> - 0.1.11-1
eacab9
- Update to 0.1.11
eacab9
  resolves: #1486504
eacab9
8e44de
* Fri Aug 25 2017 Nikola Forró <nforro@redhat.com> - 0.1.10-2
8e44de
- Add missing dist tag
8e44de
ce7038
* Tue Aug 15 2017 Nikola Forró <nforro@redhat.com> - 0.1.10-1
ce7038
- Update to 0.1.10
ce7038
- Switch to release versioning
ce7038
  resolves: #1480575
ce7038
dfb615
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-2.git8e4ce37
dfb615
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dfb615
b5e445
* Thu Jul 20 2017 Nikola Forró <nforro@redhat.com> - 0.1.7-1.git8e4ce37
b5e445
- Update to 0.1.7
b5e445
  resolves: #1473289
b5e445
65ff8c
* Wed May 31 2017 Nikola Forró <nforro@redhat.com> - 0.1.6-1.git871d579
65ff8c
- Update to 0.1.6
65ff8c
  resolves: #1457165
65ff8c
e11fe9
* Wed May 17 2017 Nikola Forró <nforro@redhat.com> - 0.1.5-2.git539a079
e11fe9
- Make image_link regex non-greedy
e11fe9
e11fe9
* Tue May 16 2017 Nikola Forró <nforro@redhat.com> - 0.1.5-1.git539a079
e11fe9
- Initial package