ff386b2d5e
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/unixODBC?expand=0&rev=17
128 lines
4.0 KiB
RPMSpec
128 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package unixODBC-gui-qt
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: unixODBC-gui-qt
|
|
BuildRequires: qt3-devel
|
|
BuildRequires: libtool
|
|
Version: 2.2.12
|
|
Release: 0
|
|
Summary: ODBC Configuration Utility, Data Source Browser, and ODBC Test Tool based
|
|
License: GPL-2.0+
|
|
Url: http://www.unixodbc.org/
|
|
Group: Productivity/Databases/Tools
|
|
Requires: unixODBC = %{version}
|
|
Source: unixODBC-%{version}.tar.bz2
|
|
Source1: README.SuSE
|
|
Patch1: unixODBC-paths.patch
|
|
Patch4: unixODBC-odbctest.patch
|
|
Patch5: unixODBC-iaddr.patch
|
|
Patch6: unixODBC-nonvoid.patch
|
|
Patch7: unixODBC-gccwarnings.patch
|
|
Patch8: unixODBC-%{version}-dm.patch
|
|
Patch10: unixODBC-%{version}-libodbcinst-exports.patch
|
|
Patch11: unixODBC-%{version}-flex.patch
|
|
Patch12: unixODBC-%{version}-ctracing.patch
|
|
Patch13: unixODBC-2.2.12-CVE-2011-1145.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
A collection of graphical tools (based on QT3) for UnixODBC.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Peter Harvey <pharvey@codebydesigns.com>
|
|
Nick Gorham <nick@easysoft.com>
|
|
|
|
%prep
|
|
%setup -q -n unixODBC-%{version}
|
|
%patch1
|
|
%patch4
|
|
%patch5
|
|
%patch6
|
|
%patch7
|
|
#patch8 -p1
|
|
%patch10
|
|
%patch11
|
|
%patch12
|
|
%patch13 -p1
|
|
install -m 644 %{S:1} .
|
|
|
|
%build
|
|
export -n LANG LINGUAS LC_ALL
|
|
rm -rf libltdl
|
|
LIBTOOLIZE="libtoolize --ltdl" autoreconf --force --install
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
./configure \
|
|
--prefix=%{_prefix} \
|
|
--mandir=%{_mandir} \
|
|
--infodir=%{_infodir} \
|
|
--libdir=%{_libdir} \
|
|
--sysconfdir=%{_sysconfdir}/unixODBC \
|
|
--with-qt-dir=/usr/lib/qt3 \
|
|
--with-qt-libraries=/usr/lib/qt3/%{_lib} \
|
|
--x-libraries=`pkg-config --variable libdir x11` \
|
|
--x-includes=`pkg-config --variable includedir x11` \
|
|
--disable-stats
|
|
make CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/libtool
|
|
#remove files packaged in main specfile
|
|
rm -f $RPM_BUILD_ROOT/etc/unixODBC/odbc.ini
|
|
rm -f $RPM_BUILD_ROOT/etc/unixODBC/odbcinst.ini
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/dltest
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/isql
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/iusql
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/odbc_config
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/odbcinst
|
|
rm -f $RPM_BUILD_ROOT/usr/include/autotest.h
|
|
rm -f $RPM_BUILD_ROOT/usr/include/odbcconfig.h
|
|
rm -f $RPM_BUILD_ROOT/usr/include/odbcinst.h
|
|
rm -f $RPM_BUILD_ROOT/usr/include/odbcinstext.h
|
|
rm -f $RPM_BUILD_ROOT/usr/include/sql.h
|
|
rm -f $RPM_BUILD_ROOT/usr/include/sqlext.h
|
|
rm -f $RPM_BUILD_ROOT/usr/include/sqltypes.h
|
|
rm -f $RPM_BUILD_ROOT/usr/include/sqlucode.h
|
|
rm -f $RPM_BUILD_ROOT/usr/include/uodbc_stats.h
|
|
rm -f $RPM_BUILD_ROOT/usr/%_lib/libboundparam.*
|
|
rm -f $RPM_BUILD_ROOT/usr/%_lib/libgtrtst.*
|
|
rm -f $RPM_BUILD_ROOT/usr/%_lib/libodbc.*
|
|
rm -f $RPM_BUILD_ROOT/usr/%_lib/libodbccr.*
|
|
rm -f $RPM_BUILD_ROOT/usr/%_lib/libodbcinst.*
|
|
rm -f $RPM_BUILD_ROOT/usr/%_lib/libtemplate.*
|
|
rm -rf $RPM_BUILD_ROOT/usr/%_lib/unixODBC
|
|
|
|
%clean
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%{_prefix}/bin/DataManager
|
|
%{_prefix}/bin/DataManagerII
|
|
%{_prefix}/bin/ODBCConfig
|
|
%{_prefix}/bin/qtodbctest
|
|
%{_libdir}/libodbcinstQ.*
|
|
%exclude /usr/include/uodbc_extras.h
|
|
|
|
%changelog
|