Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
MyODBC-unixODBC
MyODBC-unixODBC.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File MyODBC-unixODBC.spec of Package MyODBC-unixODBC
# # spec file for package MyODBC-unixODBC (Version 3.51.27r695) # # Copyright (c) 2009 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: MyODBC-unixODBC BuildRequires: mysql-devel qt3-devel unixODBC-devel %define manager unixODBC License: LGPLv2.1+ Group: Productivity/Databases/Tools AutoReqProv: on Version: 3.51.27r695 Release: 5 Summary: ODBC Interface for Communication with MySQL Compiled with UnixODBC Url: http://www.mysql.com/products/myodbc/index.html Obsoletes: MyODBC-libiodbc Provides: MyODBC-libiodbc Supplements: packageand(unixODBC:mysql-shared) Source0: mysql-connector-odbc-%{version}.tar.bz2 Source1: odbcinst.ini.%{manager}.sample Source2: odbc.ini.%{manager}.sample Source3: README Patch0: MyODBC-3.51.26r1127.diff Patch1: MyODBC-unixODBC-my_bool-cleanup.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description MyODBC is an interface for communication with MySQL. It is one of the most popular ODBC drivers in the open source market, used by many users to access the MySQL functionality. It is compiled with unixODBC. Authors: -------- Michael 'Monty' Widenius <monty@mysql.com> %prep %setup -q -n mysql-connector-odbc-%{version} %patch0 %patch1 %build autoreconf --force --install export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure \ --libdir=%{_libdir}/%{manager} \ --with-mysql-libs=%{_libdir}/mysql \ --with-mysql-includes=%{_includedir}/mysql \ --with-unixODBC=%{_prefix} \ --with-odbc-ini=%{_sysconfdir}/%{manager}/odbc.ini \ --enable-gui \ --with-qt-libraries=/usr/lib/qt3/%{_lib} \ --with-qt-programs=/usr/lib/qt3/bin make %{?jobs:-j%jobs} %install rm -rf $RPM_BUILD_ROOT make "DESTDIR=$RPM_BUILD_ROOT" install # documentation install -d -m 755 $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/ install -m 644 {ChangeLog,README,README.debug,INSTALL,LICENSE.exceptions,LICENSE.gpl} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/ rm $RPM_BUILD_ROOT/%{_datadir}/mysql-connector-odbc/{ChangeLog,README,README.debug,INSTALL,LICENSE.exceptions,LICENSE.gpl} # samples mkdir $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/ini/ sed -e 's/@driverpath@/\/usr\/%{_lib}\/%{manager}/g' -e 's/@version@/%{version}/g' %{S:1} >$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/ini/odbcinst.ini.sample sed -e 's/@driverpath@/\/usr\/%{_lib}\/%{manager}/g' -e 's/@version@/%{version}/g' %{S:2} >$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/ini/odbc.ini.sample install -m 644 %{S:3} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/ini/ # remove .la files rm $RPM_BUILD_ROOT/%{_libdir}/%{manager}/*.la %clean rm -rf $RPM_BUILD_ROOT %post %ifarch x86_64 ppc64 ia64 s390x myodbc3i -a -d -t"MySQL ODBC %{version} Driver;Driver64=%{_libdir}/unixODBC/libmyodbc3.so;Setup64=%{_libdir}/unixODBC/libmyodbc3S.so" %else myodbc3i -a -d -t"MySQL ODBC %{version} Driver;Driver=%{_libdir}/unixODBC/libmyodbc3.so;Setup=%{_libdir}/unixODBC/libmyodbc3S.so" %endif %preun myodbc3i -r -d -n"MySQL ODBC %{version} Driver" %files %defattr(-,root,root) %{_bindir}/myodbc3* %doc %{_defaultdocdir}/%{name}/ %{_libdir}/%{manager}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor