Accepting request 1139691 from home:Thaodan:branches:devel:tools:building

- macros: Set some more variables notable %{_docdir} so that GNUInstallDirs
  works fully on openSUSE. Packages using CMAKE_INSTALL_DOCDIR fail otherwise.

OBS-URL: https://build.opensuse.org/request/show/1139691
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=566
This commit is contained in:
Simon Lees 2024-01-18 12:22:02 +00:00 committed by Git OBS Bridge
parent 7485b5ca29
commit 00a1d89f7e
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 17 19:54:04 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de>
- macros: Set some more variables notable %{_docdir} so that GNUInstallDirs
works fully on openSUSE. Packages using CMAKE_INSTALL_DOCDIR fail otherwise.
-------------------------------------------------------------------
Thu Jan 11 10:21:03 UTC 2024 - Michal Suchanek <msuchanek@suse.com>

View File

@ -32,6 +32,9 @@
-DCMAKE_INSTALL_LIBDIR:PATH=%{__cmake_make_prefix_relative %{_libdir}} \\\
-DCMAKE_INSTALL_INCLUDEDIR:PATH=%{__cmake_make_prefix_relative %{_includedir}} \\\
-DCMAKE_INSTALL_DATAROOTDIR:PATH=%{__cmake_make_prefix_relative %{_datadir}} \\\
-DCMAKE_INSTALL_DOCDIR:PATH=%{__cmake_make_prefix_relative %{_docdir}/%{name}} \\\
-DCMAKE_INSTALL_MANDIR:PATH=%{__cmake_make_prefix_relative %{_mandir}} \\\
-DCMAKE_INSTALL_INFODIR:PATH=%{__cmake_make_prefix_relative %{_infodir}} \\\
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
-DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\

View File

@ -1,7 +1,7 @@
#
# spec file
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed