forked from pool/kapidox
Accepting request 586805 from KDE:Frameworks5
KDE Frameworks 5.44 OBS-URL: https://build.opensuse.org/request/show/586805 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kapidox?expand=0&rev=50
This commit is contained in:
commit
90cbcb3d8e
@ -0,0 +1,55 @@
|
|||||||
|
From 64dac1ad3c8db765dd269ee6ec8a4549bb93d598 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Luca Beltrame <lbeltrame@kde.org>
|
||||||
|
Date: Wed, 14 Mar 2018 09:25:02 +0100
|
||||||
|
Subject: [PATCH] Look first for qhelpgenerator-qt5 for help generation
|
||||||
|
|
||||||
|
Summary:
|
||||||
|
A number of distributions uses the -qt5 suffix for Qt command line
|
||||||
|
tools, to make sure they can coexist with the Qt4 equivalents.
|
||||||
|
|
||||||
|
This change uses `distutils`'s `find_executable` to look for the -qt5
|
||||||
|
suffix of `qhelpgenerator`. If it is not found, it falls back to the
|
||||||
|
un-suffixed version.
|
||||||
|
|
||||||
|
Reviewers: #frameworks, ochurlaud
|
||||||
|
|
||||||
|
Subscribers: #documentation
|
||||||
|
|
||||||
|
Tags: #frameworks, #documentation
|
||||||
|
|
||||||
|
Differential Revision: https://phabricator.kde.org/D11315
|
||||||
|
---
|
||||||
|
src/kapidox/generator.py | 12 +++++++++++-
|
||||||
|
1 file changed, 11 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/kapidox/generator.py b/src/kapidox/generator.py
|
||||||
|
index 3fdf5e7..3346a47 100644
|
||||||
|
--- a/src/kapidox/generator.py
|
||||||
|
+++ b/src/kapidox/generator.py
|
||||||
|
@@ -30,6 +30,7 @@
|
||||||
|
from __future__ import division, absolute_import, print_function, unicode_literals
|
||||||
|
|
||||||
|
import codecs
|
||||||
|
+from distutils.spawn import find_executable
|
||||||
|
import datetime
|
||||||
|
import os
|
||||||
|
import logging
|
||||||
|
@@ -928,5 +929,14 @@ def create_qch(products, tagfiles):
|
||||||
|
name = product.name+".qhp"
|
||||||
|
outname = product.name+".qch"
|
||||||
|
tree_out.write(name, encoding="utf-8", xml_declaration=True)
|
||||||
|
- subprocess.call(["qhelpgenerator", name, '-o', 'qch/'+outname])
|
||||||
|
+
|
||||||
|
+ # On many distributions, qhelpgenerator from Qt5 is suffixed with
|
||||||
|
+ # "-qt5". Look for it first, and fall back to unsuffixed one if
|
||||||
|
+ # not found.
|
||||||
|
+ qhelpgenerator = find_executable("qhelpgenerator-qt5")
|
||||||
|
+
|
||||||
|
+ if qhelpgenerator is None:
|
||||||
|
+ qhelpgenerator = "qhelpgenerator"
|
||||||
|
+
|
||||||
|
+ subprocess.call([qhelpgenerator, name, '-o', 'qch/'+outname])
|
||||||
|
os.remove(name)
|
||||||
|
--
|
||||||
|
2.16.2
|
||||||
|
|
43
0001-Remove-shebangs-from-non-executable-files.patch
Normal file
43
0001-Remove-shebangs-from-non-executable-files.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
From b9d46fec4437ababe8a77e197059733633977c89 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Luca Beltrame <lbeltrame@kde.org>
|
||||||
|
Date: Wed, 14 Mar 2018 14:34:15 +0100
|
||||||
|
Subject: [PATCH] Remove shebangs from non-executable files
|
||||||
|
|
||||||
|
Summary:
|
||||||
|
These files are meant to be used as part of the import, not directly.
|
||||||
|
Therefore it makes no sense to have /usr/bin/env python calls on top.
|
||||||
|
(Other files correctly don't have shebangs)
|
||||||
|
|
||||||
|
Reviewers: #frameworks, ochurlaud
|
||||||
|
|
||||||
|
Subscribers: #documentation
|
||||||
|
|
||||||
|
Tags: #frameworks, #documentation
|
||||||
|
|
||||||
|
Differential Revision: https://phabricator.kde.org/D11330
|
||||||
|
---
|
||||||
|
src/kapidox/depdiagram/generate.py | 1 -
|
||||||
|
src/kapidox/hlfunctions.py | 1 -
|
||||||
|
2 files changed, 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/kapidox/depdiagram/generate.py b/src/kapidox/depdiagram/generate.py
|
||||||
|
index 20fae6f..af80d51 100644
|
||||||
|
--- a/src/kapidox/depdiagram/generate.py
|
||||||
|
+++ b/src/kapidox/depdiagram/generate.py
|
||||||
|
@@ -1,4 +1,3 @@
|
||||||
|
-#! /usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Copyright 2014 Aurélien Gâteau <agateau@kde.org>
|
||||||
|
diff --git a/src/kapidox/hlfunctions.py b/src/kapidox/hlfunctions.py
|
||||||
|
index 26571b8..ed1dd68 100644
|
||||||
|
--- a/src/kapidox/hlfunctions.py
|
||||||
|
+++ b/src/kapidox/hlfunctions.py
|
||||||
|
@@ -1,4 +1,3 @@
|
||||||
|
-#! /usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Copyright 2014 Alex Merry <alex.merry@kdemail.net>
|
||||||
|
--
|
||||||
|
2.16.2
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:812454d75a8d50ecad67f82a030945b27c448dbfe6f9be9311ef63e0e9456530
|
|
||||||
size 395592
|
|
3
kapidox-5.44.0.tar.xz
Normal file
3
kapidox-5.44.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:446ea08e3ad750563129f8d41c9200dee30322c345f23025385b69d8273bc656
|
||||||
|
size 395668
|
@ -1,3 +1,29 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 14 13:37:16 UTC 2018 - lbeltrame@kde.org
|
||||||
|
|
||||||
|
- Add 0001-Look-first-for-qhelpgenerator-qt5-for-help-generatio.patch:
|
||||||
|
* Look for qhelpgenerator-qt5 first (as it's named in openSUSE)
|
||||||
|
- Add 0001-Remove-shebangs-from-non-executable-files.patch:
|
||||||
|
* Remove shebangs from non-executable files
|
||||||
|
- Add an explicit dependency on libqt5-qttools (needed for QCH
|
||||||
|
generation)
|
||||||
|
- Rework summary and description to match what this package actually
|
||||||
|
does
|
||||||
|
- Switch from Python 2 to Python 3 usage
|
||||||
|
- Reformat the spec with spec-cleaner
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 12 23:29:40 CET 2018 - lbeltrame@kde.org
|
||||||
|
|
||||||
|
- Update to 5.44.0
|
||||||
|
* New feature release
|
||||||
|
* For more details please see:
|
||||||
|
* https://www.kde.org/announcements/kde-frameworks-5.44.0.php
|
||||||
|
- Changes since 5.43.0:
|
||||||
|
* QCH files are now generated and available. + remove unused variables and functions
|
||||||
|
* Remove some unused arguments from the input parsing
|
||||||
|
* Exit in error if the output directory is not empty. + Some other small fixes (kde#390904)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 12 23:42:07 CET 2018 - lbeltrame@kde.org
|
Mon Feb 12 23:42:07 CET 2018 - lbeltrame@kde.org
|
||||||
|
|
||||||
|
50
kapidox.spec
50
kapidox.spec
@ -16,49 +16,53 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define _tar_path 5.43
|
%define _tar_path 5.44
|
||||||
# Full KF5 version (e.g. 5.33.0)
|
# Full KF5 version (e.g. 5.33.0)
|
||||||
%{!?_kf5_version: %global _kf5_version %{version}}
|
%{!?_kf5_version: %global _kf5_version %{version}}
|
||||||
# Last major and minor KF5 version (e.g. 5.33)
|
# Last major and minor KF5 version (e.g. 5.33)
|
||||||
%{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
%{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
||||||
Name: kapidox
|
Name: kapidox
|
||||||
Version: 5.43.0
|
Version: 5.44.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Requires: doxygen
|
Summary: Scripts and data for building API documentation
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: kf5-filesystem
|
|
||||||
BuildRequires: python
|
|
||||||
Requires: python-Jinja2
|
|
||||||
Recommends: python-PyYAML
|
|
||||||
Requires: doxygen
|
|
||||||
Requires: graphviz
|
|
||||||
Requires: graphviz-gd
|
|
||||||
Requires: python-xml
|
|
||||||
Summary: KDE Base Libraries
|
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: System/GUI/KDE
|
Group: System/GUI/KDE
|
||||||
Url: http://www.kde.org
|
Url: http://www.kde.org
|
||||||
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
# PATCH-FIX-UPSTREAM
|
||||||
|
Patch0: 0001-Remove-shebangs-from-non-executable-files.patch
|
||||||
|
# PATCH-FIX-UPSTREAM
|
||||||
|
Patch1: 0001-Look-first-for-qhelpgenerator-qt5-for-help-generatio.patch
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: kf5-filesystem
|
||||||
|
BuildRequires: python3
|
||||||
|
Requires: doxygen
|
||||||
|
Requires: graphviz
|
||||||
|
Requires: graphviz-gd
|
||||||
|
Requires: libqt5-qttools
|
||||||
|
Requires: python3-Jinja2
|
||||||
|
Requires: python3-xml
|
||||||
|
Recommends: python3-PyYAML
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the core libraries of the K Desktop Environment.
|
The kapidox framework enables the generation of API documentation from
|
||||||
|
Doxygen-formatted codde comments in a standard format and style.
|
||||||
This package is absolutely necessary for using KDE applications.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python3 setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_kf5_prefix} --root=%{buildroot}
|
python3 setup.py install --prefix=%{_kf5_prefix} --root=%{buildroot}
|
||||||
%fdupes %{buildroot}
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%license LICENSE
|
||||||
%doc README* LICENSE
|
%doc README*
|
||||||
%{_kf5_bindir}/kapidox_generate
|
%{_kf5_bindir}/kapidox_generate
|
||||||
%{_kf5_bindir}/depdiagram-generate
|
%{_kf5_bindir}/depdiagram-generate
|
||||||
%{_kf5_bindir}/depdiagram-generate-all
|
%{_kf5_bindir}/depdiagram-generate-all
|
||||||
@ -66,7 +70,7 @@ This package is absolutely necessary for using KDE applications.
|
|||||||
%{_kf5_mandir}/man1/depdiagram-generate-all.1*
|
%{_kf5_mandir}/man1/depdiagram-generate-all.1*
|
||||||
%{_kf5_mandir}/man1/depdiagram-generate.1*
|
%{_kf5_mandir}/man1/depdiagram-generate.1*
|
||||||
%{_kf5_mandir}/man1/depdiagram-prepare.1*
|
%{_kf5_mandir}/man1/depdiagram-prepare.1*
|
||||||
%{python_sitelib}/kapidox/
|
%{python3_sitelib}/kapidox/
|
||||||
%{python_sitelib}/kapidox-*.egg-info
|
%{python3_sitelib}/kapidox-*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user