Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37531984
en ru br
Репозитории ALT
S:2.3.11-alt1
5.1: 2.2.12-alt5
4.1: 2.2.12-alt3
4.0: 2.2.12-alt3
3.0: 2.2.8-alt3.1
www.altlinux.org/Changes

Группа :: Базы Данных
Пакет: unixODBC

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define abiversion 2
%define somask %{abiversion}*

Name:    unixODBC
Version: 2.3.11
Release: alt1

Summary: Unix ODBC driver manager and database drivers
Summary(ru_RU.UTF-8): п║п╦я│я┌п╣п╪п╟ я┐п©я─п╟п╡п╩п╣п╫п╦я▐ п╢я─п╟п╧п╡п╣я─п╟п╪п╦ ODBC п╢п╩я▐ unix

License: LGPLv2
Group: Databases
Url: http://www.unixODBC.org

Requires: lib%name%abiversion = %version-%release
Provides: MyODBC = %version-%release
Provides:  unixodbc = %version-%release
Obsoletes: unixodbc < %version-%release

# Source0-url: http://www.unixodbc.org/%name-%version.tar.gz

Source0: %name-%version.tar

Source1: %name-odbcinst.ini
Source2: %name-DataManager.desktop
Source3: %name-ODBCConfig.desktop

Patch1: %name-depcomp.patch
Patch4: %name-2.2.11-symbols.patch
Patch5: %name-remove-rpath-to-libdir.patch
# Patches from Fedora
Patch11: keep-typedefs.patch
Patch12: so-version-bump.patch

BuildRequires: flex gcc-c++ libltdl7-devel libreadline-devel
BuildRequires: chrpath

%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.
You will also need the mysql-connector-odbc package if you want to
access a MySQL database, and/or the postgresql-odbc package for
PostgreSQL.

%description -l ru_RU.UTF-8
UnixODBC - я█я┌п╬ я│п╡п╬п╠п╬п╢п╫п╬п╣ ODBC-я─п╣я┬п╣п╫п╦п╣.
ODBC п©я─п╣п╢я│я┌п╟п╡п╩я▐п╣я┌ п╦п╥ я│п╣п╠я▐ п╬я┌п╨я─я▀я┌я┐я▌ я│п©п╣я├п╦я└п╦п╨п╟я├п╦я▌ п╢п╩я▐ я─п╟п╥я─п╟п╠п╬я┌п╨п╦
п©я─п╦п╩п╬п╤п╣п╫п╦п╧ я│ я┐п╫п╦п╡п╣я─я│п╟п╩я▄п╫я▀п╪ API п╢п╩я▐ п╢п╬я│я┌я┐п©п╟ п╨ п╠п╟п╥п╟п╪ п╢п╟п╫п╫я▀я┘.
п▒п╟п╥я▀ п╢п╟п╫п╫я▀я┘ п╡п╨п╩я▌я┤п╟п╣я┌ п╡ я│п╣п╠я▐ я│п╣я─п╡п╣я─я▀ SQL п╦ п╢я─я┐пЁп╦п╣ п╦я│я┌п╬я┤п╫п╦п╨п╦ п╢п╟п╫п╫я▀я┘,
п©п╬п╢п╢п╣я─п╤п╦п╡п╟п╣п╪я▀п╣ ODBC-п╢я─п╟п╧п╡п╣я─п╟п╪п╦.

%package -n lib%name%abiversion
Summary: Shared libraries for ODBC
Summary(ru_RU.UTF-8): п═п╟п╥п╢п╣п╩я▐п╣п╪я▀п╣ п╠п╦п╠п╩п╦п╬я┌п╣п╨п╦ п╢п╩я▐ ODBC
Group: Development/Databases
Provides:  libunixodbc%abiversion = %version-%release
Obsoletes: libunixodbc%abiversion < %version-%release

%description -n lib%name%abiversion
unixODBC aims to provide a complete ODBC solution for the Linux
platform.  This package contains the shared libraries.

%description -n lib%name%abiversion -l ru_RU.UTF-8
unixODBC п©я─п╣п╢я│я┌п╟п╡п╩я▐п╣я┌ п╦п╥ я│п╣п╠я▐ п©п╬п╩п╫я┐я▌ я│п©п╣я├п╦я└п╦п╨п╟я├п╦я▌ ODBC п╢п╩я▐ Linux
п©п╩п╟я┌я└п╬я─п╪я▀.  п╜я┌п╬я┌ п©п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ п╡ я│п╣п╠п╣ я─п╟п╥п╢п╣п╩я▐п╣п╪я▀п╣ п╠п╦п╠п╩п╦п╬я┌п╣п╨п╦.

