Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:GA
mysql-connector-cpp
mysql-connector-cpp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mysql-connector-cpp.spec of Package mysql-connector-cpp
# # spec file for package mysql-connector-cpp # # Copyright (c) 2017 SUSE LINUX 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/ # %define libname libmysqlcppconn7 Name: mysql-connector-cpp Version: 1.1.9 Release: 0 Summary: MySQL Connector/C++: Standardized database driver for C++ development License: SUSE-GPL-2.0-with-FLOSS-exception Group: Development/Libraries/C and C++ Url: http://dev.mysql.com/downloads/connector/ Source: http://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-%{version}.tar.gz # PATCH-FEATURE-OPENSUSE - mysql-connector-cpp-1.1.0-disable_tests_and_examples.patch adam@mizerski.pl -- disable building tests and examples Patch2: mysql-connector-cpp-1.1.0-disable_tests_and_examples.patch # PATCH-FIX-UPSTREAM - bsc#1067883 kstreitova@suse.com -- fix build with libmariadb by fixing copypaste errors in libmysql_dynamic_proxy.cpp file Patch3: mysql-connector-cpp-1.1.9-libmysql_dynamic_proxy_typos.patch %if 0%{?suse_version} > 1325 BuildRequires: libboost_headers-devel %else BuildRequires: boost-devel >= 1.34.0 %endif BuildRequires: cmake >= 2.6.2 BuildRequires: gcc-c++ BuildRequires: libmysqlclient-devel BuildRequires: pkgconfig(zlib) Obsoletes: mysql-connector-c++ < %{version} Provides: mysql-connector-c++ = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description MySQL Connector/C++ is a MySQL database connector for C++ development. The MySQL driver for C++ can be used to connect to MySQL from C++ applications. The driver mimics the JDBC 4.0 API. It implements a significant subset of JDBC 4.0. The Driver for C++ is designed to work best with MySQL 5.1 or later. Note - its full functionality is not available when connecting to MySQL 5.0. You cannot connect to MySQL 4.1 or earlier. %package -n libmysqlcppconn-devel Summary: Development files for MySQL Connector/C++ Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} Obsoletes: mysql-connector-c++-devel < %{version} Provides: mysql-connector-c++-devel = %{version} %if 0%{?suse_version} > 1325 Requires: libboost_headers-devel %else Requires: boost-devel >= 1.34.0 %endif %description -n libmysqlcppconn-devel MySQL Connector/C++ is a MySQL database connector for C++ development. The MySQL driver for C++ can be used to connect to MySQL from C++ applications. The driver mimics the JDBC 4.0 API. It implements a significant subset of JDBC 4.0. The Driver for C++ is designed to work best with MySQL 5.1 or later. Note - its full functionality is not available when connecting to MySQL 5.0. You cannot connect to MySQL 4.1 or earlier. %package -n %{libname} Summary: MySQL Connector/C++: Standardized database driver for C++ development Group: Development/Libraries/C and C++ %description -n %{libname} MySQL Connector/C++ is a MySQL database connector for C++ development. The MySQL driver for C++ can be used to connect to MySQL from C++ applications. The driver mimics the JDBC 4.0 API. It implements a significant subset of JDBC 4.0. The Driver for C++ is designed to work best with MySQL 5.1 or later. Note - its full functionality is not available when connecting to MySQL 5.0. You cannot connect to MySQL 4.1 or earlier. %prep %setup -q -n mysql-connector-c++-%{version} %patch2 -p1 %patch3 -p1 chmod -x examples/* %build %cmake \ -DMYSQLCPPCONN_GCOV_ENABLE=OFF \ -DMYSQLCPPCONN_ICU_ENABLE=OFF \ -DMYSQLCPPCONN_BUILD_EXAMPLES=OFF \ -DCMAKE_INSTALL_LIB_DIR=%{_lib} \ -DMYSQLCLIENT_STATIC_BINDING=0 \ -DMYSQL_CXX_LINKAGE=0 make %{?_smp_mflags} VERBOSE=1 %install %cmake_install rm -f %{buildroot}%{_libdir}/libmysqlcppconn-static.a rm -f %{buildroot}%{_prefix}/[A-Z]* %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n libmysqlcppconn-devel %defattr(-,root,root) %doc README COPYING examples %{_includedir}/* %{_libdir}/*.so %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so.* %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