123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- %define __libtoolize true
- %define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo 4.8.5)
- %define _qt4_bindir %(pkg-config --variable bindir --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{_qt4_version}/bin)
- Name: unixODBC
- Summary: A complete ODBC Driver Manager for Linux
- Version: 2.2.14
- Release: 3%{?_dist_release}
- Group: System Environment/Libraries
- # Programs are GPL, libraries are LGPL, except News Server library is GPL.
- License: GPLv2+ and LGPLv2+
- URL: http://www.unixODBC.org/
- Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz
- Source1: odbcinst.ini
- Source2: ODBCConfig.desktop
- Source3: DataManager.desktop
- Source4: conffile.h
- Patch1: depcomp.patch
- Patch2: multilib-config.patch
- Patch3: warning-cleanup.patch
- Patch6: export-symbols.patch
- Patch7: libtool-config.patch
- Patch8: so-version-bump.patch
- Patch9: keep-typedefs.patch
- Patch10: odbcint64-config.patch
- Patch11: enable-items.patch
- Patch12: isql-fixes.patch
- Conflicts: iodbc
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: libX11-devel libXt-devel libXext-devel
- BuildRequires: qt4-devel qt-assistant-adp-devel readline-devel
- BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex
- BuildRequires: desktop-file-utils
- Vendor: Project Vine
- Distribution: Vine Linux
- %description
- The unixODBC Project goals are to develop and promote unixODBC to
- be the definitive standard for ODBC on the Linux platform. This is to
- include GUI support for KDE.
- Install unixODBC if you'd like to access databases through ODBC. This
- package include drivers for PostgreSQL and local files.
- If you want to develop programs that will access data through ODBC,
- you'll also need to have the unixODBC package installed.
- %package devel
- Summary: Development files for programs which will use the unixODBC library.
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- %description devel
- Install unixODBC if you'd like to access databases through ODBC drivers.
- If you want to develop programs that will access data through ODBC,
- you'll also need to install the unixODBC-devel (this) package.
- %package kde
- Summary: KDE DriverManager components for ODBC
- Group: System Environment/Libraries
- Requires: %{name} = %{version}-%{release}
- %description kde
- Components for the ODBCConfig and DataManager (KDE) Components of unixODBC.
- %prep
- %setup -q
- %patch1 -p1
- %patch2 -p1
- %patch3 -p1
- %patch6 -p1
- %patch7 -p1
- %patch8 -p1
- %patch9 -p1
- %patch10 -p1
- %patch11 -p1
- %patch12 -p1
- chmod 0644 Drivers/MiniSQL/*.c
- chmod 0644 Drivers/nn/*.c
- chmod 0644 Drivers/template/*.c
- chmod 0644 doc/ProgrammerManual/Tutorial/*.html
- chmod 0644 doc/lst/*
- chmod 0644 include/odbcinst.h
- # Blow away the embedded libtool and replace with build system's libtool.
- # (We will use the installed libtool anyway, but this makes sure they match.)
- rm -rf config.guess config.sub install-sh ltmain.sh libltdl
- # this hack is so we can build with either libtool 2.2 or 1.5
- libtoolize --install || libtoolize
- %build
- # pick up qt path
- export PATH="%{_qt4_bindir}:$PATH"
- # clean up old moc files
- (cd odbcinstQ4 && rm -f mC*.cpp)
- aclocal
- automake --add-missing
- autoconf
- # unixODBC 2.2.14 is not aliasing-safe
- CFLAGS="%{optflags} -fno-strict-aliasing"
- CXXFLAGS="$CFLAGS"
- export CFLAGS CXXFLAGS
- %configure --with-gnu-ld=yes --enable-threads=yes --enable-gui=yes --enable-drivers --enable-ltdllib --with-qt-programs="%{_qt4_bindir}" --with-qt-libraries="%{_qt4_libdir}" --with-qt-includes="%{_qt4_headerdir}"
- make all
- %install
- # pick up qt path
- export PATH="%{_qt4_bindir}:$PATH"
- rm -rf $RPM_BUILD_ROOT
- mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
- mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
- make DESTDIR=$RPM_BUILD_ROOT install
- cp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
- # install *.desktop files
- desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2}
- # package doesn't supply an icon for ODBCConfig, so use the one for DataManager
- cp DataManager/LinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps
- # multilib header hacks
- # we only apply this to known Red Hat multilib arches, per bug #181335
- case `uname -i` in
- i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 )
- mv $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf_`uname -i`.h
- rm -f unixodbc_conf.h
- sed s/CONFFILE/unixodbc_conf/ %{SOURCE4} >unixodbc_conf.h
- install -m 644 unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir}
- ;;
- *)
- ;;
- esac
- # remove obsolete Postgres drivers from the package (but not the setup code)
- rm -f $RPM_BUILD_ROOT%{_libdir}/libodbcpsql.so*
- # copy text driver documentation into main doc directory
- # currently disabled because upstream no longer includes text driver
- # mkdir -p doc/Drivers/txt
- # cp -pr Drivers/txt/doc/* doc/Drivers/txt
- # don't want to install doc Makefiles as docs
- #find doc -name 'Makefile*' | xargs rm
- # we do not want to ship static libraries
- rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
- # remove unpackaged files from the buildroot
- rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
- rm -f $RPM_BUILD_ROOT%{_libdir}/libltdl.*
- rm -rf $RPM_BUILD_ROOT%{_datadir}/libtool
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %post kde -p /sbin/ldconfig
- %postun kde -p /sbin/ldconfig
- %files
- %defattr(-,root,root)
- %doc README COPYING AUTHORS ChangeLog NEWS INSTALL doc
- %config(noreplace) %{_sysconfdir}/odbc*
- %{_bindir}/dltest
- %{_bindir}/isql
- %{_bindir}/iusql
- %{_bindir}/odbcinst
- %{_libdir}/libboundparam.so.*
- %{_libdir}/libesoobS.so.*
- %{_libdir}/libgtrtst.so.*
- %{_libdir}/libmimerS.so.*
- %{_libdir}/libnn.so.*
- %{_libdir}/libodbc.so.*
- %{_libdir}/libodbccr.so.*
- %{_libdir}/libodbcdrvcfg1S.so.*
- %{_libdir}/libodbcdrvcfg2S.so.*
- #%{_libdir}/libodbcextras.so.*
- %{_libdir}/libodbcinst.so.*
- %{_libdir}/libodbcminiS.so.*
- %{_libdir}/libodbcmyS.so.*
- %{_libdir}/libodbcnnS.so.*
- #%{_libdir}/libodbcpsql.so.*
- %{_libdir}/libodbcpsqlS.so.*
- #%{_libdir}/libodbctxt.so.*
- %{_libdir}/libodbctxtS.so.*
- %{_libdir}/liboplodbcS.so.*
- %{_libdir}/liboraodbcS.so.*
- %{_libdir}/libsapdbS.so.*
- %{_libdir}/libtdsS.so.*
- %{_libdir}/libtemplate.so.*
- %files devel
- %defattr(-,root,root)
- %{_bindir}/odbc_config
- %{_includedir}/*
- %{_libdir}/libboundparam.so
- %{_libdir}/libesoobS.so
- %{_libdir}/libgtrtst.so
- %{_libdir}/libmimerS.so
- %{_libdir}/libnn.so
- %{_libdir}/libodbc.so
- %{_libdir}/libodbccr.so
- %{_libdir}/libodbcdrvcfg1S.so
- %{_libdir}/libodbcdrvcfg2S.so
- #%{_libdir}/libodbcextras.so
- %{_libdir}/libodbcinst.so
- %{_libdir}/libodbcminiS.so
- %{_libdir}/libodbcmyS.so
- %{_libdir}/libodbcnnS.so
- #%{_libdir}/libodbcpsql.so
- %{_libdir}/libodbcpsqlS.so
- #%{_libdir}/libodbctxt.so
- %{_libdir}/libodbctxtS.so
- %{_libdir}/liboplodbcS.so
- %{_libdir}/liboraodbcS.so
- %{_libdir}/libsapdbS.so
- %{_libdir}/libtdsS.so
- %{_libdir}/libtemplate.so
- #{_libdir}/*.a
- #{_libdir}/*.la
- %files kde
- %defattr(-,root,root)
- %{_bindir}/ODBCConfig
- %{_datadir}/applications/ODBCConfig.desktop
- %{_datadir}/pixmaps/LinuxODBC.xpm
- %{_libdir}/libodbcinstQ*so
- %{_libdir}/libodbcinstQ*so.*
- %changelog
- * Fri Dec 27 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.14-3
- - rebuild with VineSeed environment
- * Tue Apr 12 2011 IWAI, Masaharu <iwai@alib.jp> 2.2.14-2
- - add --with-qt-includes option for configure
- * Sat Apr 09 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.14-1
- - updated to 2.2.14
- * Sat Sep 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.12-1
- - applied new versioning policy
- - removed *.la files from devel package
- * Sun Sep 02 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.12-0vl1
- - updated to 2.2.12
- - rebuilt with new toolchain
- * Thu Sep 07 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.11-0vl3
- - use installed libltdl
- - added unixODBC-2.2.11-symbols.patch and nortldglobal.patch
- * Sat Apr 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.11-0vl2
- - rebuilt with readline 5.1
- * Wed Aug 24 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.11-0vl1
- - updated to 2.2.11
- - not libtoolize
- * Sat Sep 27 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.2.5-0vl2
- - added Patch100 to fix typo in doc/Makefile.am from failure on compiling
- * Fri Jun 6 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.5-0vl1
- - source upgrade
- - remove patch (no need)
- - run libtoolize etc for VineSeed
- * Wed Feb 12 2003 Tomoya TAKA <taka@vinelinux.org> 2.2.4-0vl2
- - enable -kde subpackage on alpha, but still disable for Vine2.5/2.6
- * Sun Feb 9 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.4-0vl1
- - source upgrade
- - change spec to build both VineSeed and Vine2.5/2.6
- - add patch from rawhide 2.2.3-6
- * Sun Oct 13 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.3-0vl2
- - Requires: libjpeg (not libjpeg-6b)
- * Sun Oct 6 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.3-0vl1
- - source upgrade
- - add BuildPrereq: autoconf253 automake15
- - add PreReq: ldconfig
- - fix %files section and clean up spec
- - for unixODBC-kde package
- - add Requires: unixODBC = %{version}
- - add Requires: XFree86-libs qt freetype2 libjpeg-6b libmng libpng zlib
- - delete .desktop files
- * Thu Apr 4 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.2.0-0vl2
- - rebuild with KDE3
- * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 2.2.0-0vl1
- - updated unixODBC-2.2.0
- - fixed LinuxODBC.xpm and smallLinuxODBC.xpm dir
- * Wed Jan 30 2002 Tomoya TAKA <taka@vinelinux.org> 2.0.7-3vl2
- - remove -kde package on alpha
- * Fri Jan 4 2002 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.7-3vl1
- - Rebuild for Vine.
- * Sun Jun 24 2001 Than Ngo <than@redhat.com>
- - rebuild against qt-2.3.1, kde-2.1.x
- * Fri Jun 15 2001 Trond Eivind Glomsrød <teg@redhat.com>
- - Better default odbcinst.ini
- - Minor cleanups
- * Wed Jun 6 2001 Trond Eivind Glomsrød <teg@redhat.com>
- - 2.0.7
- * Wed Apr 25 2001 Trond Eivind Glomsrød <teg@redhat.com>
- - Fix for isql segfault on EOF/ctrl-d exit
- * Fri Apr 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
- - 2.0.6
- - add patch for 64 bit archs (dword shouldn't be "long int")
- * Wed Feb 28 2001 Trond Eivind Glomsrød <teg@redhat.com>
- - rebuild
- * Tue Nov 28 2000 Trond Eivind Glomsrød <teg@redhat.com>
- - 1.8.13
- * Tue Oct 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- - enable GUI now that we have KDE compiled with the standard
- compiler
- - move the applnk entries to the KDE package
- * Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com>
- - add the missing shared libs to the non-devel package
- * Wed Aug 23 2000 Preston Brown <pbrown@redhat.com>
- - 1.8.12 fixes problems with the postgresql driver
- * Mon Jul 31 2000 Trond Eivind Glomsrød <teg@redhat.com>
- - disable KDE subpackage to avoid the mess that is C++ binary
- compatibility
- * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- - automatic rebuild
- * Fri Jun 30 2000 Florian La Roche <laroche@redhat.com>
- - improved QTDIR detection
- * Wed Jun 28 2000 Trond Eivind Glomsrød <teg@redhat.com>
- - 1.8.10
- - use %%{_tmppath}
- - update URL
- - including two missing libraries
- * Tue Jun 13 2000 Preston Brown <pbrown@redhat.com>
- - 1.8.9
- * Fri Jun 09 2000 Preston Brown <pbrown@redhat.com>
- - adopted for Winston, changed to Red Hat packaging standards
- * Tue Apr 18 2000 Murray Todd Williams <murray@codingapes.com>
- - added a unixODBC-devel RPM to the group, added KDE links and icons to system
- - all of which came from recommendations from Fredrick Meunier
- - <Fredrick.Meunier@computershare.com.au>
- * Mon Apr 17 2000 Murray Todd Williams <murray@codingapes.com>
- - unixODBC-1.8.7
- - moved install to $RPM_BUILD_ROOT so it didn't overrun existing files.
|