From a03a76b5e35d1b157773bcc1333bd1fae82d5803 Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Jun 04 2018 18:12:19 +0000 Subject: Fix FTBFS (bz #1556557) License is MIT --- diff --git a/xpa-uint.patch b/xpa-uint.patch new file mode 100644 index 0000000..04e4f73 --- /dev/null +++ b/xpa-uint.patch @@ -0,0 +1,11 @@ +diff -ur xpa-2.1.18/tcl.c xpa-2.1.18.uint/tcl.c +--- xpa-2.1.18/tcl.c 2016-10-14 03:03:51.000000000 +0200 ++++ xpa-2.1.18.uint/tcl.c 2018-06-04 19:36:00.452715092 +0200 +@@ -7,6 +7,7 @@ + #if HAVE_TCL + + #include ++#include + + /* + *---------------------------------------------------------------------------- diff --git a/xpa.spec b/xpa.spec index df596b2..8b65a98 100644 --- a/xpa.spec +++ b/xpa.spec @@ -3,14 +3,15 @@ Name: xpa Version: 2.1.18 -Release: 4%{?dist} +Release: 5%{?dist} Summary: The X Public Access messaging system -# FSF address wrong in COPYING file -License: LGPLv2+ +License: MIT URL: http://hea-www.harvard.edu/RD/xpa/ Source0: https://github.com/ericmandel/xpa/archive/v%{version}.tar.gz Patch0: xpa-makefile.patch +# https://github.com/ericmandel/xpa/issues/8 +Patch1: xpa-uint.patch BuildRequires: libXt-devel BuildRequires: tcl-devel @@ -63,6 +64,7 @@ This package contains the documentation for %{name}. %prep %setup -q -n %{name}-%{version} %patch0 -p1 +%patch1 -p1 # Remove ps files in html docs rm -rf %{_builddir}/%{name}-%{version}/doc/*.ps @@ -84,9 +86,7 @@ mkdir -p %{buildroot}%{tcl_sitearch}/tclxpa cp -a pkgIndex.tcl %{buildroot}%{tcl_sitearch}/tclxpa mv %{buildroot}%{_libdir}/libtcl* %{buildroot}%{tcl_sitearch}/tclxpa -%post libs -p /sbin/ldconfig - -%postun libs -p /sbin/ldconfig +%ldconfig_scriptlets libs %files %{_bindir}/* @@ -114,6 +114,10 @@ mv %{buildroot}%{_libdir}/libtcl* %{buildroot}%{tcl_sitearch}/tclxpa #%doc doc/*.pdf %changelog +* Mon Jun 04 2018 Sergio Pascual - 2.1.18-5 +- Fix FTBFS (bz #1556557) +- License is MIT + * Fri Feb 09 2018 Fedora Release Engineering - 2.1.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild