[packages/perl-Gnome2-Rsvg] - updated to 0.12, deprecated now - added update patch (remove use of removed header) - separated -d

qboosh qboosh at pld-linux.org
Sat Jun 19 17:53:23 CEST 2021


commit c1e064367e406128158ae2a7344a4ecedf6ccc0d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 19 17:56:01 2021 +0200

    - updated to 0.12, deprecated now
    - added update patch (remove use of removed header)
    - separated -devel

 perl-Gnome2-Rsvg-update.patch | 10 ++++++++++
 perl-Gnome2-Rsvg.spec         | 33 +++++++++++++++++++++++++++++----
 2 files changed, 39 insertions(+), 4 deletions(-)
---
diff --git a/perl-Gnome2-Rsvg.spec b/perl-Gnome2-Rsvg.spec
index 7808f18..7b78124 100644
--- a/perl-Gnome2-Rsvg.spec
+++ b/perl-Gnome2-Rsvg.spec
@@ -7,12 +7,13 @@
 Summary:	Perl librsvg bindings
 Summary(pl.UTF-8):	Wiązania librsvg dla Perla
 Name:		perl-Gnome2-Rsvg
-Version:	0.11
+Version:	0.12
 Release:	1
 License:	LGPL v2.1+
 Group:		Development/Languages/Perl
-Source0:	http://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5:	ea1a2560920d7f5f18735a2df373e552
+Source0:	https://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	7aea405c022ea2d531a83e210709dc88
+Patch0:		%{name}-update.patch
 URL:		http://gtk2-perl.sourceforge.net/
 BuildRequires:	librsvg-devel >= 2.16.0
 BuildRequires:	perl-Cairo >= 1.00
@@ -32,11 +33,32 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 This module provides Perl access to librsvg 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 librsvg.
 
+Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany.
+
+%package devel
+Summary:	Development files for Perl Gnome2-Rsvg bindings
+Summary(pl.UTF-8):	Pliki programistyczne wiązań Gnome2-Rsvg dla Perla
+Group:		Development/Languages/Perl
+Requires:	%{name} = %{version}-%{release}
+Requires:	librsvg-devel >= 2.16.0
+Requires:	perl-Cairo-devel >= 1.00
+Requires:	perl-Glib-devel >= 1.140
+Requires:	perl-Gtk2-devel >= 1.140
+
+%description devel
+Development files for Perl Gnome2-Rsvg bindings.
+
+%description devel -l pl.UTF-8
+Pliki programistyczne wiązań Gnome2-Rsvg dla Perla.
+
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
@@ -63,7 +85,10 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{perl_vendorarch}/Gnome2/Rsvg.pm
 %dir %{perl_vendorarch}/Gnome2/Rsvg
-%{perl_vendorarch}/Gnome2/Rsvg/Install
 %dir %{perl_vendorarch}/auto/Gnome2/Rsvg
 %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/Rsvg/Rsvg.so
 %{_mandir}/man3/Gnome2::Rsvg*.3pm*
+
+%files devel
+%defattr(644,root,root,755)
+%{perl_vendorarch}/Gnome2/Rsvg/Install
diff --git a/perl-Gnome2-Rsvg-update.patch b/perl-Gnome2-Rsvg-update.patch
new file mode 100644
index 0000000..7225ba7
--- /dev/null
+++ b/perl-Gnome2-Rsvg-update.patch
@@ -0,0 +1,10 @@
+--- Gnome2-Rsvg-0.12/rsvg2perl.h.orig	2020-09-27 03:49:03.000000000 +0200
++++ Gnome2-Rsvg-0.12/rsvg2perl.h	2021-06-19 17:20:13.789951046 +0200
+@@ -25,7 +25,6 @@
+ #include <gtk2perl.h>
+ 
+ #include <librsvg/rsvg.h>
+-#include <librsvg/librsvg-enum-types.h>
+ 
+ #if LIBRSVG_CHECK_VERSION (2, 14, 0)
+ # include <cairo-perl.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Gnome2-Rsvg.git/commitdiff/c1e064367e406128158ae2a7344a4ecedf6ccc0d



More information about the pld-cvs-commit mailing list