- 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
|
||||
- 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
|
||||
|
25
hamlib.spec
25
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user