]> git.pld-linux.org Git - packages/perl-Gtk2-Html2.git/commitdiff
- updated to 0.06, deprecated now master
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 23 Jun 2021 18:35:58 +0000 (20:35 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 23 Jun 2021 18:35:58 +0000 (20:35 +0200)
- added build patch (use pkg-config data to build)
- separated -devel package

perl-Gtk2-Html2-build.patch [new file with mode: 0644]
perl-Gtk2-Html2.spec

diff --git a/perl-Gtk2-Html2-build.patch b/perl-Gtk2-Html2-build.patch
new file mode 100644 (file)
index 0000000..1c60a97
--- /dev/null
@@ -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'));
index f5d6633f8fbbd37031f547c3d0a7ccde324b76f8..85fbd4e39cd56a9f5689cb443681918ce6e8a0a8 100644 (file)
@@ -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
This page took 0.107476 seconds and 4 git commands to generate.