|
|
94a9462 |
%global srcname qutepart
|
|
|
94a9462 |
%global sum Code editor widget
|
|
|
9d5c42f |
%global desc_common \
|
|
|
9d5c42f |
Qutepart is a code editor widget for PyQt. Features: \
|
|
|
9d5c42f |
- Syntax highlighting for 196 languages. \
|
|
|
9d5c42f |
- Smart indentation for many languages. \
|
|
|
9d5c42f |
- Line numbers. \
|
|
|
9d5c42f |
- Bookmarks. \
|
|
|
9d5c42f |
- Advanced edit operations. \
|
|
|
9d5c42f |
- Matching braces highlighting. \
|
|
|
9d5c42f |
- Autocompletion based on document content. \
|
|
|
9d5c42f |
- Marking too long lines with red line. \
|
|
|
9d5c42f |
- Rectangular selection and copy-paste. \
|
|
|
9d5c42f |
- Linter marks support.
|
|
|
9d5c42f |
|
|
|
6f3e19e |
# issue#69, tests for vim abort with python 3.7, maybe too slow?
|
|
|
6f3e19e |
%bcond_with test_vim
|
|
|
6f3e19e |
|
|
|
94a9462 |
Name: python-%{srcname}
|
|
|
ca200e5 |
Version: 3.3.1
|
|
|
5bdd8ff |
Release: 3%{?dist}
|
|
|
94a9462 |
Summary: %{sum}
|
|
|
94a9462 |
|
|
|
a097bd3 |
# LGPL 2.1 >> 2.0 (explicitly allows dynamic linking)
|
|
|
94a9462 |
License: LGPLv2+
|
|
|
865e46a |
URL: https://github.com/andreikop/%{srcname}
|
|
|
94a9462 |
|
|
|
e700fcb |
Source0: %{url}/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
|
|
|
94a9462 |
|
|
|
d8d3c41 |
BuildRequires: gcc
|
|
|
94a9462 |
BuildRequires: pcre-devel
|
|
|
94a9462 |
|
|
|
94a9462 |
BuildRequires: python3-qt5
|
|
|
94a9462 |
BuildRequires: python3-devel
|
|
|
94a9462 |
BuildRequires: python3-setuptools
|
|
|
94a9462 |
BuildRequires: python3-sphinx
|
|
|
94a9462 |
|
|
|
94a9462 |
BuildRequires: xorg-x11-server-Xvfb
|
|
|
94a9462 |
|
|
|
94a9462 |
%description
|
|
|
9d5c42f |
%{desc_common}
|
|
|
94a9462 |
|
|
|
94a9462 |
%package -n python3-%{srcname}
|
|
|
94a9462 |
Summary: %{sum}
|
|
|
2ab39d4 |
Requires: pcre
|
|
|
2ab39d4 |
Requires: python3-qt5
|
|
|
e700fcb |
Provides: python-%{srcname}
|
|
|
a097bd3 |
Obsoletes: python2-%{srcname} < 3.2.0
|
|
|
94a9462 |
|
|
|
94a9462 |
%description -n python3-%{srcname}
|
|
|
9d5c42f |
%{desc_common}
|
|
|
94a9462 |
|
|
|
94a9462 |
|
|
|
94a9462 |
%prep
|
|
|
e700fcb |
%setup -q -n %{srcname}-%{version}
|
|
|
94a9462 |
# disable PyQt5 mocking for sphinx
|
|
|
94a9462 |
sed -i -r 's,(MOCK_MODULES = \[).*\],\1],' doc/source/conf.py
|
|
|
6883bdf |
|
|
|
94a9462 |
%build
|
|
|
94a9462 |
%py3_build
|
|
|
94a9462 |
pushd doc
|
|
|
94a9462 |
sphinx-build-3 source html
|
|
|
94a9462 |
# E: non-standard-executable-perm
|
|
|
e700fcb |
#find -name \*.so |xargs chmod 0755
|
|
|
94a9462 |
# W: hidden-file-or-dir
|
|
|
e700fcb |
rm -r html/.buildinfo html/.doctrees
|
|
|
94a9462 |
|
|
|
94a9462 |
%install
|
|
|
94a9462 |
%py3_install
|
|
|
94a9462 |
|
|
|
94a9462 |
|
|
|
94a9462 |
%check
|
|
|
a097bd3 |
# let's find all modules and don't crash after execution
|
|
|
94a9462 |
pushd tests
|
|
|
a097bd3 |
rm -f test_all.py
|
|
|
6f3e19e |
%if !%{with test_vim}
|
|
|
a097bd3 |
# FIXME (core dumped)
|
|
|
6f3e19e |
rm test_vim.py
|
|
|
6f3e19e |
%endif
|
|
|
4709a52 |
# FIXME we saw crashes with python3 = 3.9, rhbz#1793009
|
|
|
f9b60ee |
%if 0%{?python3_version_nodots} > 38
|
|
|
f9b60ee |
true Skipping tests due to strange crashes! Python: %{python3_version_nodots} / %{?python3_pkgversion}
|
|
|
4709a52 |
%else
|
|
|
a097bd3 |
# test_all.py: Look for all tests. Using test_* instead of
|
|
|
a097bd3 |
# test_*.py finds modules (test_syntax and test_indenter).
|
|
|
a097bd3 |
# Do some fake X
|
|
|
a097bd3 |
xvfb-run -s '-screen :0 1024x768x16'\
|
|
|
a097bd3 |
%{__python3} -m unittest -vvv test_*
|
|
|
4709a52 |
%endif
|
|
|
94a9462 |
|
|
|
94a9462 |
|
|
|
94a9462 |
%files -n python3-%{srcname}
|
|
|
94a9462 |
%license LICENSE
|
|
|
94a9462 |
%doc README.md ChangeLog todo.txt
|
|
|
e700fcb |
%doc doc/html/
|
|
|
94a9462 |
%{python3_sitearch}/%{srcname}*
|
|
|
94a9462 |
|
|
|
94a9462 |
|
|
|
94a9462 |
%changelog
|
|
|
5bdd8ff |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-3
|
|
|
5bdd8ff |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
5bdd8ff |
|
|
|
1c2a4e0 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.3.1-2
|
|
|
1c2a4e0 |
- Rebuilt for Python 3.9
|
|
|
1c2a4e0 |
|
|
|
ca200e5 |
* Fri Apr 10 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 3.3.1-1
|
|
|
ca200e5 |
- Update to 3.3.1 (#1823013)
|
|
|
ca200e5 |
|
|
|
f9b60ee |
* Wed Mar 18 2020 Raphael Groner <projects.rg@smart.ms> - 3.3.0-3
|
|
|
f9b60ee |
- use correct build conditional, rhbz#1793009
|
|
|
f9b60ee |
|
|
|
e4dc0c2 |
* Wed Mar 18 2020 Raphael Groner <projects.rg@smart.ms> - 3.3.0-2
|
|
|
e4dc0c2 |
- rebuilt
|
|
|
e4dc0c2 |
|
|
|
a91e8ab |
* Mon Mar 16 2020 Raphael Groner <projects.rg@smart.ms> - 3.3.0-1
|
|
|
a91e8ab |
- new version
|
|
|
a91e8ab |
|
|
|
eb28ba3 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
|
|
eb28ba3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
eb28ba3 |
|
|
|
811d929 |
* Fri Nov 15 2019 Raphael Groner <projects.rg@smart.ms> - 3.2.0-1
|
|
|
811d929 |
- new version
|
|
|
a097bd3 |
- fix execution of tests, avoid random freezes
|
|
|
811d929 |
|
|
|
ec30e38 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1-9
|
|
|
ec30e38 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
ec30e38 |
|
|
|
448f567 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1-8
|
|
|
448f567 |
- Rebuilt for Python 3.8
|
|
|
448f567 |
|
|
|
0227b6b |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-7
|
|
|
0227b6b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
0227b6b |
|
|
|
b40b0a0 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-6
|
|
|
b40b0a0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
b40b0a0 |
|
|
|
d8d3c41 |
* Thu Jul 19 2018 Raphael Groner <projects.rg@smart.ms> - 3.1-5
|
|
|
d8d3c41 |
- add BuildRequires: gcc
|
|
|
d8d3c41 |
|
|
|
5bf208e |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-4
|
|
|
5bf208e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
5bf208e |
|
|
|
1fadbf2 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1-3
|
|
|
1fadbf2 |
- Rebuilt for Python 3.7
|
|
|
1fadbf2 |
|
|
|
da17a32 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-2
|
|
|
da17a32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
da17a32 |
|
|
|
1989eb8 |
* Sun Dec 03 2017 Raphael Groner <projects.rg@smart.ms> - 3.1-1
|
|
|
1989eb8 |
- new version
|
|
|
1989eb8 |
|
|
|
2ae964d |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-7
|
|
|
2ae964d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
2ae964d |
|
|
|
44900e8 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-6
|
|
|
44900e8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
44900e8 |
|
|
|
68e0e4e |
* Tue Mar 28 2017 Raphael Groner <projects.rg@smart.ms> - 3.0.1-5
|
|
|
68e0e4e |
- explicitly set screen depth for tests: qt dropped support for depth 8
|
|
|
68e0e4e |
|
|
|
44b31ba |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-4
|
|
|
44b31ba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
44b31ba |
|
|
|
b1e9b35 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.0.1-3
|
|
|
b1e9b35 |
- Rebuild for Python 3.6
|
|
|
b1e9b35 |
|
|
|
ba7d8d8 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-2
|
|
|
ba7d8d8 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
ba7d8d8 |
|
|
Raphael Groner |
f9178d0 |
* Wed Jun 15 2016 Raphael Groner <projects.rg@smart.ms> - 3.0.1-1
|
|
Raphael Groner |
f9178d0 |
- new version
|
|
Raphael Groner |
f9178d0 |
|
|
Raphael Groner |
f7bc6fa |
* Mon May 02 2016 Raphael Groner <projects.rg@smart.ms> - 3.0.0-2
|
|
Raphael Groner |
f7bc6fa |
- rebuild for new python3-qt5
|
|
Raphael Groner |
f7bc6fa |
|
|
|
e700fcb |
* Thu Apr 21 2016 Raphael Groner <projects.rg@smart.ms> - 3.0.0-1
|
|
|
e700fcb |
- bump to v3.0.0, now python3 only, rhbz#1328450
|
|
|
e700fcb |
|
|
|
6883bdf |
* Wed Mar 02 2016 Raphael Groner <projects.rg@smart.ms> - 2.2.3-1.20160229gitfdc29c7
|
|
|
6883bdf |
- use upstream master as post-release
|
|
|
6883bdf |
|
|
|
9d5c42f |
* Sun Feb 28 2016 Raphael Groner <projects.rg@smart.ms> - 2.2.3-1
|
|
|
9d5c42f |
- new version
|
|
|
6883bdf |
- use main version for python3, get rid of py3 patches
|
|
|
6883bdf |
- obsolete python2 package in Fedora 24+
|
|
|
9d5c42f |
|
|
|
61394a0 |
* Sat Feb 27 2016 Raphael Groner <projects.rg@smart.ms> - 2.2.2-6
|
|
|
083da82 |
- rebuild to validate dependencies (bug with librsvg-2.so.2)
|
|
|
083da82 |
|
|
|
76904ae |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-5
|
|
|
76904ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
76904ae |
|
|
|
fa209dc |
* Thu Nov 12 2015 Kalev Lember <klember@redhat.com> - 2.2.2-4
|
|
|
fa209dc |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
fa209dc |
|
|
|
94a9462 |
* Fri Nov 06 2015 Raphael Groner <projects.rg@smart.ms> - 2.2.2-3
|
|
|
94a9462 |
- add subpackages for python versioning
|
|
|
94a9462 |
- experimental python3 support
|
|
|
94a9462 |
|
|
|
94a9462 |
* Mon Oct 19 2015 Raphael Groner <projects.rg@smart.ms> - 2.2.2-2
|
|
|
94a9462 |
- take over from Jairo Llopis
|
|
|
94a9462 |
- cleanup generally
|
|
|
94a9462 |
- use LGPLv2 with "or later"
|
|
|
94a9462 |
- add more documentation files
|
|
|
94a9462 |
- execute tests
|
|
|
94a9462 |
- fix permissions
|
|
|
94a9462 |
- use new python macros
|
|
|
94a9462 |
- use virtual provides of python2 module
|
|
|
94a9462 |
|
|
|
94a9462 |
* Fri Aug 28 2015 Jairo Llopis <yajo.sk8@gmail.com> 2.2.2-1
|
|
|
94a9462 |
- New upstream version.
|
|
|
94a9462 |
|
|
|
94a9462 |
* Wed Aug 26 2015 Jairo Llopis <yajo.sk8@gmail.com> 2.2.0-7
|
|
|
94a9462 |
- Fix some permissions.
|
|
|
94a9462 |
- Remove Spanish descriptions, for easier maintenance.
|
|
|
94a9462 |
|
|
|
94a9462 |
* Mon May 4 2015 Jairo Llopis <yajo.sk8@gmail.com> 2.2.0-6
|
|
|
94a9462 |
- Fix license macro in SPEC.
|
|
|
94a9462 |
- Fix a couple of redundancies in SPEC.
|
|
|
94a9462 |
|
|
|
94a9462 |
* Thu Apr 30 2015 Jairo Llopis <yajo.sk8@gmail.com> 2.2.0-5
|
|
|
94a9462 |
- New upstream version.
|
|
|
94a9462 |
- Clear SPEC redundancies.
|
|
|
94a9462 |
- Force usage of Python 2 macros in SPEC.
|
|
|
94a9462 |
|
|
|
94a9462 |
* Fri Feb 6 2015 Jairo Llopis <yajo.sk8@gmail.com> 2.1.0-4
|
|
|
94a9462 |
- New upstream version.
|
|
|
94a9462 |
- Update descriptions and dependencies to match upstream SPEC.
|
|
|
94a9462 |
- Remove support for Fedora < 20.
|
|
|
94a9462 |
|
|
|
94a9462 |
* Mon Jul 7 2014 Jairo Llopis <yajo.sk8@gmail.com> 1.3.0-3
|
|
|
94a9462 |
- New upstream version.
|
|
|
94a9462 |
- Fix typo.
|
|
|
94a9462 |
|
|
|
94a9462 |
* Fri Oct 25 2013 Jairo Llopis <yajo.sk8@gmail.com> 1.1.0-2
|
|
|
94a9462 |
- Fix comments.
|
|
|
94a9462 |
- Fix translation.
|
|
|
94a9462 |
- Fix CFLAGS when building.
|
|
|
94a9462 |
- Fix license.
|
|
|
94a9462 |
|
|
|
94a9462 |
* Sun Sep 8 2013 Jairo Llopis <yajo.sk8@gmail.com> 1.1.0-1
|
|
|
94a9462 |
- Initial release.
|