diff --git a/doc_path.diff b/doc_path.diff new file mode 100644 index 0000000..25be7e5 --- /dev/null +++ b/doc_path.diff @@ -0,0 +1,14 @@ +diff -U 3 -dHrN -- a/setup.py b/setup.py +--- a/setup.py 2021-07-08 00:55:24.000000000 +0200 ++++ b/setup.py 2021-07-08 09:44:15.828710409 +0200 +@@ -53,8 +53,8 @@ + zip_safe=False, + data_files=[ + ('share/applications', ['org.kde.mygnuhealth.desktop']), +- ('share/doc/mygnuhealth', ['doc/mygnuhealth.rst']), +- ('share/doc/mygnuhealth/images', glob('doc/images/*', recursive=True)), ++ ('share/doc/packages/mygnuhealth', ['doc/mygnuhealth.rst']), ++ ('share/doc/packages/mygnuhealth/images', glob('doc/images/*', recursive=True)), + ('share/metainfo', ['org.kde.mygnuhealth.metainfo.xml']), + ('share/icons/hicolor/scalable/apps/', + ['mygnuhealth/images/mygnuhealth.svg']), diff --git a/mygnuhealth.changes b/mygnuhealth.changes index 777926a..fc9150e 100644 --- a/mygnuhealth.changes +++ b/mygnuhealth.changes @@ -6,7 +6,8 @@ Thu Jul 8 06:40:10 UTC 2021 - Axel Braun https://ftp.gnu.org/gnu/health/mygnuhealth/ * Include Changelog file * Include local / offline documentation (resides on - /usr/share/doc/packages/mygnuhealth) + /usr/share/doc/packages/mygnuhealth) +* doc_path.diff added * Clean up __pycache__ from tarball ------------------------------------------------------------------- diff --git a/mygnuhealth.spec b/mygnuhealth.spec index 3c00afc..546ad24 100644 --- a/mygnuhealth.spec +++ b/mygnuhealth.spec @@ -32,6 +32,7 @@ Group: Productivity/Office/Management URL: http://health.gnu.org/ Source: https://files.pythonhosted.org/packages/source/M/%{modname}/%{modname}-%{version}.tar.gz Patch0: shebang.diff +Patch1: doc_path.diff BuildRequires: fdupes BuildRequires: python3-bcrypt BuildRequires: python3-matplotlib @@ -61,7 +62,7 @@ Information Management System for Desktop and Mobile Devices %prep %setup -q -n %{modname}-%{version} -%patch0 -p1 +%autopatch -p1 %build %python3_build