[packages/libinstpatch] - update to 1.1.6 - updated gtkdoc patch, require gtk-doc with cmake fix applied

qboosh qboosh at pld-linux.org
Sat Apr 17 21:52:10 CEST 2021


commit a8a0eceff73ff907bd0228c8b65828dd709bd2d3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 17 21:52:19 2021 +0200

    - update to 1.1.6
    - updated gtkdoc patch, require gtk-doc with cmake fix applied

 libinstpatch-gtkdoc.patch | 91 -----------------------------------------------
 libinstpatch.spec         | 18 +++++-----
 2 files changed, 10 insertions(+), 99 deletions(-)
---
diff --git a/libinstpatch.spec b/libinstpatch.spec
index b72719a..b521e0a 100644
--- a/libinstpatch.spec
+++ b/libinstpatch.spec
@@ -1,25 +1,27 @@
 #
 # Conditional build:
-%bcond_without	apidocs	# API documentation
+%bcond_without	apidocs		# API documentation
+%bcond_with	introspection	# GObject Introspection [broken cmake support in 1.1.[3-6]]
 
 Summary:	Library for processing digital sample based MIDI instrument "patch" files
 Summary(pl.UTF-8):	Biblioteka do przetwarzania plików "wstawek" instrumentów MIDI opartych na próbkach cyfrowych
 Name:		libinstpatch
-Version:	1.1.5
+Version:	1.1.6
 Release:	1
 License:	LGPL v2.1
 Group:		Libraries
 #Source0Download: https://github.com/swami/libinstpatch/releases
 Source0:	https://github.com/swami/libinstpatch/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	e2b4a0867a72e464aab0fd7dae9c1abe
+# Source0-md5:	159f70ffb53f56dd54e4827ef77b1804
 Patch0:		%{name}-gtkdoc.patch
 URL:		http://www.swamiproject.org/
 BuildRequires:	cmake >= 2.6.3
 BuildRequires:	glib2-devel >= 1:2.14
-#BuildRequires:	gobject-introspection-devel
-%{?with_apidocs:BuildRequires:	gtk-doc}
+%{?with_introspection:BuildRequires:	gobject-introspection-devel}
+%{?with_apidocs:BuildRequires:	gtk-doc >= 1.33.2-3}
 BuildRequires:	libsndfile-devel >= 1.0.0
 BuildRequires:	pkgconfig
+BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 1.752
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -74,8 +76,8 @@ Dokumentacja API biblioteki libinstpatch.
 install -d build
 cd build
 %cmake .. \
-	%{?with_apidocs:-DGTKDOC_ENABLED=ON}
-#	-DINTROSPECTION_ENABLED=ON broken cmake support in 1.1.[35]
+	%{?with_apidocs:-DGTKDOC_ENABLED=ON} \
+	%{?with_introspection:-DINTROSPECTION_ENABLED=ON}
 
 %{__make}
 
@@ -87,7 +89,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %if %{with apidocs}
 install -d $RPM_BUILD_ROOT%{_gtkdocdir}/libinstpatch
