[packages/perl-Gtk2-Html2] - updated to 0.06, deprecated now - added build patch (use pkg-config data to build) - separated -de
qboosh
qboosh at pld-linux.org
Wed Jun 23 20:33:10 CEST 2021
commit 96fd31178962328912a00212eb1e9e44de5398ab
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jun 23 20:35:58 2021 +0200
- updated to 0.06, deprecated now
- added build patch (use pkg-config data to build)
- separated -devel package
perl-Gtk2-Html2-build.patch | 24 ++++++++++++++++++++++++
perl-Gtk2-Html2.spec | 39 ++++++++++++++++++++++++++++++++-------
2 files changed, 56 insertions(+), 7 deletions(-)
---
diff --git a/perl-Gtk2-Html2.spec b/perl-Gtk2-Html2.spec
index f5d6633..85fbd4e 100644
--- a/perl-Gtk2-Html2.spec
+++ b/perl-Gtk2-Html2.spec
@@ -6,18 +6,19 @@
Summary: Gtk2::Html2 - Perl interface to gtkhtml2 library
Summary(pl.UTF-8): Gtk2::Html2 - perlowy interfejs do biblioteki gtkhtml2
Name: perl-Gtk2-Html2
-Version: 0.04
+Version: 0.06
Release: 1
-License: LGPL
+License: LGPL v2+
Group: Development/Languages/Perl
-Source0: http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
-# Source0-md5: f6e9bc1d93c9de735f70801912855ded
+Source0: https://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
+# Source0-md5: 827b00137fcee6372cb7e07c9a3c0a9f
+Patch0: %{name}-build.patch
URL: http://gtk2-perl.sourceforge.net/
BuildRequires: libgtkhtml-devel >= 2.0.0
BuildRequires: perl-ExtUtils-Depends >= 0.200
BuildRequires: perl-ExtUtils-PkgConfig >= 0.1
-BuildRequires: perl-Glib >= 1.040
-BuildRequires: perl-Gtk2 >= 1.040
+BuildRequires: perl-Glib-devel >= 1.040
+BuildRequires: perl-Gtk2-devel >= 1.040
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.745
@@ -30,12 +31,33 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
The Gtk2::Html2 extension allows a Perl developer to use the gtkhtml2
HTML display widget with perl-Gtk2.
+Note: this module is deprecated and no longer maintained.
+
%description -l pl.UTF-8
Moduł Gtk2::Html2 pozwala programistom perlowym używać widgetu
wyświetlającego HTML gtkhtml2 wraz z modułem perl-Gtk2.
+Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany.
+
+%package devel
+Summary: Development files for Perl Gtk2-Html2 bindings
+Summary(pl.UTF-8): Pliki programistyczne wiązań Gtk2-Html2 dla Perla
+Group: Development/Languages/Perl
+Requires: %{name} = %{version}-%{release}
+Requires: libgtkhtml-devel >= 2.0.0
+Requires: perl-Cairo-devel
+Requires: perl-Glib-devel >= 1.040
+Requires: perl-Gtk2-devel >= 1.040
+
+%description devel
+Development files for Perl Gtk2-Html2 bindings.
+
+%description devel -l pl.UTF-8
+Pliki programistyczne wiązań Gtk2-Html2 dla Perla.
+
%prep
%setup -q -n %{pnam}-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL \
@@ -63,7 +85,10 @@ rm -rf $RPM_BUILD_ROOT
%doc AUTHORS ChangeLog NEWS README TODO
%{perl_vendorarch}/Gtk2/Html2.pm
%dir %{perl_vendorarch}/Gtk2/Html2
-%{perl_vendorarch}/Gtk2/Html2/Install
%dir %{perl_vendorarch}/auto/Gtk2/Html2
%attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/Html2/Html2.so
%{_mandir}/man3/Gtk2::Html2*.3pm*
+
+%files devel
+%defattr(644,root,root,755)
+%{perl_vendorarch}/Gtk2/Html2/Install
diff --git a/perl-Gtk2-Html2-build.patch b/perl-Gtk2-Html2-build.patch
new file mode 100644
index 0000000..1c60a97
--- /dev/null
+++ b/perl-Gtk2-Html2-build.patch
@@ -0,0 +1,24 @@
+--- Gtk2-Html2-0.06/Makefile.PL.orig 2021-01-12 01:08:11.000000000 +0100
++++ Gtk2-Html2-0.06/Makefile.PL 2021-06-23 20:32:09.665288362 +0200
+@@ -43,8 +43,8 @@
+ exit 1; # not reached
+ }
+
+-#my %pkgcfg = ExtUtils::PkgConfig->find ('libgtkhtml-2.0 >= '
+-# . $build_reqs{gtkhtml2});
++my %pkgcfg = ExtUtils::PkgConfig->find ('libgtkhtml-2.0 >= '
++ . $build_reqs{gtkhtml2});
+
+ mkdir 'build', 0777;
+
+@@ -64,8 +64,8 @@
+ # will chain from this one.
+
+ my $gtkhtml2 = ExtUtils::Depends->new ('Gtk2::Html2', 'Gtk2');
+-#$gtkhtml2->set_inc ($pkgcfg{cflags});
+-#$gtkhtml2->set_libs ($pkgcfg{libs});
++$gtkhtml2->set_inc ($pkgcfg{cflags});
++$gtkhtml2->set_libs ($pkgcfg{libs});
+ $gtkhtml2->add_xs (@xs_files);
+ $gtkhtml2->add_pm ('Html2.pm' => '$(INST_LIBDIR)/Html2.pm');
+ $gtkhtml2->add_typemaps (File::Spec->catfile(cwd(), 'build/gtkhtml2perl.typemap'));
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Gtk2-Html2.git/commitdiff/96fd31178962328912a00212eb1e9e44de5398ab
More information about the pld-cvs-commit
mailing list