From f51fa9b93df0e61dd1662655558f37ab10e7036a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Kasal?= Date: Mon, 11 May 2009 12:44:36 +0000 Subject: [PATCH] - own the tcl subdirectory (#474032) - set CPPFLAGS to java include dirs, so that the java bindings build with any java implementation (#498964) - add --without-curses; there is no curses package BuildRequired anyway --- brltty-cppflags.patch | 24 ++++++++++++++++++++++++ brltty.spec | 26 +++++++++++++++++++++----- 2 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 brltty-cppflags.patch diff --git a/brltty-cppflags.patch b/brltty-cppflags.patch new file mode 100644 index 0000000..143bcdf --- /dev/null +++ b/brltty-cppflags.patch @@ -0,0 +1,24 @@ +2009-05-06 Stepan Kasal + + * Bindings/Java/Makefile.in: Propagate configure-time CPPFLAGS. + +--- brltty-3.10/Bindings/Java/Makefile.in.cppflags 2008-07-17 00:19:45.000000000 +0200 ++++ brltty-3.10/Bindings/Java/Makefile.in 2009-05-06 17:33:02.000000000 +0200 +@@ -36,6 +36,8 @@ + JAVA_JNI_FLAGS = @JAVA_JNI_FLAGS@ + JAVA_JNI_DESTDIR = $(INSTALL_ROOT) + ++CPPFLAGS = @CPPFLAGS@ ++ + all: jar jni doc + + JAVA_SOURCES = $(SRC_DIR)/Brlapi.java \ +@@ -56,7 +58,7 @@ + $(MKLIB:=$(API_NAME)) $@ bindings.$O $(API_LDFLAGS) + + bindings.$O: +- $(CC) $(LIBCFLAGS) $(JAVA_JNI_FLAGS) -o $@ -c $(SRC_DIR)/bindings.c ++ $(CC) $(CPPFLAGS) $(LIBCFLAGS) $(JAVA_JNI_FLAGS) -o $@ -c $(SRC_DIR)/bindings.c + + JAVA_JAR_FILE = $(API_NAME).jar + jar: $(JAVA_JAR_FILE) diff --git a/brltty.spec b/brltty.spec index 3fd8b07..c2f26bc 100644 --- a/brltty.spec +++ b/brltty.spec @@ -9,13 +9,14 @@ Name: brltty Version: %{pkg_version} -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ Group: System Environment/Daemons URL: http://mielke.cc/brltty/ Source: http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz Patch2: brltty-gnusource.patch Patch3: brltty-3.9-autoconf.patch +Patch4: brltty-cppflags.patch Patch5: brltty-parallel.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Summary: Braille display driver for Linux/Unix @@ -104,8 +105,9 @@ Version: %{api_version} Group: Development/System License: LGPLv2+ Requires: brlapi = %{api_version}-%{release} +## temporary work around, java-devel is not resolved consistently acrss archs BuildRequires: java-devel -#BuildRequires: java-1.7.0-icedtea-devel +#BuildRequires: java-1.5.0-gcj-devel Summary: Java binding for BrlAPI %description -n brlapi-java This package provides the Java binding for BrlAPI. @@ -116,11 +118,20 @@ This package provides the Java binding for BrlAPI. %setup -q %patch2 -p1 -b .gnusource %patch3 -p1 -b .autoconf +%patch4 -p1 -b .cppflags %patch5 -p1 -b .parallel %build ./autogen -%configure --with-install-root="${RPM_BUILD_ROOT}" --with-braille-driver=-tt +for i in -I/usr/lib/jvm/java/include{,/linux}; do + java_inc="$java_inc $i" +done +# there is no curses packages in BuildRequires, so the package builds +# without them in mock; let's express this decision explicitly +%configure CPPFLAGS="$java_inc" --without-curses \ + --with-install-root="${RPM_BUILD_ROOT}" --with-braille-driver=-tt +cat config.log +#exit 1 make %{?_smp_mflags} for file in $(find . \( -path ./doc -o -path ./Documents \) -prune -o \( -name 'README*' -o -name '*.txt' -o -name '*.html' -o -name '*.sgml' -o -name \*.patch -o \( -path "./Bootdisks/*" -type f -perm +ugo=x \) \) -print) @@ -201,8 +212,7 @@ exit 0 %files -n tcl-brlapi %defattr(-,root,root) -%{tcl_sitearch}/brlapi-%{api_version}/libbrlapi_tcl.so -%{tcl_sitearch}/brlapi-%{api_version}/pkgIndex.tcl +%{tcl_sitearch}/brlapi-%{api_version} %files -n python-brlapi %defattr(-,root,root) @@ -216,6 +226,12 @@ exit 0 %changelog +* Thu Apr 30 2009 Stepan Kasal - 3.10-4 +- own the tcl subdirectory (#474032) +- set CPPFLAGS to java include dirs, so that the java bindings build with + any java implementation (#498964) +- add --without-curses; there is no curses package BuildRequired anyway + * Mon Feb 23 2009 Fedora Release Engineering - 3.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild