Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-DBD-SQLite for openSUSE:Factory checked in at 2022-03-16 21:30:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-DBD-SQLite (Old) and /work/SRC/openSUSE:Factory/.perl-DBD-SQLite.new.25692 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DBD-SQLite" Wed Mar 16 21:30:19 2022 rev:49 rq:961839 version:1.70 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-DBD-SQLite/perl-DBD-SQLite.changes 2022-03-11 21:40:59.610058047 +0100 +++ /work/SRC/openSUSE:Factory/.perl-DBD-SQLite.new.25692/perl-DBD-SQLite.changes 2022-03-16 21:30:23.099394479 +0100 @@ -1,0 +2,6 @@ +Tue Mar 15 08:24:59 UTC 2022 - Dirk Stoecker <opens...@dstoecker.de> + +- link embedded sqlite devel files to system files +- build with internal sqlite on Leap systems + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-DBD-SQLite.spec ++++++ --- /var/tmp/diff_new_pack.79vgke/_old 2022-03-16 21:30:24.115395249 +0100 +++ /var/tmp/diff_new_pack.79vgke/_new 2022-03-16 21:30:24.123395255 +0100 @@ -21,7 +21,7 @@ Version: 1.70 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later -Summary: Self-contained RDBMS in a DBI Driver +Summary: Self Contained SQLite RDBMS in a DBI Driver URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml @@ -36,7 +36,11 @@ Requires: perl(Test::More) >= 0.88 %{perl_requires} # MANUAL BEGIN -BuildRequires: sqlite3-devel +%if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400 +%else +BuildRequires: sqlite3-devel >= 3.35 +Recommends: sqlite3-devel +%endif # MANUAL END %description @@ -76,6 +80,11 @@ %prep %autosetup -n %{cpan_name}-%{version} -p1 +# MANUAL BEGIN +%if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400 +patch -p1 --reverse <%{PATCH0} +%endif +# MANUAL END %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" @@ -87,10 +96,25 @@ %install %perl_make_install %perl_process_packlist +# MANUAL BEGIN +%if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400 +%else +ln -fs %{_includedir}/sqlite3ext.h %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/ +ln -fs %{_includedir}/sqlite3.h %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/ +rm %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/sqlite3.c +echo >%{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/sqlite3.c +chmod 444 %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/sqlite3.c +%endif +# MANUAL END %perl_gen_filelist %files -f %{name}.files %doc Changes constants.inc dbdimp_tokenizer.inc dbdimp_virtual_table.inc README %license LICENSE +# the links are ignored by perl_gen_filelist, so we need to add them manually again +%if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400 +%else +%{perl_vendorarch}/auto/share/dist/%{cpan_name}/*.h +%endif %changelog ++++++ cpanspec.yml ++++++ --- /var/tmp/diff_new_pack.79vgke/_old 2022-03-16 21:30:24.167395288 +0100 +++ /var/tmp/diff_new_pack.79vgke/_new 2022-03-16 21:30:24.171395292 +0100 @@ -10,14 +10,26 @@ patches: perl-DBD-SQLite-use-external-sqlite3.patch: -p1 PATCH-FIX-OPENSUSE use system sqlite preamble: |- - BuildRequires: sqlite3-devel -#post_prep: |- -# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` -# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL + %if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400 + %else + BuildRequires: sqlite3-devel >= 3.35 + Recommends: sqlite3-devel + %endif +post_prep: |- + %if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400 + patch -p1 --reverse <%{PATCH0} + %endif #post_build: |- # rm unused.files -#post_install: |- -# sed on %{name}.files +post_install: |- + %if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400 + %else + ln -fs %{_includedir}/sqlite3ext.h %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/ + ln -fs %{_includedir}/sqlite3.h %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/ + rm %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/sqlite3.c + echo >%{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/sqlite3.c + chmod 444 %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/sqlite3.c + %endif #license: SUSE-NonFree #skip_noarch: 1 #custom_build: |- @@ -27,8 +39,10 @@ #ignore_requires: Bizarre::Module #skip_doc: regexp_to_skip_for_doc.* #add_doc: files to add to docs -#misc: |- -#anything else to be added to spec file -#follows directly after %files section, so it can contain new blocks or also -#changes to %files section +misc: |- + # the links are ignored by perl_gen_filelist, so we need to add them manually again + %if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400 + %else + %{perl_vendorarch}/auto/share/dist/%{cpan_name}/*.h + %endif