Update upstream URL for package, fixes RHBZ#1487568.

Patch pkgconfig file to correct lib dir, fixes RHBZ#1487575.
This commit is contained in:
Richard Shaw 2017-09-01 17:28:35 -05:00
parent d43c7c2f6c
commit 7af4ef4383
2 changed files with 19 additions and 6 deletions

10
hamlib-pc.patch Normal file
View File

@ -0,0 +1,10 @@
--- a/hamlib.pc.in
+++ b/hamlib.pc.in
@@ -1,6 +1,5 @@
prefix=@prefix@
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include
Name: @PACKAGE_NAME@

View File

@ -9,14 +9,15 @@
Name: hamlib
Version: 3.1
Release: 8%{?pre:.%{pre}}%{?dist}
Release: 9%{?pre:.%{pre}}%{?dist}
Summary: Run-time library to control radio transceivers and receivers
License: GPLv2+ and LGPLv2+
URL: http://hamlib.sourceforge.net
URL: http://www.hamlib.org
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}%{?pre:~%{pre}}.tar.gz
Patch1: hamlib-3.0-perl_install.patch
Patch0: hamlib-3.0-perl_install.patch
Patch1: hamlib-pc.patch
BuildRequires: python2-devel, swig, gd-devel, libxml2-devel, tcl-devel
BuildRequires: libusb-devel, pkgconfig, boost-devel, libtool-ltdl-devel
@ -108,8 +109,7 @@ Hamlib TCL Language bindings to allow radio control from TCL scripts.
%prep
%setup -q -n %{name}-%{version}%{?pre:~%{pre}}
%patch1 -p1 -b .perl_inst
%autosetup -p1 -n %{name}-%{version}%{?pre:~%{pre}}
%build
@ -182,7 +182,6 @@ fi
%files
%{!?_licensedir:%global license %doc}
%license COPYING COPYING.LIB
%doc AUTHORS ChangeLog PLAN README THANKS TODO
%{_bindir}/*
@ -228,6 +227,10 @@ fi
%changelog
* Fri Sep 1 2017 Richard Shaw <hobbes1069@gmail.com> - 3.1-9
- Update upstream URL for package, fixes RHBZ#1487568.
- Patch pkgconfig file to correct lib dir, fixes RHBZ#1487575.
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.1-8
- Python 2 binary package renamed to python2-hamlib
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3