[packages/perl-Gtk2-SourceView] - updated to 1.013, deprecated now - separated -devel package - added build patch and disable obsole

qboosh qboosh at pld-linux.org
Sun Jun 20 08:38:24 CEST 2021


commit 1fb7b3fc88186c2ba9c3b3c87e5f8877d162af4d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 20 08:41:07 2021 +0200

    - updated to 1.013, deprecated now
    - separated -devel package
    - added build patch and disable obsolete printjob API to fix build

 perl-Gtk2-SourceView-build.patch | 45 ++++++++++++++++++++++++++++++++++++
 perl-Gtk2-SourceView.spec        | 50 +++++++++++++++++++++++++++++++---------
 2 files changed, 84 insertions(+), 11 deletions(-)
---
diff --git a/perl-Gtk2-SourceView.spec b/perl-Gtk2-SourceView.spec
index 26a34dd..cd37804 100644
--- a/perl-Gtk2-SourceView.spec
+++ b/perl-Gtk2-SourceView.spec
@@ -7,19 +7,20 @@
 Summary:	Perl gtksourceview bindings
 Summary(pl.UTF-8):	Wiązania gtksourceview dla Perla
 Name:		perl-Gtk2-SourceView
-Version:	1.000
+Version:	1.013
 Release:	1
-License:	LGPL
+License:	LGPL v2+
 Group:		Development/Languages/Perl
-Source0:	http://dl.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5:	35f859153d9c8a41260f98ad969fcb78
+Source0:	https://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	91e0878718f3f13815c66935ba77ab0f
+Patch0:		%{name}-build.patch
 URL:		http://gtk2-perl.sourceforge.net/
 BuildRequires:	gtksourceview-devel >= 1.7.2
 BuildRequires:	perl-ExtUtils-Depends >= 0.205
 BuildRequires:	perl-ExtUtils-PkgConfig >= 1.07
-BuildRequires:	perl-Glib >= 1.132
-BuildRequires:	perl-Gnome2-Print >= 0.951
-BuildRequires:	perl-Gtk2 >= 1.133
+BuildRequires:	perl-Glib-devel >= 1.132
+BuildRequires:	perl-Gnome2-Print-devel >= 0.951
+BuildRequires:	perl-Gtk2-devel >= 1.133
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
 BuildRequires:	rpmbuild(macros) >= 1.745
@@ -31,11 +32,35 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 This module provides Perl access to gtksourceview library.
 
+Note: this module is deprecated and no longer maintained.
+
 %description -l pl.UTF-8
 Ten moduł daje dostęp z poziomu Perla do biblioteki gtksourceview.
 
+Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany.
+
+%package devel
+Summary:	Development files for Perl Gtk2-SourceView bindings
+Summary(pl.UTF-8):	Pliki programistyczne wiązań Gtk2-SourceView dla Perla
+Group:		Development/Languages/Perl
+Requires:	%{name} = %{version}-%{release}
+Requires:	gtksourceview-devel >= 1.7.2
+Requires:	perl-Cairo-devel
+Requires:	perl-Glib-devel >= 1.132
+Requires:	perl-Gnome2-Print-devel >= 0.951
+Requires:	perl-Gtk2-devel >= 1.133
+
+%description devel
+Development files for Perl Gtk2-SourceView bindings.
+
+%description devel -l pl.UTF-8
+Pliki programistyczne wiązań Gtk2-SourceView dla Perla.
+
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
+
+%{__rm} xs/GtkSourcePrintJob.xs
 
 %build
 %{__perl} Makefile.PL \
@@ -53,7 +78,7 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Gtk2/SourceView/*.pod
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Gtk2/SourceView/*.pod
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -63,7 +88,10 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS README ChangeLog
 %{perl_vendorarch}/Gtk2/SourceView.pm
 %dir %{perl_vendorarch}/Gtk2/SourceView
-%{perl_vendorarch}/Gtk2/SourceView/Install
 %dir %{perl_vendorarch}/auto/Gtk2/SourceView
-%attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/SourceView/*.so
-%{_mandir}/man3/*
+%attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/SourceView/SourceView.so
+%{_mandir}/man3/Gtk2::SourceView*.3pm*
+
+%files devel
+%defattr(644,root,root,755)
+%{perl_vendorarch}/Gtk2/SourceView/Install
diff --git a/perl-Gtk2-SourceView-build.patch b/perl-Gtk2-SourceView-build.patch
new file mode 100644
index 0000000..c64538b
--- /dev/null
+++ b/perl-Gtk2-SourceView-build.patch
@@ -0,0 +1,45 @@
+--- Gtk2-SourceView-1.013/Makefile.PL.orig	2021-01-11 08:14:56.000000000 +0100
++++ Gtk2-SourceView-1.013/Makefile.PL	2021-06-20 08:18:08.368087422 +0200
+@@ -45,8 +45,8 @@
+ 
+ mkdir 'build', 0777;
+ 
+-#our %pkgcfg = ExtUtils::PkgConfig->find ('gtksourceview-1.0 >= '
+-#				     .$build_reqs{GtkSourceView});
++our %pkgcfg = ExtUtils::PkgConfig->find ('gtksourceview-1.0 >= '
++				     .$build_reqs{GtkSourceView});
+ 
+ # now we're ready to start creating the makefile.
+ # we need to use ExtUtils::Depends to get relevant information out of
+@@ -62,8 +62,8 @@
+     Glib::MakeHelper->do_pod_files (@xs_files),
+ );
+ 
+-#ExtUtils::PkgConfig->write_version_macros ("build/gtksourceviewperl-version.h",
+-#                                           'gtksourceview-1.0' => 'GTK_SOURCE_VIEW');
++ExtUtils::PkgConfig->write_version_macros ("build/gtksourceviewperl-version.h",
++                                           'gtksourceview-1.0' => 'GTK_SOURCE_VIEW');
+ 
+ #
+ # autogeneration
+@@ -72,8 +72,8 @@
+ Gtk2::CodeGen->write_boot (ignore => '^Gtk2::SourceView$');
+ 
+ my $sview = ExtUtils::Depends->new ('Gtk2::SourceView', 'Gnome2::Print', 'Gtk2', 'Glib');
+-#$sview->set_inc ($pkgcfg{cflags} . ' -I./build ');
+-#$sview->set_libs ($pkgcfg{libs});
++$sview->set_inc ($pkgcfg{cflags} . ' -I./build ');
++$sview->set_libs ($pkgcfg{libs});
+ $sview->add_xs (@xs_files);
+ $sview->add_pm (%pm_files);
+ my $cwd = cwd();
+--- Gtk2-SourceView-1.013/gtksourceviewperl.h.orig	2020-10-18 06:06:53.000000000 +0200
++++ Gtk2-SourceView-1.013/gtksourceviewperl.h	2021-06-20 08:20:46.893895280 +0200
+@@ -29,7 +29,6 @@
+ #include <gtksourceview/gtksourcelanguage.h>
+ #include <gtksourceview/gtksourcelanguagesmanager.h>
+ #include <gtksourceview/gtksourcemarker.h>
+-#include <gtksourceview/gtksourceprintjob.h>
+ #include <gtksourceview/gtksourcestylescheme.h>
+ #include <gtksourceview/gtksourcetag.h>
+ #include <gtksourceview/gtksourcetagstyle.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Gtk2-SourceView.git/commitdiff/1fb7b3fc88186c2ba9c3b3c87e5f8877d162af4d



More information about the pld-cvs-commit mailing list