Dominique Leuenberger 2023-01-07 16:17:38 +00:00 committed by Git OBS Bridge
commit 6d5d059fbc
3 changed files with 33 additions and 3 deletions

20
install-executables.patch Normal file
View File

@ -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

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 6 11:21:56 UTC 2023 - Ferdinand Thiessen <rpm@fthiessen.de>
- Add install-executables.patch to install woff2 tools
-------------------------------------------------------------------
Tue Jul 24 08:57:10 UTC 2018 - bjorn.lie@gmail.com

View File

@ -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.*