X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=brltty.spec;h=95a89d664cbd34d90bc37492637e0db6c443f119;hb=refs%2Ftags%2Fauto%2Fth%2Fbrltty-5.2-5;hp=a11f53017ced068bcce889d8fb2a9f9c652af435;hpb=0cb5dd5215a297f1335c1d17a60a5c4566771f24;p=packages%2Fbrltty.git diff --git a/brltty.spec b/brltty.spec index a11f530..95a89d6 100644 --- a/brltty.spec +++ b/brltty.spec @@ -1,17 +1,80 @@ +# TODO: +# - what is that huge %post script? +# +# Conditional build: +%bcond_without apidocs # documentation generated with doxygen +%bcond_without java # Java bindings +%bcond_without ocaml # OCaml bindings +%bcond_without python # Python bindings +%bcond_without python3 # Python 3.x bindings +%bcond_without tcl # Tcl bindings +%bcond_without x # X11-based utilities +%bcond_without gpm # mouse tracking via GPM +%bcond_without libbraille # libbraille Braille driver +%bcond_without espeak # eSpeak synthesizer driver +%bcond_without flite # Flite synthesizer driver +%bcond_with mikropuhe # Mikropuhe synthesizer driver [commercial, Finnish] +%bcond_without speech_dispatcher # Speech Dispatcher synthesizer driver +%bcond_with swift # Swift synthesizer driver [commercial, from Cepstral] +%bcond_with theta # Theta synthesizer driver [commercial, from Cepstral] +%bcond_with viavoice # IBM ViaVoice synthesizer driver [commercial] +%bcond_with at_spi # AtSpi screen driver +%bcond_without at_spi2 # AtSpi2 screen driver +# +%define brlapi_ver 0.6.3 +# +%include /usr/lib/rpm/macros.java Summary: Braille display driver for Linux/Unix -Summary(pl): Sterownik do wy¶wietlaczy Braille'a +Summary(pl.UTF-8): Sterownik do wyświetlaczy Braille'a Name: brltty -Version: 3.7.2 -Release: 4 +Version: 5.2 +Release: 5 Group: Daemons -License: GPL +License: GPL v2+ (brltty and drivers), LGPL v2.1+ (APIs) +Source0: http://mielke.cc/brltty/archive/%{name}-%{version}.tar.xz +# Source0-md5: b484343461b5a45f95fedfb21d1ceca3 +Patch0: %{name}-java.patch +Patch1: %{name}-speech-dispatcher.patch +Patch2: %{name}-python.patch URL: http://mielke.cc/brltty/ -Source0: http://mielke.cc/brltty/releases/%{name}-%{version}.tar.gz -# Source0-md5: 0ae3da8252783a4d20e1ed4e55cede5b -Patch0: %{name}-slash.patch -BuildRequires: autoconf >= 2.53 +BuildRequires: alsa-lib-devel +%{?with_at_spi:BuildRequires: at-spi-devel} +BuildRequires: autoconf >= 2.62 BuildRequires: automake BuildRequires: bison +# just headers +BuildRequires: bluez-libs-devel +%{?with_at_spi2:BuildRequires: dbus-devel >= 1.0} +%{?with_apidocs:BuildRequires: doxygen} +%{?with_espeak:BuildRequires: espeak-devel} +%{?with_flite:BuildRequires: flite-devel} +%{?with_gpm:BuildRequires: gpm-devel} +%{?with_java:BuildRequires: jdk} +%{?with_java:BuildRequires: jpackage-utils} +%{?with_libbraille:BuildRequires: libbraille-devel} +BuildRequires: libicu-devel +BuildRequires: ncurses-devel +%{?with_ocaml:BuildRequires: ocaml} +BuildRequires: pkgconfig +%{?with_python:BuildRequires: python-Cython} +%{?with_python3:BuildRequires: python3-Cython} +%{?with_java:BuildRequires: rpm-javaprov} +%{?with_python:BuildRequires: rpm-pythonprov} +%{?with_speech_dispatcher:BuildRequires: speech-dispatcher-devel >= 0.8} +BuildRequires: tar >= 1:1.22 +%{?with_tcl:BuildRequires: tcl-devel >= 8.5} +%if %{with x} +BuildRequires: xorg-lib-libX11-devel +BuildRequires: xorg-lib-libXaw-devel +BuildRequires: xorg-lib-libXext-devel +BuildRequires: xorg-lib-libXt-devel +BuildRequires: xorg-lib-libXtst-devel +%endif +BuildRequires: xz +#%{?with_mikropuhe:BuildRequires: Mikropuhe-devel (-lmikropuhe )} +#%{?with_swift:BuildRequires: Swift-devel (-lswift )} +#%{?with_theta:BuildRequires: Theta-devel (-ltheta )} +#%{?with_viavoice:BuildRequires: ViaVoice-devel (-libmeci50 )} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -21,18 +84,19 @@ refreshable Braille display. It drives the Braille display, and provides complete screen review functionality. Some speech capability has also been incorporated. -%description -l pl -BRLTTY jest demonem, który udostêpnia dostêp do linuksowej konsoli (w -trybie tekstowym) dla niewidomych u¿ywaj±cych wy¶wietlaczy Braille'a z -od¶wie¿aniem (refreshable Braille display). BRLTTY steruje -wy¶wietlaczem Braille'a i dostarcza funkcjonalno¶æ ca³kowitego -przegl±du ekranu. Do tego pakietu zosta³a w³±czona mo¿liwo¶æ syntezy +%description -l pl.UTF-8 +BRLTTY jest demonem, który udostępnia dostęp do linuksowej konsoli (w +trybie tekstowym) dla niewidomych używających wyświetlaczy Braille'a z +odświeżaniem (refreshable Braille display). BRLTTY steruje +wyświetlaczem Braille'a i dostarcza funkcjonalność całkowitego +przeglądu ekranu. Do tego pakietu została włączona możliwość syntezy mowy. %package -n brlapi Summary: Application Programming Interface for BRLTTY -Summary(pl): API do BRLTTY -Group: Applications/System +Summary(pl.UTF-8): API do BRLTTY +License: LGPL v2.1+ +Group: Libraries %description -n brlapi This package provides the run-time support for the Application @@ -41,16 +105,17 @@ Programming Interface to BRLTTY. Install this package if you have an application which directly accesses a refreshable Braille display. -%description -n brlapi -l pl -Ten pakiet zawiera ¶rodowisko uruchomieniowe dla programów -korzystaj±cych z API BRLTTY. +%description -n brlapi -l pl.UTF-8 +Ten pakiet zawiera środowisko uruchomieniowe dla programów +korzystających z API BRLTTY. -Zainstaluj ten pakiet je¶li masz aplikacjê, która bezpo¶rednio u¿ywa -wy¶wietlacza Braille'a z od¶wie¿aniem. +Zainstaluj ten pakiet jeśli masz aplikację, która bezpośrednio używa +wyświetlacza Braille'a z odświeżaniem. %package -n brlapi-devel Summary: Headers and documentation for BrlAPI -Summary(pl): Pliki nag³ówkowe i dokumentacja do BrlAPI +Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do BrlAPI +License: LGPL v2.1+ Group: Development/Libraries Requires: brlapi = %{version}-%{release} @@ -66,40 +131,153 @@ are more specifically atuned to their needs. Install this package if you're developing or maintaining an application which directly accesses a refreshable Braille display. -%description -n brlapi-devel -l pl -Ten pakiet zawiera pliki nag³ówkowe oraz dokumentacjê do BrlAPI (API -do BRLTTY). BrlAPI pozwala implementowaæ aplikacje, które bezpo¶rednio -korzystaj± z wy¶wietlaczy Braille'a dostarczaj±c interfejs u¿ytkownika -bardziej przystosowany dla osób niewidomych. +%description -n brlapi-devel -l pl.UTF-8 +Ten pakiet zawiera pliki nagłówkowe oraz dokumentację do BrlAPI (API +do BRLTTY). BrlAPI pozwala implementować aplikacje, które bezpośrednio +korzystają z wyświetlaczy Braille'a dostarczając interfejs użytkownika +bardziej przystosowany dla osób niewidomych. -Zainstaluj ten pakiet, je¶li tworzysz lub nadzorujesz aplikacjê -korzystaj±c± bezpo¶rednio z od¶wie¿alnych wy¶wietlaczy Braille'a. +Zainstaluj ten pakiet, jeśli tworzysz lub nadzorujesz aplikację +korzystającą bezpośrednio z odświeżalnych wyświetlaczy Braille'a. %package -n brlapi-static Summary: Static BrlAPI library -Summary(pl): Statyczna biblioteka BrlAPI +Summary(pl.UTF-8): Statyczna biblioteka BrlAPI +License: LGPL v2.1+ Group: Development/Libraries Requires: brlapi-devel = %{version}-%{release} %description -n brlapi-static This is package with static BrlAPI library. -%description -n brlapi-static -l pl -Ten pakiet zawiera statyczn± wersjê biblioteki BrlAPI. +%description -n brlapi-static -l pl.UTF-8 +Ten pakiet zawiera statyczną wersję biblioteki BrlAPI. + +%package -n brlapi-apidocs +Summary: BrlAPI documentation +Summary(pl.UTF-8): Documentacja BrlAPI +Group: Documentation + +%description -n brlapi-apidocs +Documentation for BrlAPI in HTML format generated from brltty +sources by doxygen. + +%description -n brlapi-apidocs -l pl.UTF-8 +Dokumentacja BrlAPI w formacie HTML generowane ze +źrodeł brltty przez doxygen. + +%package -n java-brlapi +Summary: BrlAPI library for Java +Summary(pl.UTF-8): Biblioteka BrlAPI dla Javy +License: LGPL v2.1+ +Group: Libraries +Requires: brlapi = %{version}-%{release} + +%description -n java-brlapi +BrlAPI library for Java. + +%description -n java-brlapi -l pl.UTF-8 +Biblioteka BrlAPI dla Javy. + +%package -n ocaml-brlapi +Summary: OCaml binding for BrlAPI +Summary(pl.UTF-8): Wiązania OCamla do BrlAPI +License: LGPL v2.1+ +Group: Libraries +Requires: brlapi = %{version}-%{release} +%requires_eq ocaml-runtime + +%description -n ocaml-brlapi +OCaml binding for BrlAPI. + +%description -n ocaml-brlapi -l pl.UTF-8 +Wiązania OCamla do BrlAPI. + +%package -n ocaml-brlapi-devel +Summary: OCaml binding for BrlAPI - development files +Summary(pl.UTF-8): Wiązania OCamla do BrlAPI - pliki programistyczne +License: LGPL v2.1+ +Group: Libraries +Requires: ocaml-brlapi = %{version}-%{release} +%requires_eq ocaml + +%description -n ocaml-brlapi-devel +OCaml binding for BrlAPI - development files. + +%description -n ocaml-brlapi-devel -l pl.UTF-8 +Wiązania OCamla do BrlAPI - pliki programistyczne. + +%package -n python-brlapi +Summary: Python 2.x interface to BrlAPI +Summary(pl.UTF-8): Interfejs Pythona 2.x do BrlAPI +License: LGPL v2.1+ +Group: Libraries +Requires: brlapi = %{version}-%{release} + +%description -n python-brlapi +Python 2.x interface to BrlAPI. + +%description -n python-brlapi -l pl.UTF-8 +Interfejs Pythona 2.x do BrlAPI. + +%package -n python3-brlapi +Summary: Python 3.x interface to BrlAPI +Summary(pl.UTF-8): Interfejs Pythona 3.x do BrlAPI +License: LGPL v2.1+ +Group: Libraries +Requires: brlapi = %{version}-%{release} + +%description -n python3-brlapi +Python 3.x interface to BrlAPI. + +%description -n python3-brlapi -l pl.UTF-8 +Interfejs Pythona 3.x do BrlAPI. + +%package -n brlapi-tcl +Summary: BrlAPI library for Tcl +Summary(pl.UTF-8): Biblioteka BrlAPI dla Tcl +License: LGPL v2.1+ +Group: Libraries +Requires: brlapi = %{version}-%{release} + +%description -n brlapi-tcl +BrlAPI library for Tcl. + +%description -n brlapi-tcl -l pl.UTF-8 +Biblioteka BrlAPI dla Tcl. %prep %setup -q %patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build -%{__aclocal} %{__autoconf} -cp -f /usr/share/automake/config.sub acdir +CFLAGS="%{rpmcflags} -I/usr/include/ncurses" %configure \ + %{?with_java:JAVA_HOME=%{java_home}} \ --with-install-root="$RPM_BUILD_ROOT" \ - --disable-tainted-components \ + %{!?with_libbraille:--without-libbraille} \ + %{!?with_espeak:--without-espeak} \ + %{!?with_flite:--without-flite} \ + %{!?with_speech_dispatcher:--without-speechd} \ + %{!?with_ocaml:--disable-caml-bindings} \ + %{!?with_gpm:--disable-gpm} \ + %{!?with_java:--disable-java-bindings} \ + %{!?with_python:--disable-python-bindings} \ + %{!?with_tcl:--disable-tcl-bindings} \ + %{!?with_x:--disable-x} \ --enable-api -%{__make} + +%{__make} -j1 + +%if %{with python3} +cd Bindings/Python +%{__python3} setup.py build \ + -b build-3 +cd ../.. +%endif directory="doc" mkdir -p "$directory" @@ -111,9 +289,43 @@ done %install rm -rf $RPM_BUILD_ROOT -%{__make} install + +%{__make} -j1 install \ + OCAML_INSTALL_TARGET=install-without-findlib + +# findlib-specific, useless in rpm +%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllbrlapi_stubs.so.owner + +%if %{with python3} +cd Bindings/Python +%{__python3} setup.py \ + build \ + -b build-3 \ + install \ + --optimize=2 \ + --skip-build \ + --root=$RPM_BUILD_ROOT +cd ../.. +%endif + +%if %{_lib} != "lib" + # Fix java plugin install path on 64-bit archs + install -d $RPM_BUILD_ROOT%{_libdir}/java + %{__mv} $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}/java/libbrlapi_java.so +%endif + install Documents/brltty.conf $RPM_BUILD_ROOT%{_sysconfdir} +install -d $RPM_BUILD_ROOT/usr/lib/tmpfiles.d +cat >$RPM_BUILD_ROOT/usr/lib/tmpfiles.d/brltty.conf <