-cp -p build/docs/reference/libinstpatch/html/* $RPM_BUILD_ROOT%{_gtkdocdir}/libinstpatch
+cp -p build/docs/reference/html/* $RPM_BUILD_ROOT%{_gtkdocdir}/libinstpatch
 %endif
 
 %clean
diff --git a/libinstpatch-gtkdoc.patch b/libinstpatch-gtkdoc.patch
index 43e5779..909ade1 100644
--- a/libinstpatch-gtkdoc.patch
+++ b/libinstpatch-gtkdoc.patch
@@ -1,87 +1,3 @@
---- libinstpatch-1.1.5/cmake/FindGtkDoc.cmake.orig	2020-05-26 13:09:21.000000000 +0200
-+++ libinstpatch-1.1.5/cmake/FindGtkDoc.cmake	2021-01-17 17:02:54.626330817 +0100
-@@ -34,12 +34,6 @@
-     set(GTKDOC_FOUND 0)
- endif(NOT GTKDOC_SCANGOBJ_WRAPPER)
- 
--find_program(GTKDOC_MKTMPL_EXE gtkdoc-mktmpl PATH "${GLIB_PREFIX}/bin")
--if(NOT GTKDOC_MKTMPL_EXE)
--	message(STATUS "gtkdoc-mktmpl not found")
--    set(GTKDOC_FOUND 0)
--endif(NOT GTKDOC_MKTMPL_EXE)
--
- find_program(GTKDOC_MKDB_EXE gtkdoc-mkdb PATH "${GLIB_PREFIX}/bin")
- if(NOT GTKDOC_MKDB_EXE)
- 	message(STATUS "gtkdoc-mkdb not found")
---- libinstpatch-1.1.5/cmake/UseGtkDoc.cmake.orig	2020-05-26 13:09:21.000000000 +0200
-+++ libinstpatch-1.1.5/cmake/UseGtkDoc.cmake	2021-01-17 18:15:40.099347687 +0100
-@@ -130,26 +130,6 @@
-             WORKING_DIRECTORY "${_output_dir}"
-             VERBATIM)
- 
--        # add a command to make the templates
--        add_custom_command(
--            OUTPUT
--                "${_output_unused}"
--                "${_output_undeclared}"
--                "${_output_undocumented}"
--                "${_output_tmpl_dir}"
--                "${_output_tmpl_stamp}"
--            DEPENDS
--                "${_output_types}"
--                "${_output_signals}"
--                "${_output_sections}"
--                "${_output_overrides}"
--                ${ARG_DEPENDS}
--            COMMAND ${CMAKE_COMMAND} -E remove_directory ${_output_tmpl_dir}
--            COMMAND ${GTKDOC_MKTMPL_EXE}
--                "--module=${_doc_prefix}"
--            WORKING_DIRECTORY "${_output_dir}"
--            VERBATIM)
--
-         set(_copy_xml_if_needed "")
-         if(ARG_XML)
-             get_filename_component(ARG_XML ${ARG_XML} ABSOLUTE)
-@@ -169,10 +149,10 @@
-                 "${_output_sgml_stamp}"
-                 "${_default_xml_file}"
-             DEPENDS
--                "${_output_tmpl_stamp}"
--                "${_output_unused}"
--                "${_output_undeclared}"
--                "${_output_undocumented}"
-+                "${_output_overrides}"
-+                "${_output_sections}"
-+                "${_output_signals}"
-+                "${_output_types}"
-                 ${ARG_DEPENDS}
-                 ${_remove_xml_if_needed}
-             COMMAND ${CMAKE_COMMAND} -E remove_directory ${_output_xml_dir}
-@@ -162,6 +162,7 @@
-                 "--source-suffixes=${_doc_source_suffixes}"
-                 "--output-format=xml"
-                 "--main-sgml-file=${_default_xml_file}"
-+            COMMAND sh -c "printf '<!ENTITY package \"${PACKAGE}\">\\n<!ENTITY package_bugreport \"\">\\n<!ENTITY package_name \"${PACKAGE})\">\\n<!ENTITY package_string \"${PACKAGE}\">\\n<!ENTITY package_tarname \"${PACKAGE}\">\\n<!ENTITY package_url \"http://www.swamiproject.org/\">\\n<!ENTITY package_version \"${VERSION}\">\\n' > ${_output_xml_dir}/gtkdocentities.ent"
-             ${_copy_xml_if_needed}
-             WORKING_DIRECTORY "${_output_dir}"
-             VERBATIM)
-@@ -200,7 +180,6 @@
-             DEPENDS
-                 "${_output_html_dir_stamp}"
-                 "${_output_sgml_stamp}"
--                "${_output_tmpl_stamp}"
-                 "${ARG_XML}"
-                 ${ARG_DEPENDS}
-             ${_copy_xml_if_needed}
-@@ -196,7 +197,7 @@
-                 ${ARG_DEPENDS}
-             COMMAND ${GTKDOC_FIXXREF_EXE}
-                 "--module=${_doc_prefix}"
--                "--module-dir=."
-+                "--module-dir=html"
-                 ${ARG_FIXXREFOPTS}
-             #${_remove_xml_if_needed}
-             WORKING_DIRECTORY "${_output_dir}"
 --- libinstpatch-1.1.5/docs/reference/CMakeLists.txt.orig	2020-05-26 13:09:21.000000000 +0200
 +++ libinstpatch-1.1.5/docs/reference/CMakeLists.txt	2021-01-17 18:01:36.473917998 +0100
 @@ -40,7 +40,7 @@
@@ -93,10 +9,3 @@
    )
  endif ()
  
---- libinstpatch-1.1.5/cmake/GtkDocScanGObjWrapper.cmake.orig	2020-05-26 13:09:21.000000000 +0200
-+++ libinstpatch-1.1.5/cmake/GtkDocScanGObjWrapper.cmake	2021-01-17 19:29:27.275363616 +0100
-@@ -1,3 +1,4 @@
-+include(CMakeGenericSystem)
- if(NOT APPLE)
-     # We use pkg-config to fing glib et al
-     find_package(PkgConfig)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libinstpatch.git/commitdiff/a8a0eceff73ff907bd0228c8b65828dd709bd2d3



More information about the pld-cvs-commit mailing list