]>
Commit | Line | Data |
---|---|---|
cf4ba209 | 1 | # |
12df82dd JR |
2 | # Conditional build: |
3 | %bcond_with oracle # build with oracle support | |
1be3bba7 | 4 | %bcond_with instantclient # build oracle support with oracle-instantclient |
42fd89c5 | 5 | # |
cf4ba209 | 6 | Summary: A graphical toolkit for database developers and administrators |
6dcda7ee | 7 | Summary(pl.UTF-8): Zestaw graficznych narzędzi dla programistów i administratorów baz danych |
d47c5232 | 8 | Name: tora |
1be3bba7 | 9 | Version: 2.1.2 |
4f290de3 | 10 | Release: 1 |
6cc0d870 | 11 | License: GPL v2 |
81ccb641 | 12 | Group: Applications/Databases/Interfaces |
37aec885 | 13 | Source0: http://dl.sourceforge.net/tora/%{name}-%{version}.tar.gz |
1be3bba7 | 14 | # Source0-md5: 2b49bbe9f4dc83ce33a22e888575ea73 |
9c072a02 | 15 | Source1: %{name}.desktop |
f8ade871 | 16 | Patch0: %{name}-postgresql.patch |
1be3bba7 | 17 | Patch1: %{name}-gcc.patch |
79dec357 | 18 | URL: http://tora.sourceforge.net/ |
1be3bba7 JR |
19 | BuildRequires: QtCore-devel |
20 | BuildRequires: QtGui-devel | |
21 | BuildRequires: QtSql-devel | |
22 | BuildRequires: QtNetwork-devel | |
23 | BuildRequires: QtXml-devel | |
4f290de3 | 24 | BuildRequires: cppunit-devel |
1be3bba7 | 25 | %{?with_instantclient:BuildRequires: oracle-instantclient-devel} |
42fd89c5 | 26 | BuildRequires: pcre-devel |
cdaca0ba JR |
27 | BuildRequires: postgresql-devel |
28 | BuildRequires: qscintilla2-devel | |
1be3bba7 JR |
29 | BuildRequires: qt4-build |
30 | BuildRequires: qt4-linguist | |
31 | BuildRequires: xorg-lib-libICE-devel | |
13c0fe2d | 32 | Suggests: QtSql-pgsql |
d47c5232 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
cdaca0ba JR |
35 | %if %{with oracle} |
36 | # ORACLE_HOME is required for oracle | |
37 | %define _preserve_env %_preserve_env_base ORACLE_HOME | |
38 | %endif | |
39 | ||
d47c5232 | 40 | %description |
42fd89c5 JB |
41 | TOra features a schema browser, SQL worksheet, PL/SQL editor and |
42 | debugger, storage manager, rollback segment monitor, instance manager, | |
43 | and SQL output viewer. Via qt3 it can access PostgreSQL and MySQL | |
44 | directly. Any other database systems can be accessed via ODBC. | |
45 | ||
0a31a46d JR |
46 | %description -l pl.UTF-8 |
47 | TOra zawiera przeglądarkę schematów, arkusz roboczy SQL, edytor i | |
48 | debugger PL/SQL, zarządcę danych, monitor segmentów wycofań, zarządcę | |
49 | instancji i przeglądarkę wyjścia SQL. Poprzez qt3 może współpracować | |
50 | bezpośrednio z bazami PostgreSQL i MySQL. Inne systemy baz danych mogą | |
51 | być obsługiwane poprzez ODBC. | |
d47c5232 | 52 | |
53 | %prep | |
54 | %setup -q | |
58a5a6e7 | 55 | %patch0 -p1 |
1be3bba7 | 56 | %patch1 -p1 |
d47c5232 | 57 | |
cdaca0ba JR |
58 | rm -f src/moc_* |
59 | ||
d47c5232 | 60 | %build |
cdaca0ba JR |
61 | %{__libtoolize} |
62 | %{__aclocal} -I config/m4 | |
63 | %{__autoconf} | |
64 | %{__automake} | |
07ae61a6 | 65 | %configure \ |
cdaca0ba | 66 | --libdir=%{_datadir}/%{name} \ |
1be3bba7 JR |
67 | --with-qt-libraries=%{_libdir} \ |
68 | %if %{with oracle} | |
69 | %if %{with instantclient} | |
70 | --with-instant-client \ | |
71 | --with-oracle-includes=%{_includedir}/oracle/client \ | |
72 | --with-oracle-libraries=%{_libdir} \ | |
73 | %endif | |
74 | --with-oracle | |
75 | %else | |
76 | --without-oracle | |
77 | %endif | |
07ae61a6 | 78 | |
d47c5232 | 79 | %{__make} |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
58a5a6e7 | 83 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
d47c5232 | 84 | |
a4f6d35b | 85 | %{__make} install \ |
07ae61a6 | 86 | DESTDIR=$RPM_BUILD_ROOT |
391b5823 | 87 | |
39781324 | 88 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
cdaca0ba JR |
89 | install src/icons/tora.xpm $RPM_BUILD_ROOT%{_pixmapsdir} |
90 | cp -a src/templates $RPM_BUILD_ROOT%{_datadir}/%{name} | |
4f1340cd | 91 | |
d47c5232 | 92 | %clean |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
39781324 | 97 | %doc BUGS NEWS README TODO |
d47c5232 | 98 | %attr(755,root,root) %{_bindir}/* |
cdaca0ba JR |
99 | %dir %{_datadir}/%{name} |
100 | %{_datadir}/%{name}/help | |
101 | %{_datadir}/%{name}/templates | |
102 | %{_datadir}/%{name}/*.qm | |
65d26215 | 103 | %{_desktopdir}/*.desktop |
39781324 | 104 | %{_pixmapsdir}/* |
b2328e52 | 105 | %{_infodir}/tora* |