From 9addb59370da82e19f5e6d6a98bed402a40a69c1a119215f1f327e48bde56c5f Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Mon, 6 Jan 2020 02:29:38 +0000 Subject: [PATCH] Accepting request 760861 from home:StefanBruens:branches:multimedia:color_management - Use pkgconfig(libpng) BuildRequires, the build system looks for the unversioned libpng.so and falls back to its bundled version. - Remove bundled zlib source, otherwise it is built even when the system zlib is found. This triggers a fatal rpm check failure on Leap 15.x due to compiler warnings. - Also remove bundled png/tiff/axTLS sources. - Remove pkgconfig(mxml) dependency, ArgyllCMS bundles a patched one. OBS-URL: https://build.opensuse.org/request/show/760861 OBS-URL: https://build.opensuse.org/package/show/multimedia:color_management/argyllcms?expand=0&rev=44 --- argyllcms.changes | 11 +++++++++++ argyllcms.spec | 14 +++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/argyllcms.changes b/argyllcms.changes index 26eadb3..72ce723 100644 --- a/argyllcms.changes +++ b/argyllcms.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sun Jan 5 02:53:35 UTC 2020 - Stefan BrĂ¼ns + +- Use pkgconfig(libpng) BuildRequires, the build system looks for + the unversioned libpng.so and falls back to its bundled version. +- Remove bundled zlib source, otherwise it is built even when the + system zlib is found. This triggers a fatal rpm check failure on + Leap 15.x due to compiler warnings. +- Also remove bundled png/tiff/axTLS sources. +- Remove pkgconfig(mxml) dependency, ArgyllCMS bundles a patched one. + ------------------------------------------------------------------- Wed Dec 4 17:06:10 UTC 2019 - Richard Brown diff --git a/argyllcms.spec b/argyllcms.spec index d5bdf87..44d3829 100644 --- a/argyllcms.spec +++ b/argyllcms.spec @@ -29,15 +29,13 @@ Source0: http://www.argyllcms.com/%{tarname}_V%{version}_src.zip Source1: 19-color.fdi Source2: color-device-file.policy Source3: ajam-2.5.2-1.3.3.tgz -Source4: %{name}.changes Patch1: ajam-include.patch BuildRequires: libjpeg-devel BuildRequires: libtiff-devel BuildRequires: libtool BuildRequires: unzip -BuildRequires: pkgconfig(libpng12) -BuildRequires: pkgconfig(mxml) +BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xdmcp) BuildRequires: pkgconfig(xext) @@ -74,8 +72,8 @@ viewer. %package doc Summary: Argyll CMS documentation -# Does not really make sense without Argyll CMS itself Group: System/X11/Utilities +# Does not really make sense without Argyll CMS itself Requires: %{name} = %{version} %description doc @@ -93,6 +91,7 @@ cd .. # remove unused source code rm -fr usb/{*.inf,*.rtf,*.inf,*.cat,*.vcproj,*.sys,*.dsw,*.sln,*.dsp,*template*,WinCo*,winsub*,*kext*,KDRIVER_LICENSE,README_MSVC.txt,msvc,*.cmd,bin,driver,binfiles.*} +rm -fr zlib tiff png ccast/axTLS/*.c %build %define _lto_cflags %{nil} @@ -117,8 +116,8 @@ install -m 0755 -D bin/* %{buildroot}/%{_bindir} install -m 0644 -D ref/* %{buildroot}/%{_datadir}/color/argyll/ref rm -f %{buildroot}/%{_datadir}/color/argyll/License.txt -# ensure timestamp is shipped files is not changing for each rebuild (boo#916158) -TIMESTAMP=$(LC_ALL=C date -r %{SOURCE4} +%c) +# ensure timestamp in shipped files is not changing for each rebuild (boo#916158) +TIMESTAMP=$(LC_ALL=C date --date=@${SOURCE_DATE_EPOCH} +%c) sed -i -e 's/^CREATED .*/CREATED "$TIMESTAMP"/g' %{buildroot}%{_datadir}/color/argyll/ref/RefMediumGamut.gam @@ -129,16 +128,13 @@ chmod a-x *.txt chmod a-x doc/* %files -%defattr(-,root,root,-) %doc *.txt - %{_bindir}/* %dir %{_datadir}/color %{_datadir}/color/argyll %{_udevrulesdir}/55-Argyll.rules %files doc -%defattr(-,root,root,-) %doc doc/*.html doc/*.jpg doc/*.txt %changelog