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