From f083e80c74afab88fef7c3681f04aa4c3d9e0f7802b18ff9b9d20edd7d291173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Fri, 6 Jan 2023 19:00:03 +0000 Subject: [PATCH] Accepting request 1056377 from home:susnux:branches:M17N Provide also the tools for creating woff2 files OBS-URL: https://build.opensuse.org/request/show/1056377 OBS-URL: https://build.opensuse.org/package/show/M17N/woff2?expand=0&rev=10 --- install-executables.patch | 20 ++++++++++++++++++++ woff2.changes | 5 +++++ woff2.spec | 11 ++++++++--- 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 install-executables.patch diff --git a/install-executables.patch b/install-executables.patch new file mode 100644 index 0000000..833102f --- /dev/null +++ b/install-executables.patch @@ -0,0 +1,20 @@ +diff -Nur woff2-1.0.2/CMakeLists.txt new/CMakeLists.txt +--- woff2-1.0.2/CMakeLists.txt 2017-11-13 19:31:28.000000000 +0100 ++++ new/CMakeLists.txt 2023-01-06 12:19:53.666418912 +0100 +@@ -260,12 +260,10 @@ + LIBRARIES woff2enc) + + # Installation +-if (NOT BUILD_SHARED_LIBS) +- install( +- TARGETS woff2_decompress woff2_compress woff2_info +- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" +- ) +-endif() ++install( ++ TARGETS woff2_decompress woff2_compress woff2_info ++ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" ++) + + install( + TARGETS woff2common woff2dec woff2enc diff --git a/woff2.changes b/woff2.changes index c57bcc1..395c836 100644 --- a/woff2.changes +++ b/woff2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 6 11:21:56 UTC 2023 - Ferdinand Thiessen + +- Add install-executables.patch to install woff2 tools + ------------------------------------------------------------------- Tue Jul 24 08:57:10 UTC 2018 - bjorn.lie@gmail.com diff --git a/woff2.spec b/woff2.spec index 7ee4229..95a70bc 100644 --- a/woff2.spec +++ b/woff2.spec @@ -1,7 +1,7 @@ # # spec file for package woff2 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -29,7 +29,8 @@ Source0: https://github.com/google/woff2/archive/v%{version}/%{name}-%{ve Source99: baselibs.conf # PATCH-FIX-UPSTREAM woff2-fix-overflow-when-decoding-glyf.patch -- Check for overflow when decoding glyf Patch0: woff2-fix-overflow-when-decoding-glyf.patch - +# PATCH-FIX-OPENSUSE install-executables.patch -- Install woff tools +Patch1: install-executables.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -122,6 +123,10 @@ This package contains development files for %{name}. %post -n libwoff2enc%{soname} -p /sbin/ldconfig %postun -n libwoff2enc%{soname} -p /sbin/ldconfig +%files +%license LICENSE +%{_bindir}/woff2_* + %files -n libwoff2common%{soname} %license LICENSE %{_libdir}/libwoff2common.so.*