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