Accepting request 1174652 from GNOME:Factory
- Enable test suite on x86_64 (other arches seem too flaky for now): + Add %check section and call %meson_test + Add gdk-pixbuf-jpeg-slow.patch: allow pixbuf-jpeg to run for more than 30s, by marking it as a slow test (glgo#GNOME/gdk-pixbuf!174). - Migrate package to a regular obs_scm service, no longer password protecting a zip file. The originally reported bsc#1159337 seems no longer be applicable and we prefer the easier route. - Drop unzip BuildRequires and pre_checkin.sh script. (forwarded request 1174646 from dimstar) OBS-URL: https://build.opensuse.org/request/show/1174652 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdk-pixbuf?expand=0&rev=97
This commit is contained in:
commit
5caae1f7f1
22
_service
22
_service
@ -1,9 +1,19 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
<services>
|
<services>
|
||||||
<service name="download_url" mode="manual">
|
<service name="obs_scm" mode="manual">
|
||||||
<param name="protocol">https</param>
|
<param name="scm">git</param>
|
||||||
<param name="host">download.gnome.org</param>
|
<param name="url">https://gitlab.gnome.org/GNOME/gdk-pixbuf.git</param>
|
||||||
<param name="path">sources/gdk-pixbuf/2.42/gdk-pixbuf-2.42.12.tar.xz</param>
|
<param name="revision">2.42.12</param>
|
||||||
</service>
|
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
|
||||||
<service name="set_version" mode="manual" />
|
<param name="versionrewrite-pattern">v?(.*)\+0</param>
|
||||||
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
|
<!-- <param name="changesgenerate">enable</param> -->
|
||||||
|
</service>
|
||||||
|
<service name="tar" mode="buildtime"/>
|
||||||
|
<service name="recompress" mode="buildtime">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">zst</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="manual" />
|
||||||
</services>
|
</services>
|
||||||
|
|
||||||
|
BIN
gdk-pixbuf-2.42.12.obscpio
(Stored with Git LFS)
Normal file
BIN
gdk-pixbuf-2.42.12.obscpio
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:83504138e2302916a0f5627e28b7f7505e0559a6dcf7c5bd320a68e27ab20e69
|
|
||||||
size 7798780
|
|
13
gdk-pixbuf-jpeg-slow.patch
Normal file
13
gdk-pixbuf-jpeg-slow.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/tests/meson.build b/tests/meson.build
|
||||||
|
index 37810666..eff43cc3 100644
|
||||||
|
--- a/tests/meson.build
|
||||||
|
+++ b/tests/meson.build
|
||||||
|
@@ -81,7 +81,7 @@ installed_tests = {
|
||||||
|
'suites': ['io'],
|
||||||
|
},
|
||||||
|
'pixbuf-jpeg': {
|
||||||
|
- 'suites': ['format'],
|
||||||
|
+ 'suites': ['format', 'slow'],
|
||||||
|
'skip': not enabled_loaders.contains('jpeg'),
|
||||||
|
},
|
||||||
|
'pixbuf-dpi': {
|
@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 16 13:30:50 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Enable test suite on x86_64 (other arches seem too flaky for now):
|
||||||
|
+ Add %check section and call %meson_test
|
||||||
|
+ Add gdk-pixbuf-jpeg-slow.patch: allow pixbuf-jpeg to run for
|
||||||
|
more than 30s, by marking it as a slow test
|
||||||
|
(glgo#GNOME/gdk-pixbuf!174).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 16 11:26:04 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Migrate package to a regular obs_scm service, no longer password
|
||||||
|
protecting a zip file. The originally reported bsc#1159337 seems
|
||||||
|
no longer be applicable and we prefer the easier route.
|
||||||
|
- Drop unzip BuildRequires and pre_checkin.sh script.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 15 11:49:20 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
Wed May 15 11:49:20 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
4
gdk-pixbuf.obsinfo
Normal file
4
gdk-pixbuf.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: gdk-pixbuf
|
||||||
|
version: 2.42.12
|
||||||
|
mtime: 1715739341
|
||||||
|
commit: e4315fb8553776e13d39e3f2e0ea8792db61720c
|
@ -26,16 +26,13 @@ Summary: An image loading library
|
|||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
Group: Development/Libraries/GNOME
|
Group: Development/Libraries/GNOME
|
||||||
URL: https://www.gnome.org/
|
URL: https://www.gnome.org/
|
||||||
|
Source0: %{name}-%{version}.tar.zst
|
||||||
# A file from the test suite is correctly identified by clamav to be a
|
|
||||||
# malicious BC.Gif.Exploit.Agent-1425366.Agent. This is an intentional part of
|
|
||||||
# the test suite to ensure it has no negative side effects. Change the Source0
|
|
||||||
# from tar.xz to zip to bypass clamav scanning on SLE.
|
|
||||||
Source0: %{name}-%{version}.zip
|
|
||||||
Source1: macros.gdk-pixbuf
|
Source1: macros.gdk-pixbuf
|
||||||
Source2: README.SUSE
|
Source2: README.SUSE
|
||||||
Source3: gdk-pixbuf-rpmlintrc
|
Source3: gdk-pixbuf-rpmlintrc
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
|
# PATCH-FIX-UPSTREAM gdk-pixbuf-jpeg-slow.patch -- https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/174
|
||||||
|
Patch0: gdk-pixbuf-jpeg-slow.patch
|
||||||
|
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: docutils
|
BuildRequires: docutils
|
||||||
@ -43,7 +40,6 @@ BuildRequires: libjpeg-devel
|
|||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: meson >= 0.55.3
|
BuildRequires: meson >= 0.55.3
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: unzip
|
|
||||||
BuildRequires: xsltproc
|
BuildRequires: xsltproc
|
||||||
BuildRequires: pkgconfig(gi-docgen)
|
BuildRequires: pkgconfig(gi-docgen)
|
||||||
BuildRequires: pkgconfig(glib-2.0) >= 2.56.0
|
BuildRequires: pkgconfig(glib-2.0) >= 2.56.0
|
||||||
@ -131,12 +127,8 @@ This package contains the development files for gdk-pixbuf.
|
|||||||
%lang_package
|
%lang_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -c -T -q
|
%autosetup -p1
|
||||||
unzip -P gecko %{SOURCE0}
|
|
||||||
%if "%{_lib}" == "lib64"
|
|
||||||
cp -a %{SOURCE2} .
|
cp -a %{SOURCE2} .
|
||||||
%endif
|
|
||||||
%autopatch -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%meson \
|
%meson \
|
||||||
@ -172,6 +164,11 @@ cp %{SOURCE1} %{buildroot}%{_rpmmacrodir}
|
|||||||
%endif
|
%endif
|
||||||
%define _gdk_pixbuf_query_loaders_update_cache %{_gdk_pixbuf_query_loaders} --update-cache
|
%define _gdk_pixbuf_query_loaders_update_cache %{_gdk_pixbuf_query_loaders} --update-cache
|
||||||
|
|
||||||
|
%ifarch x86_64
|
||||||
|
%check
|
||||||
|
%meson_test
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -n libgdk_pixbuf-2_0-0
|
%post -n libgdk_pixbuf-2_0-0
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%if 0
|
%if 0
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# To update the package:
|
|
||||||
## 1. update the version tags in _service
|
|
||||||
## 2. run `osc service ra`; # get the upstream release, and set the version string in spec
|
|
||||||
## 3. run `./pre_checkin.sh`; # generate the zip file
|
|
||||||
## 4. edit changelog and commit the change # the tar.xz file generated by the step 2 is not necessarily to commit
|
|
||||||
|
|
||||||
EXTRACTDIR=$(mktemp -d);
|
|
||||||
BASENAME=$(grep ^Name\: gdk-pixbuf.spec | cut -d: -f2 | sed 's/[[:space:]]//g');
|
|
||||||
VERSION=$(grep ^Version\: gdk-pixbuf.spec | cut -d: -f2 | sed 's/[[:space:]]//g');
|
|
||||||
|
|
||||||
tar xvfJ $BASENAME-$VERSION.tar.xz -C $EXTRACTDIR;
|
|
||||||
pushd $EXTRACTDIR/$BASENAME-$VERSION && zip -r -P gecko $BASENAME-$VERSION.zip * && popd && mv $EXTRACTDIR/$BASENAME-$VERSION/$BASENAME-$VERSION.zip .;
|
|
||||||
rm -fr $EXTRACTDIR && rm -fr $BASENAME-$VERSION.tar.xz;
|
|
Loading…
x
Reference in New Issue
Block a user