commit d9e9ede6ec46733e54dcfd36337ee654f623d4fc
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Mar 1 15:52:18 2015 +0200

    add ruby and python bconds (dep wise), java requires libcaca to build

 libcaca.spec | 25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)
---
diff --git a/libcaca.spec b/libcaca.spec
index a2bac86..ee8b1fa 100644
--- a/libcaca.spec
+++ b/libcaca.spec
@@ -2,7 +2,9 @@
 # Conditional build:
 %bcond_without dotnet          # C#/Mono binding
 %bcond_without java            # Java binding
-#
+%bcond_without ruby            # Ruby binding
+%bcond_without python          # Python binding
+
 %ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
 %undefine      with_dotnet
 %endif
@@ -33,15 +35,11 @@ BuildRequires:      freeglut-devel >= 2.0.0
 # not used
 #BuildRequires:        ftgl-devel >= 2.1.3
 BuildRequires: imlib2-devel
-%{?with_java:BuildRequires:    jdk}
 BuildRequires: libstdc++-devel
 BuildRequires: libtool >= 2:1.5
-%{?with_dotnet:BuildRequires:  mono-csharp}
 BuildRequires: pkgconfig
-BuildRequires: python-devel >= 2.2
 BuildRequires: rpmbuild(macros) >= 1.533
 BuildRequires: rpmbuild(monoautodeps)
-BuildRequires: ruby-devel
 BuildRequires: sed >= 4.0
 BuildRequires: slang-devel >= 2.0.0
 #BuildRequires:        texlive-fonts-jknappen
@@ -50,6 +48,23 @@ BuildRequires:       slang-devel >= 2.0.0
 #BuildRequires:        texlive-makeindex
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: zlib-devel
+%if %{with dotnet}
+BuildRequires: mono-csharp
+%endif
+%if %{with java}
+BuildRequires: jdk
+BuildRequires: rpm-javaprov
+# org_zoy_caca_Attribute.c:14:18: fatal error: caca.h: No such file or 
directory
+BuildRequires: libcaca-devel
+%endif
+%if %{with python}
+BuildRequires: python-devel >= 2.2
+BuildRequires: rpm-pythonprov
+%endif
+%if %{with ruby}
+BuildRequires: rpm-rubyprov
+BuildRequires: ruby-devel
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                specflags       -fomit-frame-pointer
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libcaca.git/commitdiff/d9e9ede6ec46733e54dcfd36337ee654f623d4fc

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to