- Enable tcl and perl bindings:
* add hamlib-3.0-perl_install.patch OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/hamlib?expand=0&rev=3
This commit is contained in:
parent
78dfa9a941
commit
a41fbedee5
13
hamlib-3.0-perl_install.patch
Normal file
13
hamlib-3.0-perl_install.patch
Normal file
@ -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.
|
@ -3,7 +3,8 @@ Mon Apr 24 14:24:42 UTC 2017 - mpluskal@suse.com
|
|||||||
|
|
||||||
- Cleanup package
|
- Cleanup package
|
||||||
- Split subpackages with libraries
|
- 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
|
Sun Apr 16 15:13:34 UTC 2017 - mardnh@gmx.de
|
||||||
|
25
hamlib.spec
25
hamlib.spec
@ -26,10 +26,13 @@ Group: Productivity/Hamradio/Other
|
|||||||
Url: http://hamlib.sourceforge.net
|
Url: http://hamlib.sourceforge.net
|
||||||
#Git-Clone: https://git.code.sf.net/p/hamlib/code
|
#Git-Clone: https://git.code.sf.net/p/hamlib/code
|
||||||
Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
|
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: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: makeinfo
|
BuildRequires: makeinfo
|
||||||
|
BuildRequires: perl
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
@ -101,23 +104,34 @@ Group: Development/Languages/Tcl
|
|||||||
Hamlib provides a consistent interface for programmers wanting to incorporate
|
Hamlib provides a consistent interface for programmers wanting to incorporate
|
||||||
radio control in their programs.
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
%configure \
|
%configure \
|
||||||
--without-perl-binding \
|
--with-perl-binding \
|
||||||
--with-tcl-binding \
|
--with-tcl-binding \
|
||||||
--with-xml-support \
|
|
||||||
--with-lua-binding \
|
--with-lua-binding \
|
||||||
--with-python-binding
|
--with-python-binding \
|
||||||
|
--with-xml-support
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print
|
find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print
|
||||||
|
|
||||||
|
rm %{buildroot}%{perl_vendorarch}/auto/Hamlib/.packlist
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_docdir}
|
mkdir -p %{buildroot}%{_docdir}
|
||||||
mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}%{_docdir}
|
mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}%{_docdir}
|
||||||
|
|
||||||
@ -179,11 +193,14 @@ mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}%{_docdir}
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python_sitearch}/Hamlib.*
|
%{python_sitearch}/Hamlib.*
|
||||||
%{python_sitearch}/_Hamlib.*
|
%{python_sitearch}/_Hamlib.*
|
||||||
%exclude %{python_sitearch}/_Hamlib.a
|
|
||||||
|
|
||||||
%files -n tcl-Hamlib
|
%files -n tcl-Hamlib
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_libdir}/tcl/Hamlib
|
%dir %{_libdir}/tcl/Hamlib
|
||||||
%{_libdir}/tcl/Hamlib/*
|
%{_libdir}/tcl/Hamlib/*
|
||||||
|
|
||||||
|
%files -n perl-Hamlib
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{perl_vendorarch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user