From 0bb357f1e8e2981034a3f84a5362ee8b0f6b14d4 Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Sat, 5 Jan 2008 09:50:46 +0000 Subject: [PATCH] - python and tcl bconds Changed files: brltty.spec -> 1.20 --- brltty.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/brltty.spec b/brltty.spec index d774b7a..72b5a5a 100644 --- a/brltty.spec +++ b/brltty.spec @@ -10,6 +10,8 @@ %bcond_without apidocs # documentation generated with doxygen %bcond_with java # java bindings %bcond_with ocaml # ocaml bindings (NFY) +%bcond_without python # python bindings +%bcond_without tcl # tcl bindings # Summary: Braille display driver for Linux/Unix Summary(pl.UTF-8): Sterownik do wyświetlaczy Braille'a @@ -32,8 +34,9 @@ BuildRequires: bison #BuildRequires: ncurses-devel %{?with_ocaml:BuildRequires: ocaml} #BuildRequires: pkgconfig -#BuildRequires: python-devel -#BuildRequires: tcl-devel +%{?with_python:BuildRequires: python-Pyrex} +%{?with_python:BuildRequires: rpm-pythonprov} +%{?with_tcl:BuildRequires: tcl} #BuildRequires: xorg-lib-libX* BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -135,6 +138,30 @@ BrlAPI library for Java. %description -n brlapi-java -l pl.UTF-8 Biblioteka BrlAPI dla Javy. +%package -n python-brlapi +Summary: Python interface to BrlAPI +Summary(pl.UTF-8): Pythonowy interfejs do BrlAPI +Group: Libraries +Requires: brlapi = %{version}-%{release} + +%description -n python-brlapi +Python interface to BrlAPI. + +%description -n python-brlapi -l pl.UTF-8 +Pythonowy interfejs do BrlAPI. + +%package -n brlapi-tcl +Summary: BrlAPI library for Tcl +Summary(pl.UTF-8): Biblioteka BrlAPI dla Tcl +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 @@ -495,6 +522,7 @@ exit 0 %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libbrlapi.so.0.5 %attr(755,root,root) %{_libdir}/libbrlapi.so.0.5.1 +%dir %{_libdir}/brlapi-0.5.1 %files -n brlapi-devel %defattr(644,root,root,755) @@ -521,3 +549,17 @@ exit 0 %{_libdir}/java/libbrlapi_java.so %{_javadir}/brlapi.jar %endif + +%if %{with python} +%files -n python-brlapi +%defattr(644,root,root,755) +%{py_sitedir}/Brlapi-*.egg-info +%attr(755,root,root) %{py_sitedir}/brlapi.so +%endif + +%if %{with tcl} +%files -n brlapi-tcl +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/brlapi-0.5.1/libbrlapi_tcl.so +%{_libdir}/brlapi-0.5.1/pkgIndex.tcl +%endif -- 2.44.0