Rex Dieter 7bc6ec8
Kevin Kofler 4905506
Name:       kdevelop-python
2c98a2f
Version:    5.2.3
Kevin Kofler 4905506
%global py3_suffix -py3
Kevin Kofler 4905506
%global py3_tag .py3
2c98a2f
Release:    1%{?py3_tag}%{?dist}
Minh Ngo 71447ad
License:    GPLv2
2744013
Source0:    http://download.kde.org/stable/kdevelop/%{version}/src/kdev-python-%{version}.tar.xz
Minh Ngo 71447ad
Kevin Kofler f44065a
# ensure the installed Python 3 scripts have #!/usr/bin/env python3
Kevin Kofler f44065a
Patch0:     kdev-python-1.7.0-py3-shebang.patch
Kevin Kofler f44065a
Kevin Kofler 3440aaa
# remove bogus autogenerated set"other methods from
Kevin Kofler 3440aaa
# documentation_files/__builtin_types__.py that are actually the < and >
Kevin Kofler 3440aaa
# operators, not methods - the bogus syntax (quote in identifier) makes the
Kevin Kofler 3440aaa
# brp-python-bytecompile script choke
Kevin Kofler 3440aaa
Patch1:     kdev-python-1.7.0-py3-doc-syntax.patch
Kevin Kofler 3440aaa
Kevin Kofler 4905506
Summary:    Python 3 Plugin for KDevelop
Kevin Kofler 4905506
URL:        https://www.kdevelop.org/
Minh Ngo 71447ad
8a5ce5c
BuildRequires:  kdevelop-devel >= %{version}
Kevin Kofler 4905506
BuildRequires:  python3-devel >= 3.4
Kevin Kofler 4905506
BuildRequires:  gettext
Minh Ngo 89f8dd4
8a5ce5c
BuildRequires:  kf5-rpm-macros
8a5ce5c
BuildRequires:  extra-cmake-modules
98ab306
BuildRequires:  grantlee-qt5-devel
8a5ce5c
BuildRequires:  kf5-ki18n-devel
98ab306
BuildRequires:  kf5-knotifyconfig-devel
8a5ce5c
BuildRequires:  kf5-knewstuff-devel
8a5ce5c
BuildRequires:  kf5-kcmutils-devel
8a5ce5c
BuildRequires:  kf5-ktexteditor-devel
8a5ce5c
BuildRequires:  kf5-threadweaver-devel
8a5ce5c
BuildRequires:  kf5-kitemmodels-devel
8a5ce5c
BuildRequires:  kf5-kdelibs4support-devel
8a5ce5c
8a5ce5c
BuildRequires:  qt5-qtbase-devel
8a5ce5c
BuildRequires:  qt5-qtwebkit-devel
8a5ce5c
Kevin Kofler 0c27e01
# force using Python 3 for bytecompiling
Kevin Kofler 0c27e01
%global __python %{__python3}
Kevin Kofler 0c27e01
Rex Dieter 7bc6ec8
%{?kdevelop_requires}
Minh Ngo 71447ad
Minh Ngo 71447ad
%description
Kevin Kofler 4905506
Python 3 language support for the KDevelop Integrated Development Environment.
Minh Ngo 71447ad
Rex Dieter 7bc6ec8
Minh Ngo 71447ad
%prep
6ecc878
%setup -qn kdev-python-%{version}
Rex Dieter 7bc6ec8
Kevin Kofler f44065a
# don't use backups because CMakeLists.txt installs the whole directory
Kevin Kofler 3440aaa
# shebang
Kevin Kofler f44065a
%patch0 -p1
Kevin Kofler 3440aaa
# doc-syntax
Kevin Kofler 3440aaa
%patch1 -p1
Minh Ngo 71447ad
Minh Ngo 71447ad
%build
Rex Dieter 7bc6ec8
mkdir %{_target_platform}
Minh Ngo 71447ad
pushd %{_target_platform}
Rex Dieter 7bc6ec8
%{cmake_kf5} ..
Minh Ngo 71447ad
popd
Rex Dieter 7bc6ec8
fab6a20
make %{?_smp_mflags} -C %{_target_platform}
Minh Ngo 71447ad
Rex Dieter 7bc6ec8
Minh Ngo 71447ad
%install
Kevin Kofler f44065a
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
Kevin Kofler f44065a
Kevin Kofler f44065a
# don't ship this Python 2 script, it is only used to generate the
Kevin Kofler f44065a
# documentation_files, it is not needed at runtime
8a5ce5c
rm -f %{buildroot}%{_datadir}/kdevpythonsupport/documentation_files/PyKDE4/parse_xml.py
Minh Ngo 71447ad
881f5a0
# TODO Enable translations in stable build
0596eef
%find_lang kdevpython
Kevin Kofler a5f1bbc
Minh Ngo 71447ad
%post -p /sbin/ldconfig
Minh Ngo 71447ad
%postun -p /sbin/ldconfig
Minh Ngo 71447ad
0596eef
%files -f kdevpython.lang
8a5ce5c
%doc DESIGN README
8a5ce5c
%{_libdir}/libkdevpythonduchain.so
8a5ce5c
%{_libdir}/libkdevpythonparser.so
8a5ce5c
%{_libdir}/libkdevpythoncompletion.so
8a5ce5c
%{_datadir}/kdevpythonsupport
8a5ce5c
%{_datadir}/kdevappwizard/templates/*
6c9ca0b
%{_kf5_qtplugindir}/kdevplatform/30/kdevpdb.so
6c9ca0b
%{_kf5_qtplugindir}/kdevplatform/30/kdevpythonlanguagesupport.so
6c9ca0b
%{_sysconfdir}/xdg/kdevpythonsupport.categories
4f94f37
%{_datadir}/appdata/org.kde.kdev-python.metainfo.xml
Minh Ngo 71447ad
Minh Ngo 71447ad
%changelog
2c98a2f
* Mon May 21 2018 Jan Grulich <jgrulich@redhat.com> - 5.2.3-1.py3
2c98a2f
- Update to 5.2.3
2c98a2f
9b25f2b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-2.py3
9b25f2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9b25f2b
133746e
* Fri Nov 24 2017 Jan Grulich <jgrulich@redhat.com> - 5.2.1-1
133746e
- Update to 5.2.1
133746e
2744013
* Tue Nov 14 2017 Jan Grulich <jgrulich@redhat.com> - 5.2.0-1
2744013
- Update to 5.2.0
2744013
6c9ca0b
* Fri Oct 06 2017 Jan Grulich <jgrulich@redhat.com> - 5.1.80
6c9ca0b
- Update to 5.1.80 (beta)
6c9ca0b
7161387
* Tue Aug 29 2017 Jan Grulich <jgrulich@redhat.com> - 5.1.2-1
7161387
- Update to 5.1.2
7161387
19c85fc
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-3.py3
19c85fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
19c85fc
f32c08d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-2.py3
f32c08d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f32c08d
b4d7ce7
* Mon May 29 2017 Jan Grulich <jgrulich@redhat.com> - 5.1.1-1
b4d7ce7
- Update to 5.1.1
b4d7ce7
0596eef
* Mon Mar 20 2017 Jan Grulich <jgrulich@redhat.com> - 5.1.0-1
0596eef
- Update to 5.1.0
0596eef
cc4e521
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.80-2.py3
cc4e521
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cc4e521
881f5a0
* Tue Jan 17 2017 Jan Grulich <jgrulich@redhat.com> - 5.0.80-1
881f5a0
- Update to 5.0.80 (beta)
881f5a0
75bb64a
* Thu Dec 22 2016 Jan Grulich <jgrulich@redhat.com> - 5.0.3-3.py3
75bb64a
- Add support for Python 3.6 (taken from upstream)
75bb64a
d218804
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 5.0.3-2.py3
d218804
- Rebuild for Python 3.6
d218804
9152466
* Fri Dec 02 2016 Jan Grulich <jgrulich@redhat.com> - 5.0.3-1
9152466
- Update to 5.0.3
9152466
e488e6a
* Mon Oct 17 2016 Jan Grulich <jgrulich@redhat.com> - 5.0.2-1
e488e6a
- Update to 5.0.2
e488e6a
6ecc878
* Mon Sep 19 2016 Jan Grulich <jgrulich@redhat.com> - 5.0.1-1
6ecc878
- Update to 5.0.1
6ecc878
Rex Dieter 7bc6ec8
* Wed Sep 07 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.0.0-2
Rex Dieter 7bc6ec8
- use %%{?kdevelop_requires}, cosmetics
Rex Dieter 7bc6ec8
2305db9
* Wed Aug 31 2016 Helio Chissini de Castro <helio@kde.org> - 5.0.0-1
2305db9
- New upstream version
2305db9
fab6a20
* Wed Jun 08 2016 Jan Grulich <jgrulich@redhat.com> - 5.0.0-0.1.20160608git.py3
fab6a20
- Package latest git snapshot to address GCC 6 related crashes
fab6a20
  Resolves: bz#1343439
fab6a20
0211049
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.90.91-2.py3
0211049
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0211049
be3bfd5
* Tue Jan 26 2016 Jan Grulich <jgrulich@redhat.com> - 4.90.91-1.py3
be3bfd5
- Update to 4.90.91 (beta 2)
be3bfd5
8a5ce5c
* Thu Nov 12 2015 Jan Grulich <jgrulich@redhat.com> - 4.90.90-1.py3
8a5ce5c
- Update to 4.90.90 (beta 1)
8a5ce5c
8067f9d
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2-2.py3
8067f9d
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
8067f9d
685e3a8
* Mon Oct 12 2015 Jan Grulich <jgrulich@redhat.com> - 1.7.2-1.py3
685e3a8
- Update to 1.7.2
685e3a8
8ebb2d0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1-3.py3
8ebb2d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8ebb2d0
5fe2884
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.7.1-2.py3
5fe2884
- Rebuilt for GCC 5 C++11 ABI change
5fe2884
0604e0a
* Tue Feb 10 2015 Jan Grulich <jgrulich@redhat.com> - 1.7.1-1.py3
0604e0a
- update to 1.7.1-py3
0604e0a
Kevin Kofler 6bc4e56
* Sat Sep 27 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.7.0-1.py3
Kevin Kofler d35bbd2
- update to 1.7.0-py3 (#1146723)
Kevin Kofler 4905506
- specfile cleanups
Kevin Kofler f44065a
- ensure the installed Python 3 scripts have #!/usr/bin/env python3
Kevin Kofler 4905506
1ae8b44
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-5
1ae8b44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1ae8b44
73cb04e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-4
73cb04e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
73cb04e
Minh Ngo 89f8dd4
* Fri Feb 15 2013 Minh Ngo <minh@fedoraproject.org> 1.4.1-3
Minh Ngo 89f8dd4
- possible fixing a bug with libpython2.7-kdevelop.so.1.0 requirement
Minh Ngo 89f8dd4
Minh Ngo 71447ad
* Thu Feb 14 2013 Minh Ngo <minh@fedoraproject.org> 1.4.1-2
Minh Ngo 71447ad
- have added _kde4_appsdir macro
Minh Ngo 71447ad
- have dropped updata-mime-database scriptlets
Minh Ngo 71447ad
- have omitted cmake requirement
Minh Ngo 71447ad
- have removed desktop-file-install script
Minh Ngo 71447ad
- removing python2.7 hardcode
Minh Ngo 71447ad
Kevin Kofler 246537b
* Sat Dec 01 2012 Minh Ngo <minh@fedoraproject.org> 1.4.1-1
Kevin Kofler 246537b
- initial build