diff --git a/hamlib-3.0-perl_install.patch b/hamlib-3.0-perl_install.patch new file mode 100644 index 0000000..623f3be --- /dev/null +++ b/hamlib-3.0-perl_install.patch @@ -0,0 +1,13 @@ +Index: bindings/Makefile.am +=================================================================== +--- bindings/Makefile.am.orig ++++ bindings/Makefile.am +@@ -63,7 +63,7 @@ distcheck-perl: Hamlib-pl.mk + $(MAKE) $(AM_MAKEFLAGS) -f Hamlib-pl.mk distcheck + + install-perl: Hamlib-pl.mk +- $(MAKE) $(AM_MAKEFLAGS) -f Hamlib-pl.mk install_site ++ $(MAKE) $(AM_MAKEFLAGS) -f Hamlib-pl.mk pure_vendor_install + + ## ExtUtils::MakeMaker says uninstall is deprecated and won't remove the files + ## anyway, so we'll have to figure out another way to remove the installed files. diff --git a/hamlib.changes b/hamlib.changes index 912f00a..54bd71b 100644 --- a/hamlib.changes +++ b/hamlib.changes @@ -3,7 +3,8 @@ Mon Apr 24 14:24:42 UTC 2017 - mpluskal@suse.com - Cleanup package - Split subpackages with libraries -- Enable tcl bindings +- Enable tcl and perl bindings: + * add hamlib-3.0-perl_install.patch ------------------------------------------------------------------- Sun Apr 16 15:13:34 UTC 2017 - mardnh@gmx.de diff --git a/hamlib.spec b/hamlib.spec index 78f69e9..27e8e5e 100644 --- a/hamlib.spec +++ b/hamlib.spec @@ -26,10 +26,13 @@ Group: Productivity/Hamradio/Other Url: http://hamlib.sourceforge.net #Git-Clone: https://git.code.sf.net/p/hamlib/code Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE hamlib-3.0-perl_install.patch -- patch from Fedora +Patch0: hamlib-3.0-perl_install.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: makeinfo +BuildRequires: perl BuildRequires: pkgconfig BuildRequires: readline-devel BuildRequires: swig @@ -101,23 +104,34 @@ Group: Development/Languages/Tcl Hamlib provides a consistent interface for programmers wanting to incorporate radio control in their programs. +%package -n perl-Hamlib +Summary: Perl bindings for Hamlib +Group: Development/Languages/Perl + +%description -n perl-Hamlib +Hamlib provides a consistent interface for programmers wanting to incorporate +radio control in their programs. + %prep %setup -q +%patch0 %build autoreconf -fiv %configure \ - --without-perl-binding \ + --with-perl-binding \ --with-tcl-binding \ - --with-xml-support \ --with-lua-binding \ - --with-python-binding + --with-python-binding \ + --with-xml-support make %{?_smp_mflags} V=1 %install %make_install find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print +rm %{buildroot}%{perl_vendorarch}/auto/Hamlib/.packlist + mkdir -p %{buildroot}%{_docdir} mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}%{_docdir} @@ -179,11 +193,14 @@ mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}%{_docdir} %defattr(-,root,root) %{python_sitearch}/Hamlib.* %{python_sitearch}/_Hamlib.* -%exclude %{python_sitearch}/_Hamlib.a %files -n tcl-Hamlib %defattr(-,root,root) %dir %{_libdir}/tcl/Hamlib %{_libdir}/tcl/Hamlib/* +%files -n perl-Hamlib +%defattr(-,root,root) +%{perl_vendorarch}/* + %changelog