Lukas Bezdicka 1f32213
%global pypi_name python-editor
Lukas Bezdicka 1f32213
Lukas Bezdicka 1f32213
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
Lukas Bezdicka 1f32213
Lukas Bezdicka 1f32213
Name:           python-editor
4f40145
Version:        1.0.4
108e6a0
Release:        16%{?dist}
de98c8f
Summary:        Programmatically open an editor, capture the result
Lukas Bezdicka 1f32213
Lukas Bezdicka 1f32213
License:        ASL 2.0
Lukas Bezdicka 1f32213
URL:            https://github.com/fmoo/python-editor
03ac9bc
Source:         https://github.com/fmoo/python-editor/archive/%{version}.tar.gz
Lukas Bezdicka 1f32213
BuildArch:      noarch
Lukas Bezdicka 1f32213
Lukas Bezdicka f238c29
%description
Lukas Bezdicka f238c29
Programmatically open an editor, capture the result.
Lukas Bezdicka f238c29
Lukas Bezdicka 1f32213
%package -n python3-editor
Lukas Bezdicka 1f32213
Summary:        Programmatically open an editor, capture the result.
Lukas Bezdicka 1f32213
%{?python_provide:%python_provide python3-editor}
Lukas Bezdicka 1f32213
Lukas Bezdicka f238c29
BuildRequires:  python3-devel
Lukas Bezdicka f238c29
BuildRequires:  python3-setuptools
Lukas Bezdicka f238c29
Lukas Bezdicka 1f32213
%description -n python3-editor
Lukas Bezdicka f238c29
Programmatically open an editor, capture the result.
Lukas Bezdicka 1f32213
Lukas Bezdicka 1f32213
%prep
Lukas Bezdicka 1f32213
%setup -q -n %{pypi_name}-%{upstream_version}
Lukas Bezdicka 1f32213
rm -rf %{pypi_name}.egg-info
6861795
# Change shebang according to Python version
9641724
sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python3}=' editor.py
Lukas Bezdicka 1f32213
Lukas Bezdicka 1f32213
%build
9641724
%py3_build
Lukas Bezdicka 1f32213
Lukas Bezdicka 1f32213
%install
9641724
%py3_install
Lukas Bezdicka 1f32213
chmod a+x $RPM_BUILD_ROOT%{python3_sitelib}/editor.py
Lukas Bezdicka 1f32213
Lukas Bezdicka 1f32213
%files -n python3-editor
Lukas Bezdicka 1f32213
%doc README.md
Lukas Bezdicka 1f32213
%license LICENSE
9641724
%{python3_sitelib}/*.egg-info/
Lukas Bezdicka 1f32213
%{python3_sitelib}/editor.py*
Lukas Bezdicka 1f32213
%{python3_sitelib}/__pycache__/*
Lukas Bezdicka 1f32213
Lukas Bezdicka 1f32213
Lukas Bezdicka 1f32213
%changelog
108e6a0
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-16
108e6a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
108e6a0
1e8e771
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.0.4-15
1e8e771
- Rebuilt for Python 3.12
1e8e771
6f19b93
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-14
6f19b93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
6f19b93
999b048
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-13
999b048
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
999b048
fd84676
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.0.4-12
fd84676
- Rebuilt for Python 3.11
fd84676
5517e0b
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-11
5517e0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
5517e0b
f23e2c2
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-10
f23e2c2
- Second attempt - Rebuilt for
f23e2c2
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f23e2c2
587f7ba
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.0.4-9
587f7ba
- Rebuilt for Python 3.10
587f7ba
a986c37
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-8
a986c37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a986c37
8ec9cdf
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-7
8ec9cdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8ec9cdf
39112bb
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.4-6
39112bb
- Rebuilt for Python 3.9
39112bb
8f9bdb4
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-5
8f9bdb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8f9bdb4
9641724
* Wed Sep 25 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.4-4
9641724
- Subpackage python2-editor has been removed
9641724
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
9641724
967df8d
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.4-3
967df8d
- Rebuilt for Python 3.8
967df8d
fc81471
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
fc81471
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fc81471
4f40145
* Sat Jun 22 2019 Kevin Fenzi <kevin@scrye.com> - 1.0.4-1
4f40145
- Update to 1.0.4. Fixes bug #1671673
4f40145
e05eb3a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-10
e05eb3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e05eb3a
342f399
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-9
342f399
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
342f399
884f7a3
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-8
884f7a3
- Rebuilt for Python 3.7
884f7a3
6861795
* Thu Mar 22 2018 Jan Beran <jberan@redhat.com> - 1.0.3-7
6861795
- Fix of python3-editor requires both Python 2 and Python 3 (rhbz #1546794)
6861795
baca3b7
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.3-6
baca3b7
- Update Python 2 dependency declarations to new packaging standards
baca3b7
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
baca3b7
a008212
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
a008212
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a008212
de98c8f
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.3-4
de98c8f
- Fix creation of python2- subpackage
de98c8f
f1363fe
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
f1363fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f1363fe
c1045cc
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
c1045cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c1045cc
d15c3b2
* Tue Dec 27 2016 Kevin Fenzi <kevin@scrye.com> - 1.0.3-1
d15c3b2
- Update to 1.0.3. Fixes bug #1400316
d15c3b2
0b588a3
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-2
0b588a3
- Rebuild for Python 3.6
0b588a3
03ac9bc
* Wed Nov 23 2016 Kevin Fenzi <kevin@scrye.com> - 1.0.2-1
03ac9bc
- Update to 1.0.2
03ac9bc
2a24036
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
2a24036
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2a24036
9f4ad69
* Wed Jun 15 2016 Kevin Fenzi <kevin@scrye.com> - 1.0.1-1
9f4ad69
- Update to 1.0.1. Fixes bug #1346641
9f4ad69
b5538dd
* Sun Apr 10 2016 Kevin Fenzi <kevin@scrye.com> - 1.0-1
b5538dd
- Update to 1.0. Fixes bug #1323386
b5538dd
45dab07
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-5
45dab07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
45dab07
fd18617
* Tue Nov 24 2015 Ralph Bean <rbean@redhat.com> - 0.4-4
fd18617
- Merge branches together and bump release for bodhi updates.
fd18617
- Removed empty %%check section.
fd18617
- Fix incorrect usage of %%{pypi_name}.
fd18617
fd18617
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
2cd8d41
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2cd8d41
Lukas Bezdicka f238c29
* Mon Aug 31 2015 Lukas Bezdicka <lbezdick@redhat.com> - 0.4-2
Lukas Bezdicka f238c29
- fix python2 and python3 support and add support for Centos CBS
Lukas Bezdicka f238c29
- fix description
Lukas Bezdicka f238c29
Lukas Bezdicka 1f32213
* Wed Aug 26 2015 Lukas Bezdicka <lbezdick@redhat.com> - 0.4-1
Lukas Bezdicka 1f32213
- Bump to 0.4
Lukas Bezdicka 1f32213
Lukas Bezdicka 1f32213
* Tue Aug 25 2015 Lukas Bezdicka <lbezdick@redhat.com> - 0.3-1
Lukas Bezdicka 1f32213
- initial package