Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37913552
en ru br
ALT Linux repositórios
S:2.3.11-alt1
5.0: 2.2.12-alt4
4.1: 2.2.12-alt3
4.0: 2.2.12-alt3
3.0: 2.2.8-alt3.1

Group :: Banco de dados
RPM: unixODBC

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: unixODBC
Version: 2.2.8
Release: alt3.1
Summary: Unix ODBC driver manager and database drivers
Summary(ru_RU.KOI8-R): óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÄÒÁÊ×ÅÒÁÍÉ ODBC ÄÌÑ unix
Source: http://www.unixodbc.org/%name-%version.tar.gz
Source1: odbcinst.ini
Patch1: depcomp.patch
Patch2: rename-lo.patch
Patch3: installedltdl.patch
Patch4: doublefree.patch

Group: Databases
License: LGPL
Url: http://www.unixODBC.org
BuildPreReq: bison, flex, libMySQL-devel >= 3.23.49-alt3, libltdl-devel
# Automatically added by buildreq on Wed Sep 25 2002
BuildRequires: XFree86-devel XFree86-libs flex freetype2 gcc-c++ glibc-devel-static libMySQL-devel libcups libjpeg liblcms libmng libncurses-devel libqt3-devel libreadline-devel libssl libstdc++-devel zlib-devel-static

Provides: libodbc.so, libodbcinst.so, MyODBC

%description
UnixODBC is a free/open and solution for ODBC. ODBC is an open
specifican for providing application developers with a predictable API
with which to access Data Sources. Data Sources include SQL Servers and
any Data Source with an ODBC Driver.

%description -l ru_RU.KOI8-R
UnixODBC - ÜÔÏ Ó×ÏÂÏÄÎÏÅ ODBC ÒÅÛÅÎÉÅ.
ODBC ÐÒÅÄÓÔÁ×ÌÑÅÔ ÉÚ ÓÅÂÑ ÏÔËÒÙÔÕÀ ÓÐÅÃÉÆÉËÁÃÉÀ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ
Ó ÕÎÉ×ÅÒÓÁÌØÎÙÍ API ÄÌÑ ÄÏÓÔÕÐÁ Ë ÂÁÚÁÍ ÄÁÎÎÙÈ.
âÁÚÙ ÄÁÎÎÙÈ ×ËÌÀÞÁÅÔ × ÓÅÂÑ ÓÅÒ×ÅÒÁ SQL É ÄÒÕÇÉÅ ÉÓÔÏÞÎÉËÉ ÄÁÎÎÙÈ, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÅ
ODBC ÄÒÁÊ×ÅÒÁÍÉ.

%package -n lib%name
Summary: Shared libraries for ODBC
Summary(ru_RU.KOI8-R): òÁÚÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ODBC
Group: Development/Databases
Requires: %name = %version

%description -n lib%name
unixODBC aims to provide a complete ODBC solution for the Linux platform.
All programs are GPL.
All libs are LGPL (except nn which is GPL?).
This package contains the shared libraries.

%description -n lib%name -l ru_RU.KOI8-R
unixODBC ÐÒÅÄÓÔÁ×ÌÑÅÔ ÉÚ ÓÅÂÑ ÐÏÌÎÕÀ ÓÐÅÃÉÆÉËÁÃÉÀ ODBC ÄÌÑ Linux ÐÌÁÔÆÏÒÍÙ.
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ × ÓÅÂÅ ÒÁÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ.

%package -n lib%name-devel
Summary: Includes for ODBC development
Summary(ru_RU.KOI8-R): úÁÇÏÌÏ×ÏÞÎÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ODBC
Group: Development/Databases
Requires: %name = %version

%description -n lib%name-devel
unixODBC aims to provide a complete ODBC solution for the Linux platform.
All programs are GPL.
All libs are LGPL (except nn which is GPL?).
This package contains the include files for development.

%description -n lib%name-devel -l ru_RU.KOI8-R
unixODBC ÐÒÅÄÓÔÁ×ÌÑÅÔ ÉÚ ÓÅÂÑ ÐÏÌÎÕÀ ÓÐÅÃÉÆÉËÁÃÉÀ ODBC ÄÌÑ Linux ÐÌÁÔÆÏÒÍÙ.
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÚÁÇÏÌÏ×ÏÞÎÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ODBC

%package -n lib%name-devel-static
Summary: Static libraries for ODBC development
Summary(ru_RU.KOI8-R): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÏÄ ODBC
Group: Development/Databases
Requires: %name = %version

%description -n lib%name-devel-static
unixODBC aims to provide a complete ODBC solution for the Linux platform.
All programs are GPL.
All libs are LGPL (except nn which is GPL?).
This package contains the static libraries for development.

%description -n lib%name-devel-static -l ru_RU.KOI8-R
unixODBC ÐÒÅÄÓÔÁ×ÌÑÅÔ ÉÚ ÓÅÂÑ ÐÏÌÎÕÀ ÓÐÅÃÉÆÉËÁÃÉÀ ODBC ÄÌÑ Linux ÐÌÁÔÆÏÒÍÙ.
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ODBC

%package gui-qt
Summary: ODBC configurator, Data Source browser and ODBC test tool based on Qt
Summary(ru_RU.KOI8-R): óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ODBC , ÕÔÉÌÉÔÁ ÄÌÑ ÐÒÏÓÍÏÔÒÁ ÉÓÔÏÞÎÉËÁ ÄÁÎÎÙÈ É ÔÅÓÔÏ×ÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ODBC, ÏÓÎÏ×ÁÎÎÙÅ ÎÁ Qt
Group: Databases
Requires: %name = %version

%description gui-qt
unixODBC aims to provide a complete ODBC solution for the Linux platform.
All programs are GPL.
All libs are LGPL (except nn which is GPL?).
This package contains two Qt based GUI programs for unixODBC:
ODBCConfig and DataManager

%description gui-qt -l ru_RU.KOI8-R
unixODBC ÐÒÅÄÓÔÁ×ÌÑÅÔ ÉÚ ÓÅÂÑ ÐÏÌÎÕÀ ÓÐÅÃÉÆÉËÁÃÉÀ ODBC ÄÌÑ Linux ÐÌÁÔÆÏÒÍÙ.
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÏÓÎÏ×ÁÎÎÙÅ ÎÁ QT ÕÔÉÌÉÔÙ ÄÌÑ ÒÁÂÏÔÙ Ó unixODBC.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

# 2.2.8 includes a libtool that is too old for some of our architectures.

# Blow it away and replace with build system's libtool.  (We intend to use
# the installed libtool anyway, but this makes sure they match.)
rm -rf config.guess config.sub ltmain.sh libltdl
cp -r /usr/share/libtool/* .

# Use newer install-sh and mkinstalldirs, too

if [ -f libltdl/install-sh ]; then
 cp -f libltdl/install-sh .
fi
if [ -f libltdl/mkinstalldirs ]; then
 cp -f libltdl/mkinstalldirs .
fi

%build
# pick up qt path
export QTDIR=
. /etc/profile.d/qt3dir.sh
# clean up old moc files
(cd ODBCConfig && rm -f mclass*.cpp)
(cd DataManager && rm -f mclass*.cpp)

aclocal
automake
autoconf
pushd libltdl
aclocal
automake -a -c
autoconf
popd

%configure --with-gnu-ld=yes \
   --enable-threads=yes \
   --enable-gui=yes \
   --enable-static=yes \
   --enable-drivers \
   --enable-ltdl-install=no
%make all


%install

export QTDIR=
. /etc/profile.d/qt3dir.sh

rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/share/icons
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons

%makeinstall
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
cp DataManager/LinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/icons
cp DataManager/ODBC.xpm $RPM_BUILD_ROOT%{_datadir}/icons/odbc.xpm
cp DataManagerII/LinuxODBC.xpm $RPM_BUILD_ROOT/usr/share/icons
cp DataManagerII/ODBC.xpm $RPM_BUILD_ROOT/usr/share/icons/odbc.xpm
find $RPM_BUILD_ROOT/%{_libdir} -name "*.so.*" |sed "s|$RPM_BUILD_ROOT||" |grep  -i -v libodbcinstQ > foo-list
find $RPM_BUILD_ROOT/%{_libdir} -name "*.so" |sed "s|$RPM_BUILD_ROOT||" |grep  -i -v libodbcinstQ |grep  -v -E "libodbc.so$" |grep  -v -E "libodbcpsqlS?.so$" |grep  -v -E "libodbcmyS.so$" > foo-list2

# move to main package, it's often dlopened...

echo "%{_libdir}/libodbc.so" >> foo-list
echo "%{_libdir}/libodbcpsql.so" >> foo-list
echo "%{_libdir}/libodbcpsqlS.so" >> foo-list
echo "%{_libdir}/libodbcmyS.so" >> foo-list

# remove unpackaged files from the buildroot

rm -f $RPM_BUILD_ROOT%{_libdir}/*.la

# Menu entries


install -d $RPM_BUILD_ROOT%_menudir


# ODBCConfig

cat << EOF > $RPM_BUILD_ROOT%_menudir/unixODBC-gui-qt
?package(%name-gui-qt): \
needs="x11" \
section="Applications/Databases" \
longtitle="ODBCConfig" \
title="ODBCConfig" \
icon="databases_section.xpm" \
command="ODBCConfig"

?package(%name-gui-qt): \
needs="x11" \
section="Applications/Databases" \
longtitle="DataManager" \
title="DataManager" \
icon="databases_section.xpm" \
command="DataManager"

?package(%name-gui-qt): \
needs="x11" \
section="Applications/Databases" \
longtitle="ODBCtest" \
title="ODBCtest" \
icon="databases_section.xpm" \
command="odbctest"
EOF

find doc -name Makefile\* -exec rm {} \;

%post -n lib%name -p /sbin/ldconfig

%postun -n lib%name -p /sbin/ldconfig

%post -n lib%name-devel -p /sbin/ldconfig

%postun -n lib%name-devel -p /sbin/ldconfig

%post gui-qt
%update_menus

%postun gui-qt
%clean_menus

%files
%doc AUTHORS COPYING INSTALL ChangeLog NEWS README
%config(noreplace) %verify(not md5 size mtime)  %_sysconfdir/odbc*.ini
%_bindir/dltest
%_bindir/isql
%_bindir/iusql
%_bindir/odbcinst

%files -n lib%name -f foo-list

%files -n lib%name-devel
%doc doc/
%_libdir/lib*.so
%_includedir/*

%files -n lib%name-devel-static
%_libdir/lib*.a

%files gui-qt
%_bindir/odbctest
%_bindir/ODBCConfig
%_bindir/DataManager
%_bindir/DataManagerII
%_menudir/unixODBC-gui-qt
%_libdir/libodbcinstQ*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009