Projects
home:pandora:RobinOS23
unixODBC
_service:download_src_package:unixODBC.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:unixODBC.spec of Package unixODBC
%define anolis_release 1 Summary: A complete ODBC driver manager for Linux Name: unixODBC Version: 2.3.11 Release: %{anolis_release}%{?dist} URL: http://www.unixODBC.org/ # Programs are GPL, libraries are LGPL, except News Server library is GPL. License: GPLv2+ and LGPLv2+ Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz Source1: odbcinst.ini Source5: README.dist Patch8: so-version-bump.patch Patch9: keep-typedefs.patch Conflicts: iodbc BuildRequires: make BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex BuildRequires: readline-devel BuildRequires: multilib-rpm-config %description Install unixODBC if you want to access databases through ODBC. You will also need the mariadb-connector-odbc package if you want to access a MySQL or MariaDB database, and/or the postgresql-odbc package for PostgreSQL. %package doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %package devel Summary: Development files for programs which will use the unixODBC library Requires: %{name} = %{version}-%{release} %description devel The unixODBC package can be used to access databases through ODBC drivers. If you want to develop programs that will access data through ODBC, you need to install this package. %prep %setup -q %patch8 -p1 -b .soname-bump %patch9 -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 autoreconf -vfi %build # 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-drivers=yes --enable-driverc=yes # Get rid of the rpaths sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make all %install make DESTDIR=$RPM_BUILD_ROOT install install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} %multilib_fix_c_header --file %{_includedir}/unixODBC/unixodbc_conf.h # add some explanatory documentation cp %{SOURCE5} README.dist # remove obsolete Postgres drivers from the package (but not the setup code) rm -f $RPM_BUILD_ROOT%{_libdir}/libodbcpsql.so* # make directory for unversioned plugins and create appropriate symlinks mkdir $RPM_BUILD_ROOT%{_libdir}/%{name} # 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 # initialize lists of .so files find $RPM_BUILD_ROOT%{_libdir} -name "*.so.*" | sed "s|^$RPM_BUILD_ROOT||" > base-so-list find $RPM_BUILD_ROOT%{_libdir} -name "*.so" | sed "s|^$RPM_BUILD_ROOT||" > devel-so-list %files -f base-so-list %doc COPYING %doc README.dist %config(noreplace) %{_sysconfdir}/odbc* %{_bindir}/odbcinst %{_bindir}/isql %{_bindir}/dltest %{_bindir}/iusql %{_bindir}/odbc_config %{_bindir}/slencheck %{_mandir}/man*/* %files doc %doc README AUTHORS ChangeLog NEWS doc %files devel -f devel-so-list %{_includedir}/* %_libdir/pkgconfig/*.pc %changelog * Thu Sep 22 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 2.3.11-1 - update to 2.3.11 * Tue Jul 12 2022 happy_orange <songnannan@linux.alibaba.com> - 2.3.9-1 - Init pcakage from upstream
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2