Accepting request 1188675 from graphics
OBS-URL: https://build.opensuse.org/request/show/1188675 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gegl?expand=0&rev=75
This commit is contained in:
commit
cea683e272
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 19 07:40:24 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Add normalize-gir.pl to strip details about build machines
|
||||
to achive reproducible builds
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 22 01:59:19 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
|
@ -33,6 +33,7 @@ License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
||||
Group: Productivity/Graphics/Other
|
||||
URL: http://gegl.org/
|
||||
Source0: https://download.gimp.org/pub/gegl/0.4/%{name}-%{version}.tar.xz
|
||||
Source1: normalize-gir.pl
|
||||
Source99: baselibs.conf
|
||||
|
||||
BuildRequires: ImageMagick
|
||||
@ -186,6 +187,7 @@ export LD_PRELOAD="/usr/lib64/libgomp.so.1"
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
perl -i %{SOURCE1} %{buildroot}%{_datadir}/gir-1.0/Gegl-0.4.gir
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
%find_lang %{name}-0.4 %{?no_lang_C}
|
||||
|
||||
|
20
normalize-gir.pl
Normal file
20
normalize-gir.pl
Normal file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/perl -w
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
# written by Bernhard M. Wiedemann in 2024
|
||||
# to normalize the .gir file values
|
||||
# for reproducible builds of the gegl package
|
||||
use strict;
|
||||
|
||||
my $property = "";
|
||||
while(<>) {
|
||||
if(m/<property name="([^"]+)"/) {
|
||||
$property = $1;
|
||||
}
|
||||
if($property eq "threads") {
|
||||
s/(default-value=)"[^"]+"/$1"4"/;
|
||||
}
|
||||
if($property eq "tile-cache-size") {
|
||||
s/(default-value=)"[^"]+"/$1"4000000000"/;
|
||||
}
|
||||
print;
|
||||
}
|
Loading…
Reference in New Issue
Block a user