Rex Dieter 7bc6ec8
Kevin Kofler 4905506
Name:       kdevelop-python
0596eef
Version:    5.1.0
Kevin Kofler 4905506
%global py3_suffix -py3
Kevin Kofler 4905506
%global py3_tag .py3
0596eef
Release:    1%{?py3_tag}%{?dist}
Minh Ngo 71447ad
License:    GPLv2
881f5a0
Source0:    http://download.kde.org/unstable/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
8a5ce5c
Patch2:     kdev-python-missing-dependency.patch
8a5ce5c
Kevin Kofler 4905506
Summary:    Python 3 Plugin for KDevelop
Kevin Kofler 4905506
URL:        https://www.kdevelop.org/
Minh Ngo 71447ad
Kevin Kofler 4905506
BuildRequires:  kdevplatform-devel >= %{version}
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/*
10b4008
%{_kf5_qtplugindir}/kdevplatform/27/kdevpdb.so
10b4008
%{_kf5_qtplugindir}/kdevplatform/27/kdevpythonlanguagesupport.so
Minh Ngo 71447ad
Minh Ngo 71447ad
%changelog
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