103 lines
2.9 KiB
RPMSpec
103 lines
2.9 KiB
RPMSpec
Name: unixodbc-gui-qt
|
|
Version: 2.3.0
|
|
Release: 1mamba
|
|
Summary: Qt based GUI bits for unixODBC
|
|
Group: Graphical Desktop/Applications/Databases
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://unixodbc-gui-qt.sourceforge.net/
|
|
Source: http://unixodbc-gui-qt.sourceforge.net/unixodbc-gui-qt-%{version}.tar.gz
|
|
Patch0: %{name}-2.3.0-missing_headers.patch
|
|
Patch1: %{name}-2.3.0-qt-4.7.1.patch
|
|
Patch2: %{name}-2.3.0-ODBCTestQ4_xpm.patch
|
|
# Create source tarball with:
|
|
# svn co https://unixodbc-gui-qt.svn.sourceforge.net/svnroot/unixodbc-gui-qt unixodbc-gui-qt
|
|
# cd unixodbc-gui-qt/trunk
|
|
# make -f Makefile.svn
|
|
# ./configure --with-qt-dir-lib=/usr/lib/qt4 --with-qt-dir-include=/usr/include/qt4 --with-qt-bin=/usr/lib/qt4/bin MOC=/usr/lib/qt4/bin/moc UIC=/usr/lib/qt4/bin/uic
|
|
# make dist
|
|
License: LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
## note: run 'autospec -u -a6 unixodbc-gui-qt' to get the list of build requirements.
|
|
## AUTOBUILDREQ-END
|
|
Provides: unixODBC-qt-gui
|
|
Obsoletes: unixODBC-qt-gui
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Qt based GUI bits for unixODBC. Includes configuration interface and data manager.
|
|
|
|
%package devel
|
|
Summary: Devel package for %{name}
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Qt based GUI bits for unixODBC. Includes configuration interface and data manager.
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
%build
|
|
%configure \
|
|
--with-qt-dir-lib=%{_qt4_libdir} \
|
|
--with-qt-dir-include=%{_qt4_headerdir} \
|
|
--with-qt-bin=%{_qt4_bindir} \
|
|
MOC=%{_qt4_bindir}/moc \
|
|
UIC=%{_qt4_bindir}/uic
|
|
|
|
# quite ugly but don't have a lot of time now
|
|
touch gtrtstQ4/gtrtstQ4.exp
|
|
cp gtrtstQ4/autotest.h ODBCTestQ4/
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
## remove this block if no service is provided by this package
|
|
%preun
|
|
if [ $1 -eq 0 ]; then
|
|
/sbin/service <daemon_name> stop &>/dev/null || :
|
|
/sbin/chkconfig --del <daemon_name>
|
|
fi
|
|
exit 0
|
|
|
|
## remove this block if no service is provided by this package
|
|
%postun
|
|
if [ $1 -ge 1 ]; then
|
|
/sbin/service <daemon_name> condrestart &>/dev/null || :
|
|
fi
|
|
exit 0
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/ODBCCreateDataSourceQ4
|
|
%{_bindir}/ODBCManageDataSourcesQ4
|
|
%{_bindir}/ODBCTestQ4
|
|
%{_libdir}/libgtrtstQ4.so.*
|
|
%{_libdir}/libodbcinstQ4.so.*
|
|
#%doc AUTHORS COPYING ChangeLog NEWS README
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgtrtstQ4.a
|
|
%{_libdir}/libgtrtstQ4.la
|
|
%{_libdir}/libgtrtstQ4.so
|
|
%{_libdir}/libodbcinstQ4.a
|
|
%{_libdir}/libodbcinstQ4.la
|
|
%{_libdir}/libodbcinstQ4.so
|
|
|
|
%changelog
|
|
* Fri Dec 24 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.0-1mamba
|
|
- package created by autospec
|