%define name tora %define version 2.1.3 %define release %mkrel 4 Summary: Toolkit for Oracle with MySQL and PostgreSQL support only Name: %{name} Version: %{version} Release: %{release} Source: %{name}-%{version}.tar.bz2 #Patch1: fix_kde_theme_qt45.patch URL: http://tora.sourceforge.net Group: Development/Databases License: GPLv2+ Requires: qt4-common Requires: qt4-database-plugin-mysql Requires: qt4-database-plugin-pgsql #Requires: libaio BuildRequires: kdelibs4-devel BuildRequires: postgresql-devel BuildRequires: qscintilla-qt4-devel BuildRequires: qt4-devel Conflicts: tora-oracle %description TOra - Toolkit for Oracle, MySQL and PostgreSQL ATTENTION: This package of TOra doesn't include Oracle support. If you need Oracle support please install Oracle instant client and the tora-oracle package instead. In addition, TOra also supports postgres and mysql if your Qt library is compiled with that support. Oracle is copyright of Oracle Corporation. %prep %setup -q #%patch1 -p1 %build %cmake_kde4 -DPOSTGRESQL_PATH_LIB=%{libdir}/postgresql/ \ -DPOSTGRESQL_PATH_INCLUDES=%{includedir}/postgresql/ %make %install %makeinstall_std -C build %find_lang %name # menu %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/applications cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=TOra Comment=Toolkit for Oracle Exec=%{name} Icon=%{name} Terminal=false Type=Application X-KDE-StartupNotify=true Categories=X-MandrivaLinux-MoreApplications-Databases;Database;KDE;Qt; MimeType=application/x-tora; EOF %{__install} -D --mode=644 src/icons/tora.xpm $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/tora.xpm %{__install} -D --mode=644 src/icons/toramini.xpm $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/tora.xpm %{__install} -d $RPM_BUILD_ROOT%{_menudir} %{__mkdir_p} $RPM_BUILD_ROOT%{_libdir} %{__install} --mode=644 src/templates/*.tpl $RPM_BUILD_ROOT%{_libdir}/ cat > ${RPM_BUILD_ROOT}/%{_docdir}/tora/README.urpmi << EOF ATTENTION: This package of TOra doesn't include Oracle support. If you need Oracle support, please install Oracle instant client first and download tora-oracle package For Mandriva from http://www.sourceforge.net/projects/tora/files instead. You can download Oracle instant client from Oracle web site for free. EOF %files %defattr(-,root,root) %{_bindir}/* %{_libdir}/*.tpl %_datadir/applications/%{name}.desktop %_datadir/doc/tora/* %{_iconsdir}/hicolor/*/apps/%{name}*.xpm %changelog * Mon Dec 26 2011 fwang <fwang> 2.1.3-4.mga2 + Revision: 187707 - rebuild for new qscintilla * Tue Nov 29 2011 juancho <juancho> 2.1.3-3.mga2 + Revision: 174201 - Removed unnecesary %%post and %%postun * Fri Jul 01 2011 fwang <fwang> 2.1.3-2.mga2 + Revision: 117108 - rebuild for new qscintilla * Mon Apr 18 2011 juancho <juancho> 2.1.3-1.mga1 + Revision: 87609 - Removed BuildRoot. - imported package tora * Fri Oct 22 2010 Juan Luis Baptiste <juancho@mandriva.org> 2.1.3-1mdv2011.0 + Revision: 587202 - Updated to 2.1.3 * Tue May 25 2010 Juan Luis Baptiste <juancho@mandriva.org> 2.1.2-2mdv2010.1 + Revision: 545959 - Modified README.urpmi to let know now Oracle support is available only with tora-oracle package on tora sf.net download site. * Mon Mar 29 2010 Juan Luis Baptiste <juancho@mandriva.org> 2.1.2-1mdv2010.1 + Revision: 528898 - Updated to 2.1.2. * Wed Dec 23 2009 Juan Luis Baptiste <juancho@mandriva.org> 2.1.1-1mdv2010.1 + Revision: 481637 - Updated to 2.1.1 - Removed Office category from desktop file. * Fri Sep 18 2009 Juan Luis Baptiste <juancho@mandriva.org> 2.1.0-1mdv2010.0 + Revision: 444241 - Updated to 2.1.0 - Removed patches 0 and 2 as they're no longer needed, and temporary removed patch 1 as it needs more work. * Tue Sep 08 2009 Stéphane Téletchéa <steletch@mandriva.org> 2.0.0-2mdv2010.0 + Revision: 433121 -remove unneeded lib dependency * Tue Sep 01 2009 Stéphane Téletchéa <steletch@mandriva.org> 2.0.0-1mdv2010.0 + Revision: 424018 - Initial Mandriva import, from spec provided by Juan Luis Baptiste * Wed Jul 31 2009 Juan Luis Baptiste <juancho@mandriva.org> 2.0.0-1mdv2010.0 - Initial Mandriva import