From ba587e831778ba3746835048d6d571b4374ee0df40ff4752f967ff70371dcbd5 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 9 Mar 2023 05:47:45 +0000 Subject: [PATCH] Accepting request 1070192 from home:pluskalm:branches:graphics - Build AVX2 enabled hwcaps library for x86_64-v3 - Modernise spec file OBS-URL: https://build.opensuse.org/request/show/1070192 OBS-URL: https://build.opensuse.org/package/show/graphics/libmng?expand=0&rev=23 --- libmng.changes | 6 ++++++ libmng.spec | 18 +++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/libmng.changes b/libmng.changes index 5d6ed73..3020f94 100644 --- a/libmng.changes +++ b/libmng.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 8 14:02:45 UTC 2023 - Martin Pluskal + +- Build AVX2 enabled hwcaps library for x86_64-v3 +- Modernise spec file + ------------------------------------------------------------------- Wed May 4 09:08:56 UTC 2022 - Marcus Meissner diff --git a/libmng.spec b/libmng.spec index 9bcb7ae..196315a 100644 --- a/libmng.spec +++ b/libmng.spec @@ -1,7 +1,7 @@ # # spec file for package libmng # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -31,9 +31,9 @@ BuildRequires: cmake BuildRequires: libjpeg-devel BuildRequires: liblcms2-devel BuildRequires: man -BuildRequires: pkg-config +BuildRequires: pkgconfig BuildRequires: zlib-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{?suse_build_hwcaps_libs} %description This library can handle MNG and JNG formats that contain animated @@ -62,8 +62,7 @@ pictures. These formats should replace the GIF format. This package contains the static library and the header files. %prep -%setup -q -%patch0 +%autosetup -p0 %build # This is not zlib licensed and unused, just as a caution, bnc#744320 @@ -74,23 +73,20 @@ rm -rf contrib -DMNG_INSTALL_DOC_DIR=%{_docdir}/%{name} \ -DBUILD_MAN=ON \ -DBUILD_STATIC_LIBS=OFF .. - -make %{?_smp_mflags} +%cmake_build %install %cmake_install %post -n %{lname} -p /sbin/ldconfig - %postun -n %{lname} -p /sbin/ldconfig %files -n %{lname} -%defattr(-,root,root) -%doc LICENSE README doc/doc.readme doc/libmng.txt +%license LICENSE +%doc README doc/doc.readme doc/libmng.txt %{_libdir}/libmng.so.* %files devel -%defattr(-,root,root) %{_includedir}/*.h %{_mandir}/*/* %doc %{_docdir}/libmng/