Hello community,

here is the log from the commit of package libharu for openSUSE:Factory checked 
in at 2018-01-19 11:51:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libharu (Old)
 and      /work/SRC/openSUSE:Factory/.libharu.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libharu"

Fri Jan 19 11:51:01 2018 rev:8 rq:560502 version:2.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/libharu/libharu.changes  2015-12-16 
17:42:28.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libharu.new/libharu.changes     2018-01-19 
11:51:34.732260113 +0100
@@ -1,0 +2,39 @@
+Fri Dec 29 00:35:47 UTC 2017 - [email protected]
+
+- Trim filler words from descriptions.
+  Drop double "support" word from feature list.
+
+-------------------------------------------------------------------
+Wed Dec 27 19:44:53 UTC 2017 - [email protected]
+
+- Update to version 2.3.0:
+  * Added support for 3dMeasures of subtype PD3 and 3DC,
+    projection annotations, ExData and javascript attached to a
+    U3D model.
+  * Added support for 1- and 2-byte UTF8 codes.
+  * Added full PDF/A1-b support.
+  * Added support for CCITT compression for B/W images.
+  * Add support for TwoPageLeft and TwoPageRight layouts.
+  * Const-ified arrays used in the sources.
+  * Fixed build with libpng 1.5.0
+  * Fixed bug in HPDF_GetContents() - isize variable was not
+    initialized. 
+  * Fixed possible endless loop in PNG handling code.
+  * Fixed several issues based on the warnings generated by
+    clang-analyzer.
+  * Fixed quite a number of warnings.
+  * Added 'd' postfix to debug build, fixed wrong filename.
+  * Fixed HPDF_Text_Rect() not to split words in some obscure
+    cases.
+- Switch to cmake-based build; add BuildRequires: cmake. 
+- Drop patches incorporated upstream:
+  * libharu-2.2.1-png15.patch
+  * libharu-2.2.1-png16.patch
+- Add libharu-cmake.patch to fix installation locations when
+  using cmake-based build.
+- Add libharu-link-libm.patch to add -libm to linker flag when
+  building using cmake.
+- Add libharu-cmake.patch to fix install locations when building
+  using cmake.
+
+-------------------------------------------------------------------

Old:
----
  libharu-2.2.1-png15.patch
  libharu-2.2.1-png16.patch
  libharu-2.2.1.tar.bz2

New:
----
  RELEASE_2_3_0.tar.gz
  libharu-cmake.patch
  libharu-link-libm.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libharu.spec ++++++
--- /var/tmp/diff_new_pack.fj6t9Q/_old  2018-01-19 11:51:35.312232775 +0100
+++ /var/tmp/diff_new_pack.fj6t9Q/_new  2018-01-19 11:51:35.316232586 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libharu
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,59 +16,59 @@
 #
 
 
+%define relver 2_3_0
 Name:           libharu
-Version:        2.2.1
+Version:        2.3.0
 Release:        0
-%define lname  libhpdf-2_2_1
-Summary:        Cross platform library for generating PDF files
+%define lname  libhpdf%{relver}
+Summary:        Library for generating PDF files
 License:        Zlib
 Group:          Productivity/Office/Other
 Url:            http://libharu.org
-Source0:        http://libharu.org/files/%{name}-%{version}.tar.bz2
+Source0:        
https://github.com/libharu/libharu/archive/RELEASE_%{relver}.tar.gz
+# PATCH-FIX-UPSTREAM libharu-link-libm.patch gh#libharu/libharu#158 
[email protected] -- Add libm to linker argument to fix build failures
+Patch0:         libharu-link-libm.patch
+# PATCH-FIX-UPSTREAM libharu-cmake.patch [email protected] -- Fix 
installation locations when using cmake-based build; patch taken from Fedora
+Patch1:         libharu-cmake.patch
 Source1:        %{name}-rpmlintrc
-# PATCH-FIX-UPSTREAM libharu-2.2.1-png15.patch -- fix build with libpng 1.5.0, 
commit e5bf8b01f6
-Patch0:         libharu-2.2.1-png15.patch
-# PATCH-FIX-UPSTREAM libharu-2.2.1-png16.patch -- fix build with libpng 1.6.1, 
sent to [email protected]
-Patch1:         libharu-2.2.1-png16.patch
+BuildRequires:  cmake
 BuildRequires:  libpng-devel
 BuildRequires:  zlib-devel
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
-libHaru is a free, cross platform, open source library for generating PDF 
files.
+libHaru is a library for generating PDF files.
 It supports the following features:
 - Generating PDF files with lines, text, images.
 - Outline, text annotation, link annotation.
 - Compressing document with deflate-decode.
-- Embedding PNG, Jpeg images.
+- Embedding PNG, JPEG images.
 - Embedding Type1 font and TrueType font.
 - Creating encrypted PDF files.
 - Using various character sets (ISO8859-1~16, MSCP1250~8, KOI8-R).
-- Supporting CJK fonts and encodings.
+- CJK fonts and encodings.
 
 %package -n %lname
-Summary:        Cross platform library for generating PDF files
-Group:          System/Libraries
+Summary:        Library for generating PDF files
 # used wrong shlib packaging name..
-Obsoletes:      libharu-2_2_1 < %version-%release
-Provides:       libharu-2_2_1 = %version-%release
+Group:          System/Libraries
 
 %description -n %lname
-libHaru is a free, cross platform, open source library for generating PDF 
files.
+libHaru is a library for generating PDF files.
 It supports the following features:
 - Generating PDF files with lines, text, images.
 - Outline, text annotation, link annotation.
 - Compressing document with deflate-decode.
