]> git.pld-linux.org Git - packages/tora.git/blame - tora.spec
- 2.1.2
[packages/tora.git] / tora.spec
CommitLineData
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 6Summary: A graphical toolkit for database developers and administrators
6dcda7ee 7Summary(pl.UTF-8): Zestaw graficznych narzędzi dla programistów i administratorów baz danych
d47c5232 8Name: tora
1be3bba7 9Version: 2.1.2
4f290de3 10Release: 1
6cc0d870 11License: GPL v2
81ccb641 12Group: Applications/Databases/Interfaces
37aec885 13Source0: http://dl.sourceforge.net/tora/%{name}-%{version}.tar.gz
1be3bba7 14# Source0-md5: 2b49bbe9f4dc83ce33a22e888575ea73
9c072a02 15Source1: %{name}.desktop
f8ade871 16Patch0: %{name}-postgresql.patch
1be3bba7 17Patch1: %{name}-gcc.patch
79dec357 18URL: http://tora.sourceforge.net/
1be3bba7
JR
19BuildRequires: QtCore-devel
20BuildRequires: QtGui-devel
21BuildRequires: QtSql-devel
22BuildRequires: QtNetwork-devel
23BuildRequires: QtXml-devel
4f290de3 24BuildRequires: cppunit-devel
1be3bba7 25%{?with_instantclient:BuildRequires: oracle-instantclient-devel}
42fd89c5 26BuildRequires: pcre-devel
cdaca0ba
JR
27BuildRequires: postgresql-devel
28BuildRequires: qscintilla2-devel
1be3bba7
JR
29BuildRequires: qt4-build
30BuildRequires: qt4-linguist
31BuildRequires: xorg-lib-libICE-devel
13c0fe2d 32Suggests: QtSql-pgsql
d47c5232 33BuildRoot: %{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
41TOra features a schema browser, SQL worksheet, PL/SQL editor and
42debugger, storage manager, rollback segment monitor, instance manager,
43and SQL output viewer. Via qt3 it can access PostgreSQL and MySQL
44directly. Any other database systems can be accessed via ODBC.
45
0a31a46d
JR
46%description -l pl.UTF-8
47TOra zawiera przeglądarkę schematów, arkusz roboczy SQL, edytor i
48debugger PL/SQL, zarządcę danych, monitor segmentów wycofań, zarządcę
49instancji i przeglądarkę wyjścia SQL. Poprzez qt3 może współpracować
50bezpośrednio z bazami PostgreSQL i MySQL. Inne systemy baz danych mogą
51być obsługiwane poprzez ODBC.
d47c5232 52
53%prep
54%setup -q
58a5a6e7 55%patch0 -p1
1be3bba7 56%patch1 -p1
d47c5232 57
cdaca0ba
JR
58rm -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
82rm -rf $RPM_BUILD_ROOT
58a5a6e7 83install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
d47c5232 84
a4f6d35b 85%{__make} install \
07ae61a6 86 DESTDIR=$RPM_BUILD_ROOT
391b5823 87
39781324 88install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
cdaca0ba
JR
89install src/icons/tora.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
90cp -a src/templates $RPM_BUILD_ROOT%{_datadir}/%{name}
4f1340cd 91
d47c5232 92%clean
93rm -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*
This page took 0.06558 seconds and 4 git commands to generate.