File project.diff of Package libjansson

--- libjansson.changes.orig
+++ libjansson.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Thu Oct 13 15:19:22 UTC 2022 - Michal Kubecek <mkubecek@suse.cz>
+
+- fix SLE11 build
+
+-------------------------------------------------------------------
 Tue Jan 18 21:11:51 UTC 2022 - Antoine Belvire <antoine.belvire@opensuse.org>
 
 - Update to 2.14:
@@ -106,6 +111,11 @@ Wed Mar  1 16:04:10 UTC 2017 - coolo@sus
      implementation
 
 -------------------------------------------------------------------
+Tue Jan 12 10:01:49 UTC 2016 - mkubecek@suse.cz
+
+- fix build on SLE11 SP2 and older
+
+-------------------------------------------------------------------
 Wed Nov 05 10:18:23 UTC 2014 - efimovov@gmail.com
 
 - Update to new upstream release 2.7
--- libjansson.spec.orig
+++ libjansson.spec
@@ -31,6 +31,10 @@ Source2:        https://github.com/akher
 Source3:        %{name}.keyring
 BuildRequires:  pkgconfig
 
+%if 0%{?suse_version} < 1130
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%endif
+
 %description
 Jansson is a C library for encoding, decoding and manipulating JSON data.
 It features:
@@ -72,10 +76,13 @@ It features:
 
 %build
 %configure --disable-static
+%if 0%{!?make_build:1}
+%define make_build make %{?_smp_mflags}
+%endif
 %make_build
 
 %install
-%make_install
+%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
 find %{buildroot} -type f -name "*.la" -delete -print
 
 %check
@@ -85,9 +92,11 @@ make check
 %postun -n %{lname} -p /sbin/ldconfig
 
 %files -n %{lname}
+%defattr(-,root,root)
 %{_libdir}/libjansson.so.4*
 
 %files devel
+%defattr(-,root,root)
 %{_includedir}/jansson.h
 %{_includedir}/jansson_config.h
 %{_libdir}/libjansson.so
openSUSE Build Service is sponsored by