]> git.pld-linux.org Git - packages/gnome-speech.git/blobdiff - gnome-speech.spec
- require newer stuff
[packages/gnome-speech.git] / gnome-speech.spec
index 1e10a35a24e94dcb49a6c7103136d5787ef3259b..b211f11c711daf5e494f43bc560102d40e1fddfe 100644 (file)
@@ -1,26 +1,32 @@
 
 # TODO:
-#      java package?
 #      build other speech plugins?
+#
+%bcond_with    java            # build java subpackage
 
 Summary:       GNOME Speech - text-to-speech convertion
 Summary(pl):   GNOME Speech - przekszta³canie tekstu na mowê
 Name:          gnome-speech
-Version:       0.3.2
+Version:       0.3.6
 Release:       1
-License:       GPL
+License:       LGPL
 Group:         Libraries
-Source0:       http://ftp.gnome.org/pub/gnome/sources/%{name}/0.3/%{name}-%{version}.tar.bz2
-# Source0-md5: d1c3ad83c3c6f42db0f8ad3cb61c4671
-Patch0:                %{name}-nojava.patch
-Patch1:                %{name}-am.patch
+Source0:       http://ftp.gnome.org/pub/gnome/sources/gnome-speech/0.3/%{name}-%{version}.tar.bz2
+# Source0-md5: 1959d2fbc36394308e99b113ac69e576
+Patch0:                %{name}-am.patch
+Patch1:                %{name}-jar_dir.patch
 URL:           http://developer.gnome.org/projects/gap/
-BuildRequires: ORBit2-devel >= 1:2.7.6
+BuildRequires: ORBit2-devel >= 1:2.12.1
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: gnome-common
-BuildRequires: gtk-doc >= 0.6
-BuildRequires: libbonobo-devel >= 2.4.0
+BuildRequires: gnome-common >= 2.8.0
+BuildRequires: gtk-doc >= 1.3
+%if %{with java}
+BuildRequires: jar
+BuildRequires: java
+BuildRequires: java-access-bridge
+%endif
+BuildRequires: libbonobo-devel >= 2.8.1
 BuildRequires: libtool
 BuildRequires: pkgconfig
 Requires:      festival >= 1.4.2
@@ -41,7 +47,7 @@ Summary:      Development files for gnome_speech
 Summary(pl):   Pliki programistyczne dla gnome_speech
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      libbonobo-devel >= 2.4.0
+Requires:      libbonobo-devel >= 2.8.1
 Provides:      gnome_speech-devel
 Obsoletes:     gnome_speech-devel
 
@@ -63,6 +69,17 @@ Static gnome-speech library.
 %description static -l pl
 Statyczna biblioteka gnome-speech.
 
+%package java
+Summary:       Java classes for gnome-speech
+Summary(pl):   Klasy Java dla gnome-speech
+Group:         Development/Libraries
+
+%description java
+Java classes for gnome-speech.
+
+%description java -l pl
+Klasy Java dla gnome-speech.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -70,14 +87,14 @@ Statyczna biblioteka gnome-speech.
 
 %build
 %{__libtoolize}
-%{__aclocal} -I %{_aclocaldir}/gnome2-macros
+%{__aclocal}
 %{__autoheader}
 %{__automake}
 %{__autoconf}
 %configure \
        --enable-static \
        --enable-gtk-doc \
-
+       %{?with_java:--with-jab-dir=%{_datadir}/java}
 %{__make}
 
 %install
@@ -115,3 +132,9 @@ rm -rf $RPM_BUILD_ROOT
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+
+%if %{with java}
+%files java
+%defattr(644,root,root,755)
+%{_datadir}/java/*.jar
+%endif
This page took 0.061317 seconds and 4 git commands to generate.