-- Embedding PNG, Jpeg images.
+- Embedding PNG, JPEG images.
 - Embedding Type1 font and TrueType font.
 - Creating encrypted PDF files.
 - Using various character sets (ISO8859-1~16, MSCP1250~8, KOI8-R).
-- Supporting CJK fonts and encodings.
+- CJK fonts and encodings.
 
 %package        devel
 Summary:        Development files for libharu
 Group:          Development/Libraries/C and C++
-Requires:       %lname = %version
+Requires:       %{lname} = %{version}
 Requires:       libpng-devel
 Requires:       zlib-devel
 
@@ -77,18 +77,18 @@
 applications that use %{name}.
 
 %prep
-%setup -q
+%setup -q -n %{name}-RELEASE_%{relver}
 %patch0 -p1
 %patch1 -p1
 # fix wrong-file-end-of-line-encoding
 sed -i 's/\r$//' README
 
 %build
-%configure --disable-static
-make %{?_smp_mflags}
+%cmake -DLIBHPDF_STATIC=NO
+%make_jobs
 
 %install
-%make_install
+%cmake_install
 find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
 
 %post -n %{lname} -p /sbin/ldconfig
@@ -98,11 +98,12 @@
 %files -n %{lname}
 %defattr(-,root,root)
 %doc README
-%{_libdir}/libhpdf-%{version}.so
+%{_libdir}/libhpdf.so.%{version}
 
 %files devel
 %defattr(-,root,root)
 %{_includedir}/*.h
 %{_libdir}/libhpdf.so
+%{_datadir}/%{name}/
 
 %changelog

++++++ libharu-cmake.patch ++++++
diff -urp libharu-RELEASE_2_3_0/CMakeLists.txt 
libharu-RELEASE_2_3_0_cmake/CMakeLists.txt
--- libharu-RELEASE_2_3_0/CMakeLists.txt        2013-10-30 20:11:59.000000000 
+0700
+++ libharu-RELEASE_2_3_0_cmake/CMakeLists.txt  2017-06-01 15:56:06.533552795 
+0700
@@ -25,7 +25,7 @@ endif(MSVC)
 
 # information about libharu
 set(LIBHPDF_MAJOR 2)
-set(LIBHPDF_MINOR 2)
+set(LIBHPDF_MINOR 3)
 set(LIBHPDF_PATCH 0)
 set(LIBHPDF_VERSION ${LIBHPDF_MAJOR}.${LIBHPDF_MINOR}.${LIBHPDF_PATCH})
 set(LIBHPDF_DESCRIPTION "libHaru is a free, cross platform, open source 
library for generating PDF files.")
@@ -210,9 +210,9 @@ set(
 install(FILES ${haru_HDRS} DESTINATION include)
 
 # install various files
-install(FILES README CHANGES INSTALL DESTINATION .)
+install(FILES README CHANGES INSTALL DESTINATION 
${SHARE_INSTALL_PREFIX}/libharu)
 if(NOT DEVPAK)
-  install(DIRECTORY if DESTINATION .)
+  install(DIRECTORY if DESTINATION ${SHARE_INSTALL_PREFIX}/libharu)
 endif(NOT DEVPAK)
 if(DEVPAK)
   install(FILES ${CMAKE_BINARY_DIR}/libharu.DevPackage DESTINATION .)
diff -urp libharu-RELEASE_2_3_0/src/CMakeLists.txt 
libharu-RELEASE_2_3_0_cmake/src/CMakeLists.txt
--- libharu-RELEASE_2_3_0/src/CMakeLists.txt    2013-10-30 20:11:59.000000000 
+0700
+++ libharu-RELEASE_2_3_0_cmake/src/CMakeLists.txt      2017-06-01 
16:08:45.425105746 +0700
@@ -90,11 +90,13 @@ if(LIBHPDF_SHARED)
   target_link_libraries(${LIBHPDF_NAME} ${ADDITIONAL_LIBRARIES})
   if(WIN32 AND NOT CYGWIN)
        set_target_properties(${LIBHPDF_NAME} PROPERTIES DEFINE_SYMBOL 
HPDF_DLL_MAKE)
+  else(WIN32 AND NOT CYGWIN)
+       set_target_properties(${LIBHPDF_NAME} PROPERTIES SOVERSION 
${LIBHPDF_VERSION})
   endif(WIN32 AND NOT CYGWIN)
   install(
     TARGETS ${LIBHPDF_NAME}
-    ARCHIVE DESTINATION lib
-    LIBRARY DESTINATION lib
+    ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+    LIBRARY DESTINATION ${LIB_INSTALL_DIR}
     RUNTIME DESTINATION bin
   )
 endif(LIBHPDF_SHARED)

++++++ libharu-link-libm.patch ++++++
Index: libharu-RELEASE_2_3_0/CMakeLists.txt
===================================================================
--- libharu-RELEASE_2_3_0.orig/CMakeLists.txt
+++ libharu-RELEASE_2_3_0/CMakeLists.txt
@@ -99,6 +99,8 @@ if(PNG_FOUND)
   set(ADDITIONAL_LIBRARIES ${ADDITIONAL_LIBRARIES} ${PNG_LIBRARIES})
 endif(PNG_FOUND)
 
+find_library(M_LIB m)
+set(ADDITIONAL_LIBRARIES ${ADDITIONAL_LIBRARIES} ${M_LIB})
 
 # =======================================================================
 # configure header files, add compiler flags

Reply via email to