]> git.pld-linux.org Git - packages/brltty.git/commitdiff
- new bcond java
authorSzymon Siwek <sls@pld-linux.org>
Sat, 5 Jan 2008 09:24:11 +0000 (09:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- bconded creating apidoc

Changed files:
    brltty.spec -> 1.19

brltty.spec

index 66d903447253a62409133e77b124b764f6da2bcf..d774b7aa53b167259d8e335cd8b2400c1d08340f 100644 (file)
@@ -4,9 +4,11 @@
 #      - ocaml bcond is useless now:
 #              Cannot find ocamlfind.
 #              BrlAPI Caml bindings will be compiled but not installed.
+#      - check java stuff
 #
 # Conditional build:
 %bcond_without apidocs         # documentation generated with doxygen
+%bcond_with    java            # java bindings
 %bcond_with    ocaml           # ocaml bindings (NFY)
 #
 Summary:       Braille display driver for Linux/Unix
@@ -25,7 +27,7 @@ BuildRequires:        bison
 #BuildRequires:        bluez-devel
 %{?with_apidocs:BuildRequires: doxygen}
 #BuildRequires:        gpm-devel
-#BuildRequires:        java-?
+%{?with_java:BuildRequires:    jdk}
 #BuildRequires:        libusb-devel
 #BuildRequires:        ncurses-devel
 %{?with_ocaml:BuildRequires:   ocaml}
@@ -121,6 +123,18 @@ sources by doxygen.
 Dokumentacja BrlAPI w formacie HTML generowane ze
 źrodeł brltty przez doxygen.
 
+%package -n brlapi-java
+Summary:       BrlAPI library for Java
+Summary(pl.UTF-8):     Biblioteka BrlAPI dla Javy
+Group:         Libraries
+Requires:      brlapi = %{version}-%{release}
+
+%description -n brlapi-java
+BrlAPI library for Java.
+
+%description -n brlapi-java -l pl.UTF-8
+Biblioteka BrlAPI dla Javy.
+
 %prep
 %setup -q
 
@@ -495,6 +509,15 @@ exit 0
 %defattr(644,root,root,755)
 %{_libdir}/libbrlapi.a
 
+%if %{with apidocs}
 %files -n brlapi-apidocs
 %defattr(644,root,root,755)
 %doc Documents/BrlAPIref/html/*
+%endif
+
+%if %{with java}
+%files -n brlapi-java
+%defattr(644,root,root,755)
+%{_libdir}/java/libbrlapi_java.so
+%{_javadir}/brlapi.jar
+%endif
This page took 0.149813 seconds and 4 git commands to generate.