File kdebindings3.spec of Package kdebindings3-java
#
# spec file for package kdebindings3 (Version 3.5.10)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: kdebindings3
%define is_base 1
%define is_java 0
%define is_js 0
BuildRequires: kdemultimedia3-devel kdepim3 ruby-devel
%if %suse_version > 1020
BuildRequires: unzip
%endif
License: LGPL v2.1 or later
Group: System/GUI/KDE
Summary: Bindings for Qt and KDE Libraries
Version: 3.5.10
Release: 13
Requires: kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3`)
Url: http://www.kde.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: kdebindings-%{version}.tar.bz2
Patch0: 3_5_BRANCH.diff
Patch2: perl.diff
Patch4: fix-return-value-kjsembed.diff
#Patch5: FIXME.diff
Patch6: 64bit.diff
Patch7: split-files.diff
Patch8: kdebindings3-java.diff
Patch9: kdebindings-3.5.1_ruby_non_site_dir.patch
Patch10: admin-no-hpi.diff
Patch11: ruby-constness.diff
%description
This package contains generator applications for creating bindings for
specific languages from Qt and KDE header files.
Authors:
--------
The KDE Team <kde@kde.org>
%if %{is_base}
%package perl
License: LGPL v2.1 or later
# usesubdirs smoke
Summary: DCOP Perl Bindings for KDE
Group: Development/Libraries/Perl
%description perl
A Perl module for making DCOP calls from Perl code.
Authors:
--------
The KDE Team <kde@kde.org>
%package ruby
License: LGPL v2.1 or later
Summary: Ruby Bindings for Qt and KDE Libraries
Group: Development/Languages/Ruby
%description ruby
This package contains the needed environment for writing Qt
applications in Ruby.
Authors:
--------
The KDE Team <kde@kde.org>
%endif
%if %{is_js}
%package devel
Summary: devel package
Group: Development/Languages/Other
Requires: %name = %version
Requires: kdelibs3-devel
%description devel
devel package
%endif
%prep
%setup -q -n kdebindings-%{version}
%patch0
%patch2
%patch4
#%patch5
#%patch6
%patch7
%patch8
%patch9
%patch11
# eventually we have a patch in kdelibs adding that
if test -f /opt/kde3/include/kscrollview.h; then
echo "kscrollview.h" >> smoke/kde/kde_header_list
fi
rm -rf qtobjc kdeobjc
%if %{is_js}
:
%else
rm -rf kjsembed
%endif
%if %{is_base}
:
%else
rm -rf smoke dcopperl
%endif
rm -rf dcoppython
. /etc/opt/kde3/common_options
update_admin --no-unsermake
%patch10
make -f admin/Makefile.common cvs
%build
. /etc/opt/kde3/common_options
%if %{is_java}
export PATH=/usr/lib/java/bin:$PATH
%endif
configopts=
%if %{is_java}
configopts="--with-java-dir=/usr/lib/java/"
%endif
%if %{is_base}
configopts="--disable-final"
%endif
./configure \
$configkde $configopts
%if %{is_base}
make
%else
make %{?jobs:-j %jobs}
%endif
%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
%if %{is_base}
%perl_process_packlist
%endif
%if %{is_js}
%suse_update_desktop_file -u kjscmd Development
%suse_update_desktop_file -u embedjs Development
%endif
%clean
rm -rf ${RPM_BUILD_ROOT}
%post
%run_ldconfig
%postun
%run_ldconfig
%if %{is_base}
%files
%defattr(-,root,root)
%doc COPYING README AUTHORS COPYING.LIB ChangeLog NEWS
/opt/kde3/include/smoke.h
/opt/kde3/%_lib/libsmoke*
%files perl
%defattr(-,root,root)
%dir /usr/lib/perl5/vendor_perl/*/*/DCOP
%dir /usr/lib/perl5/vendor_perl/*/*/auto/DCOP
%{perl_vendorarch}/DCOP.pm
%{perl_vendorarch}/DCOP/Object.pm
%{perl_vendorarch}/auto/DCOP/.packlist
%{perl_vendorarch}/auto/DCOP/DCOP.bs
%{perl_vendorarch}/auto/DCOP/DCOP.so
/var/adm/perl-modules/kdebindings3
%{_mandir}/man3/DCOP.3pm.gz
%files ruby
%defattr(-,root,root)
/opt/kde3/bin/krubyinit
/opt/kde3/bin/qtrubyinit
/opt/kde3/bin/rbqtapi
/opt/kde3/bin/rbqtsh
/opt/kde3/bin/rbkdeapi
/opt/kde3/bin/rbkdesh
/opt/kde3/bin/rbuic
/opt/kde3/bin/rbkconfig_compiler
/usr/%_lib/ruby/*
%endif
%if %{is_java}
%files
%defattr(-,root,root)
/opt/kde3/bin/koala
/opt/kde3/bin/javalib
/opt/kde3/%_lib/java
/opt/kde3/%_lib/libqtjava*
/opt/kde3/%_lib/libkdejava.*
%doc /opt/kde3/share/doc/HTML/en/javalib
%endif
%if %{is_js}
%files
%defattr(-,root,root)
%dir /opt/kde3/share/icons/hicolor/16x16
%dir /opt/kde3/share/icons/hicolor/16x16/apps
%dir /opt/kde3/share/icons/hicolor/32x32
%dir /opt/kde3/share/icons/hicolor/32x32/apps
/opt/kde3/bin/kjscmd
/opt/kde3/bin/embedjs
/opt/kde3/bin/jsaccess
/opt/kde3/%_lib/kde3/libqprocessplugin.*
/opt/kde3/%_lib/kde3/libfileitemplugin.*
/opt/kde3/%_lib/kde3/libjavascript.*
/opt/kde3/share/apps/kjsembed
/opt/kde3/share/appl*/*/embedjs.desktop
/opt/kde3/share/services/qprocess_plugin.desktop
%_mandir/man1/kjscmd.1.gz
/opt/kde3/%_lib/kde3/libjsconsoleplugin.*
/opt/kde3/share/applications/kde/kjscmd.desktop
/opt/kde3/share/apps/kate
/opt/kde3/%_lib/kde3/libcustomobjectplugin.*
/opt/kde3/%_lib/kde3/libcustomqobjectplugin.*
/opt/kde3/share/services/customobject_plugin.desktop
/opt/kde3/share/services/customqobject_plugin.desktop
/opt/kde3/share/services/imagefx_plugin.desktop
/opt/kde3/share/servicetypes/binding_type.desktop
/opt/kde3/%_lib/libkjsembed.so.*
/opt/kde3/%_lib/kde3/libimagefxplugin.*
/opt/kde3/share/apps/embedjs
/opt/kde3/share/icons/*/*/*/embedjs.*
/opt/kde3/share/services/javascript.desktop
/opt/kde3/share/services/kfileitem_plugin.desktop
%files devel
%defattr(-,root,root)
/opt/kde3/include/kjsembed
/opt/kde3/%_lib/libkjsembed.so
/opt/kde3/%_lib/libkjsembed.la
%endif
%changelog
* Thu Sep 11 2008 dmueller@suse.de
- fix build against newer ruby
* Wed Aug 20 2008 coolo@suse.de
- update to KDE 3.5.10
* desktop files validate
* Thu Mar 13 2008 dmueller@suse.de
- update 3_5_BRANCH.diff:
* fix marshaller for QValueList<WId> in ruby bindings
* Thu Feb 14 2008 dmueller@suse.de
- update to 3.5.9:
* bugfixes, patches upstreamed
* Tue Nov 27 2007 dmueller@suse.de
- fix Qt detection with gcc 4.3
* Tue Oct 09 2007 stbinner@suse.de
- update to 3.5.8: update to Python bindings
* Fri Aug 17 2007 dmueller@suse.de
- rename kdebindings3-python to python-kde3 and build
from a separate source (#300041)
* Tue Jun 19 2007 stbinner@suse.de
- fix build of kdebindings3-java in KDE:KDE3
* Fri May 25 2007 dmueller@suse.de
- split off kdebindings3-javascript-devel package
* Tue May 15 2007 stbinner@suse.de
- update to 3.5.7:
* fix build with python 2.4
* enable building of QGL* Java bindings
* fix QtRuby bug with Qt::ListView
* Mon Jan 29 2007 dmueller@suse.de
- remove hpi check for ppc (#223658)
* Thu Jan 25 2007 stbinner@suse.de
- add 3_5_BRANCH.diff to fix build against Python 2.4 on old distros
* Tue Jan 16 2007 stbinner@suse.de
- update to 3.5.6 release:
* adaption to changed python 2.5 API
* several ruby binding fixes
* Tue Dec 05 2006 stbinner@suse.de
- fix build of kdebindings3-python for < 10.2
* Wed Nov 08 2006 stbinner@suse.de
- remove historic "Provides:" (#218798)
* Thu Oct 12 2006 dmueller@suse.de
- update 3_5_BRANCH.diff to include fixes for python 2.5
bindings
* Tue Oct 03 2006 stbinner@suse.de
- update to 3.5.5 release tarball
* Fri Sep 29 2006 dmueller@suse.de
- add patch to the right specfile
* Thu Sep 28 2006 dmueller@suse.de
- fix build of python and java bindings
* Thu Aug 31 2006 stbinner@suse.de
- build with qscintilla-devel also on old distros in build service
* Wed Aug 23 2006 stbinner@suse.de
- add 3_5_BRANCH.diff (ruby binding fixes)
* Mon Jul 24 2006 coolo@suse.de
- update to KDE 3.5.4:
* several fixes to the qtruby bindings
* Sun Jun 18 2006 coolo@suse.de
- fix build on older distributions
* Wed May 24 2006 stbinner@suse.de
- update to KDE 3.5.3
* several fixes to QtRuby and Korundum
* Thu May 18 2006 dmueller@suse.de
- update buildrequires
* Mon May 15 2006 stbinner@suse.de
- update to KDE 3.5.2 and 3_5_BRANCH.diff
* fixes to qtruby, kalyptus, korundum and qtjava bindings
* Tue Apr 11 2006 mrueckert@suse.de
site_ruby should be empty for user installed libraries.
- added kdebindings-3.5.1_ruby_non_site_dir.patch:
* korundum/rubylib/korundum/configure.in.in: map the site_ruby
directories to their normal equivalents.
* Mon Feb 06 2006 mls@suse.de
- adapt pre_checkin.sh script
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 22 2006 stbinner@suse.de
- update to 3.5.1
* Mon Jan 09 2006 stbinner@suse.de
- remove "Provides: PyQt" from kdebindings3-python
* Sun Jan 08 2006 stbinner@suse.de
- update to 3_5_BRANCH
* Tue Jan 03 2006 adrian@suse.de
- Do only Require python-qt for kdebindings3-python and without
the release number
* Mon Dec 19 2005 stbinner@suse.de
- fix file list
* Sun Nov 27 2005 coolo@suse.de
- fix syntax error
* Thu Nov 24 2005 coolo@suse.de
- split out python-qt
* Mon Nov 21 2005 stbinner@suse.de
- update to 3.5 RC 2
* Thu Nov 10 2005 stbinner@suse.de
- update to 3.5 RC 1
* Wed Oct 12 2005 coolo@suse.de
- update to 3.4.92
* Wed Sep 28 2005 stbinner@suse.de
- fixed "Provides:" after .spec split
* Fri Sep 23 2005 coolo@suse.de
- update to 3.4.91
- resync spec files
* Sat Sep 03 2005 matz@suse.de
- Split generated files to speed up compile.
* Mon Aug 29 2005 adrian@suse.de
- build packages in seperate spec files to speed up build
- cleanup patches and nfb
* Mon Aug 22 2005 mrueckert@suse.de
- added ruby-devel to nfb
* Tue Aug 09 2005 mls@suse.de
- removed compat from neededforbuild
* Mon Jul 25 2005 coolo@suse.de
- fix build (final 3.4.2)
* Fri Jul 22 2005 coolo@suse.de
- update to version 3.4.2
* Wed Jun 22 2005 schwab@suse.de
- Fix 64bit bug in java bindings.
* Wed Jun 15 2005 dmueller@suse.de
- sync with branches/KDE/3.4
* Tue Jun 14 2005 dmueller@suse.de
- sync with branches/KDE/3.4
* Tue May 24 2005 adrian@suse.de
- update to version 3.4.1
* Tue May 17 2005 ro@suse.de
- fix build with gcc-4
* Sat Mar 05 2005 adrian@suse.de
- update to final 3.4.0
* Wed Mar 02 2005 coolo@suse.de
- fix build (and do it parallel)
* Mon Feb 14 2005 adrian@suse.de
- update from CVS
* Fri Feb 11 2005 adrian@suse.de
- update from CVS
* Mon Feb 07 2005 adrian@suse.de
- update to beta 2
* Fri Jan 21 2005 adrian@suse.de
- update to current snapshot (includes last fix)
* Fri Jan 21 2005 ro@suse.de
- fix dependency to /bin/env (should be /usr/bin/env)
* Thu Jan 13 2005 adrian@suse.de
- fix installation of java binding documentation
* Tue Jan 11 2005 adrian@suse.de
- fix some compiler warnings
* Mon Jan 10 2005 adrian@suse.de
- update to version 3.4 beta 1
* Thu Dec 16 2004 coolo@suse.de
- disable unsermake (most likely forever)
* Tue Nov 30 2004 adrian@suse.de
- update to version 3.3.2
* Fri Nov 26 2004 ro@suse.de
- use only py_ver macro, py_site is broken in 9.0
* Wed Nov 24 2004 adrian@suse.de
- fix build for python 2.4
- fix build for 8.2
* Tue Nov 23 2004 ro@suse.de
- fix build on 9.0
* Tue Oct 12 2004 adrian@suse.de
- update to version 3.3.1
* Tue Sep 21 2004 adrian@suse.de
- fix build
- remove unneeded packages from neededforbuild
- add qscintilla support for python bindings (#45715)
* Mon Sep 20 2004 adrian@suse.de
- update to current BRANCH
* ruby fixes and enhancements
* Wed Sep 08 2004 adrian@suse.de
- fix spec file syntax
* Tue Sep 07 2004 adrian@suse.de
- fix build for ia64 and ia32
* Mon Sep 06 2004 adrian@suse.de
- -java Requires "jre1.2.x" instead of "java2" now
* Mon Sep 06 2004 adrian@suse.de
- update to version 3.3.0 final
* -python obsoletes sip/PyQt/PyKDE
* -c is in qtc now
* -Csharp is in qtsharp now
* Tue Aug 10 2004 adrian@suse.de
- update to version 3.3.0 RC2
* Wed Apr 14 2004 adrian@suse.de
- update to version 3.2.2
* Tue Apr 06 2004 adrian@suse.de
- fix build
* Mon Apr 05 2004 adrian@suse.de
- remove wrong Obsoletes
* Mon Mar 01 2004 coolo@suse.de
- update to version 3.2.1
- disable-final to make it build on reasonable hardware
* Sun Feb 15 2004 adrian@suse.de
- remove obsolete files from file list
- make kjscmd desktop entry unimportant
* Sat Feb 14 2004 adrian@suse.de
- fix build for x86_64
* Tue Jan 27 2004 adrian@suse.de
- update to KDE 3.2.0 final
* Sat Jan 24 2004 adrian@suse.de
- add Qt# API docu
- fix kdebindings3-java Requires
- rename -sharp package to -Csharp
* Thu Jan 22 2004 uli@suse.de
- qtc: fixed segfault in ilrun when programs using Qt# call exit()
before destroying all Qt objects
* Thu Jan 22 2004 ro@suse.de
- fix typo in specfile
* Wed Jan 21 2004 adrian@suse.de
- enable Qt# bindings for > 9.0
- add qtsharp 0.7 and use it instead of version 0.5 from the
kdebindings tar ball
* Tue Jan 20 2004 adrian@suse.de
- fix build of java bindings
* Sun Jan 18 2004 adrian@suse.de
- update to version 3.1.95 ( KDE 3.2 RC1 )
* Mon Dec 22 2003 adrian@suse.de
- own sub package for javascript bindings
* Tue Dec 02 2003 adrian@suse.de
- update to 3.1.94 ( KDE 3.2 beta 2 )
* Fri Nov 14 2003 adrian@suse.de
- update to new snapshot from 2003102409
* Tue Oct 21 2003 adrian@suse.de
- update to snapshot 2003102008
* Tue Sep 09 2003 adrian@suse.de
- update to version 3.1.4
* Tue Aug 19 2003 ro@suse.de
- try to fix build on x86_64
* Fri Jul 25 2003 adrian@suse.de
- update to 3.1.3
* disable perl/smoke bindings for now
* Fri May 16 2003 adrian@suse.de
- update to 3.1.2
* kmozilla got disabled
- fix build
* Tue Feb 11 2003 adrian@suse.de
- fix build for lib64
* Mon Jan 20 2003 adrian@suse.de
- update to RC7-try2
* Tue Jan 07 2003 adrian@suse.de
- update to RC6
* Tue Dec 03 2002 ro@suse.de
- put smoke stuff in perl subpackage
* Sun Dec 01 2002 adrian@suse.de
- using RC5 tar ball, third try
* Mon Nov 25 2002 adrian@suse.de
- update to RC5
* Wed Nov 20 2002 adrian@suse.de
- update to version 3.1-RC4
* Tue Oct 08 2002 adrian@suse.de
- update to version 3.0.4
* Tue Aug 13 2002 uli@suse.de
- no %%package java -> no %%post java
* Mon Aug 12 2002 coolo@suse.de
- make automake happy
* Thu Aug 08 2002 adrian@suse.de
- update to version 3.0.3
- add %%run_ldconfig
* Sun Aug 04 2002 adrian@suse.de
- fix %%if order in file list
* Fri Aug 02 2002 adrian@suse.de
- disable java for ppc64 x86_64 s390 s390x
* Tue Jul 16 2002 adrian@suse.de
- split packages into subpackages only: -c, -java and -mozilla
* Tue Jun 25 2002 adrian@suse.de
- update to version 3.0.2
* Thu Jun 06 2002 ro@suse.de
- fix for moved mozilla libs
* Mon May 13 2002 coolo@suse.de
- update to 3.0.1
- fixing file list
- using %%_lib
* Thu May 09 2002 coolo@suse.de
- updating to KDE 3.0.1 branch to get the fixes for
lib64 and qt 3.0.4
* Mon Apr 15 2002 coolo@suse.de
- gobjc is gcc-objc now
* Mon Mar 25 2002 adrian@suse.de
- update to 3.0 final :)
* Thu Mar 21 2002 adrian@suse.de
- update to 3.0rc3
* Sun Mar 10 2002 adrian@suse.de
- update to 3.0rc2
- fix build for mozilla
- still not building: kdejava, python, kec and objective C support
* Mon Mar 04 2002 adrian@suse.de
- update to snapshot 2.92.2002030321
- disable kde java bindings for now
* Tue Dec 18 2001 adrian@suse.de
- update to version 2.91 (3.0 beta1)
* Fri Nov 16 2001 adrian@suse.de
- update to version 2.2.2
* Thu Sep 13 2001 adrian@suse.de
- fix version number of kdebindings-mozilla package
* Sat Sep 08 2001 adrian@suse.de
- update to 2.2.1 final
* Mon Aug 13 2001 ro@suse.de
- changed neededforbuild <sp_libs> to <sp-devel>
* Mon Aug 06 2001 adrian@suse.de
- update to 2.2 final
* Fri Jun 29 2001 adrian@suse.de
- update 2.2beta1
* Sun Apr 08 2001 adrian@suse.de
- drop -O0 for ppc and alpha
* Fri Mar 30 2001 ro@suse.de
- neededforbuild fix
* Tue Mar 27 2001 ro@suse.de
- changed neededforbuild <docbkdsl> to <docbook-dsssl-stylesheets>
* Wed Mar 21 2001 adrian@suse.de
- fix mozilla build
* Wed Mar 21 2001 adrian@suse.de
- update to 2.1.1
fix file list
* Mon Mar 19 2001 ro@suse.de
- fixed neededforbuild
* Tue Mar 13 2001 ro@suse.de
- removed second occurence of docbk30 from neededforbuild
* Tue Mar 13 2001 ro@suse.de
- changed neededforbuild <docbk30> to <docbook_3>
* Mon Mar 12 2001 schwab@suse.de
- No java on ia64.
- Fix shell syntax in configure script.
- Fix missing include.
* Thu Feb 22 2001 adrian@suse.de
- update to final 2.1.0
mozilla support is inside an own subpackage
* Sat Feb 17 2001 adrian@suse.de
- newer snapshot from KDE_2_0_BRANCH
initial package