%package -n lib%name-devel-compat
Summary: Compat libraries for Java build
Group: Development/Databases
Conflicts: lib%{name}1 < 2.2.12-alt8
Provides:  lib%name = %version-%release
Obsoletes: lib%name < %version-%release
%ifarch x86_64
Provides: libodbc.so()(64bit) libodbcinst.so()(64bit)
%else
Provides: libodbc.so libodbcinst.so
%endif

%description -n lib%name-devel-compat
Compat libraries for Java build.

%package -n lib%name-devel
Summary: Includes for ODBC development
Summary(ru_RU.UTF-8): п≈п╟пЁп╬п╩п╬п╡п╬я┤п╫я▀п╣ я└п╟п╧п╩я▀ п╢п╩я▐ я─п╟п╥я─п╟п╠п╬я┌п╨п╦ я│ п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦п╣п╪ ODBC
Group: Development/Databases
Requires: lib%name%abiversion = %version-%release
Requires: lib%name-devel-compat = %version-%release

%description -n lib%name-devel
unixODBC aims to provide a complete ODBC solution for the Linux
platform.  This package contains the include files for development.

%description -n lib%name-devel -l ru_RU.UTF-8
unixODBC п©я─п╣п╢я│я┌п╟п╡п╩я▐п╣я┌ п╦п╥ я│п╣п╠я▐ п©п╬п╩п╫я┐я▌ я│п©п╣я├п╦я└п╦п╨п╟я├п╦я▌ ODBC п╢п╩я▐ Linux
п©п╩п╟я┌я└п╬я─п╪я▀.  п╜я┌п╬я┌ п©п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ п╥п╟пЁп╬п╩п╬п╡п╬я┤п╫я▀п╣ я└п╟п╧п╩я▀ п╢п╩я▐ я─п╟п╥я─п╟п╠п╬я┌п╨п╦ я│
п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦п╣п╪ ODBC

%prep
%setup
%patch4 -p1
%patch5 -p2
%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 compile depcomp missing
# this hack is so we can build with either libtool 2.2 or 1.5
libtoolize --install || libtoolize
rm libltdl/config-h.in
cp %_datadir/libtool/libltdl/config-h.in libltdl/config-h.in

%build
autoreconf -vfi

# unixODBC 2.2.14 is not aliasing-safe

CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="$CFLAGS"
export CFLAGS CXXFLAGS

%configure \
--with-gnu-ld \
--enable-threads \
--enable-drivers \
--enable-driverc \
--enable-ltdllib \
--disable-static
%make_build

%install
%makeinstall_std

# Remove standard libdir from executables and library RPATH

chrpath -d %buildroot%_bindir/* %buildroot%_libdir/libodbccr.so*

install -pD -m644 %SOURCE1 %buildroot%_sysconfdir/odbcinst.ini
subst "s, at libdir at ,%_libdir," %buildroot%_sysconfdir/odbcinst.ini

find doc -name Makefile\* -delete

%files
%doc AUTHORS COPYING README doc/AdministratorManual doc/UserManual doc/index.html doc/*.gif
%config(noreplace) %verify(not md5 size mtime) %_sysconfdir/odbc*.ini
%_bindir/dltest
%_bindir/isql
%_bindir/iusql
%_bindir/odbcinst
%_bindir/slencheck
%doc %_man1dir/*
%doc %_man5dir/*
%doc %_man7dir/*

%files -n lib%name%abiversion
%_libdir/libnn.so.%somask
%_libdir/libodbc.so.%somask
%_libdir/libodbccr.so.%somask
%_libdir/libodbcinst.so.%somask
%_libdir/libodbcpsql.so.%somask
%_libdir/libtemplate.so.%somask

%_libdir/libodbcpsql.so

%files -n lib%name-devel-compat
%_libdir/libodbc.so
%_libdir/libodbcinst.so

%files -n lib%name-devel
%doc ChangeLog doc/ProgrammerManual doc/lst
%dir %_includedir/unixODBC/
%_includedir/unixODBC/config.h
%_includedir/unixODBC/unixodbc_conf.h
%_includedir/unixodbc.h
%_includedir/autotest.h
%_includedir/odbcinst.h
%_includedir/odbcinstext.h
%_includedir/sql.h
%_includedir/sqlext.h
%_includedir/sqlspi.h
%_includedir/sqltypes.h
%_includedir/sqlucode.h
%_includedir/uodbc_extras.h
%_includedir/uodbc_stats.h
%_bindir/odbc_config
%_libdir/libnn.so
%_libdir/libodbccr.so
%_libdir/libtemplate.so
%_pkgconfigdir/odbc.pc
%_pkgconfigdir/odbccr.pc
%_pkgconfigdir/odbcinst.pc

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin