commit 3ed4650961bfc6981852fae38c11675a7a2a5903
Author: Jakub Bogusz <[email protected]>
Date:   Sat Jun 19 17:15:40 2021 +0200

    - up to 0.11, deprecated now; won't build anyway because of gtkmozembed 
removal 10ys ago

 perl-Gtk2-MozEmbed.spec | 45 +++++++++++++++++++++++++++++++++++++--------
 1 file changed, 37 insertions(+), 8 deletions(-)
---
diff --git a/perl-Gtk2-MozEmbed.spec b/perl-Gtk2-MozEmbed.spec
index 4239573..31dfc7d 100644
--- a/perl-Gtk2-MozEmbed.spec
+++ b/perl-Gtk2-MozEmbed.spec
@@ -1,32 +1,34 @@
 #
 # Conditional build:
 %bcond_with    tests   # perform "make test" (requires X server)
+%bcond_without dom     # DOM feature
 #
 %define                pnam    Gtk2-MozEmbed
 Summary:       Gtk2::MozEmbed - Mozilla embedding in Perl
 Summary(pl.UTF-8):     Gtk2::MozEmbed - osadzanie Mozilli w Perlu
 Name:          perl-Gtk2-MozEmbed
-Version:       0.09
-Release:       1
+Version:       0.11
+Release:       0.1
 License:       LGPL v2.1+
 Group:         Development/Languages/Perl
-Source0:       
http://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
-# Source0-md5: 8c391fbe1ebf23a0af22d5ad3b571f19
+Source0:       
https://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
+# Source0-md5: 8f5a2b918e4784b87370b0225ae551e8
 URL:           http://gtk2-perl.sourceforge.net/
 BuildRequires: libstdc++-devel
 BuildRequires: perl-ExtUtils-Depends >= 0.200
 BuildRequires: perl-ExtUtils-PkgConfig >= 1.03
-BuildRequires: perl-Mozilla-DOM >= 0.01
+%{?with_dom:BuildRequires:     perl-Mozilla-DOM >= 0.01}
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: perl-Glib-devel >= 1.180
 BuildRequires: perl-Gtk2-devel >= 1.081
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildRequires: rpmbuild(macros) >= 1.745
 BuildRequires: xulrunner-devel >= 1.8
-Requires:      libgtkhtml >= 2.0.0
+# needs gtkmozembed API
+BuildRequires: xulrunner-devel < 2:2.2
 Requires:      perl-Glib >= 1.180
 Requires:      perl-Gtk2 >= 1.081
-Requires:      perl-Mozilla-DOM >= 0.01
+%{?with_dom:Requires:  perl-Mozilla-DOM >= 0.01}
 %requires_eq   xulrunner-libs
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -35,13 +37,37 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 This module allows you to use the Mozilla embedding widget from Perl.
 
+Note: this module is deprecated and no longer maintained.
+
 %description -l pl.UTF-8
 Ten moduł pozwala używanie widgetu osadzającego Mozillę z poziomu
 Perla.
 
+Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany.
+
+%package devel
+Summary:       Development files for Perl Gtk2-MozEmbed bindings
+Summary(pl.UTF-8):     Pliki programistyczne wiązań Gtk2-MozEmbed dla Perla
+Group:         Development/Languages/Perl
+Requires:      %{name} = %{version}-%{release}
+Requires:      perl-Cairo-devel
+Requires:      perl-Glib-devel >= 1.120
+Requires:      perl-Gtk2-devel >= 1.121
+Requires:      xulrunner-devel >= 1.8
+
+%description devel
+Development files for Perl Gtk2-MozEmbed bindings.
+
+%description devel -l pl.UTF-8
+Pliki programistyczne wiązań Gtk2-MozEmbed dla Perla.
+
 %prep
 %setup -q -n %{pnam}-%{version}
 
+# rely only on bcond setting
+%{__sed} -i -e '/^my \$use_dom/ s/1/%{with dom}/' Makefile.PL
+%{__sed} -i -e '/^unless.*use Mozilla::DOM/,/^}/ d' Makefile.PL
+
 %build
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
@@ -68,7 +94,10 @@ rm -rf $RPM_BUILD_ROOT
 %doc ChangeLog.pre-git NEWS README
 %{perl_vendorarch}/Gtk2/MozEmbed.pm
 %dir %{perl_vendorarch}/Gtk2/MozEmbed
-%{perl_vendorarch}/Gtk2/MozEmbed/Install
 %dir %{perl_vendorarch}/auto/Gtk2/MozEmbed
 %attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/MozEmbed/MozEmbed.so
 %{_mandir}/man3/Gtk2::MozEmbed*.3pm*
+
+%files devel
+%defattr(644,root,root,755)
+%{perl_vendorarch}/Gtk2/MozEmbed/Install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Gtk2-MozEmbed.git/commitdiff/3ed4650961bfc6981852fae38c11675a7a2a5903

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to