Package mysql-connector-c++: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %_var %define major 7 %define libname libmysqlcppconn%major %define develname libmysqlcppconn-devel Summary: A MySQL database connector for C++ Name: mysql-connector-c++ Version: 1.1.11 Release: alt1.1 Group: System/Libraries License: GPLv2 Url: http://dev.mysql.com/downloads/connector/cpp/ Source0: http://cdn.mysql.com/Downloads/Connector-C++/%name-%version.tar.gz ## patches from arch-linux Patch0: mysql_cxx_linkage.patch Patch1: mariadb_api.patch Patch10: mysql-alt-cmake-remove-extra-libraries.patch Source44: import.info # Automatically added by buildreq on Sat Feb 03 2018 # optimized out: cmake-modules glibc-kernheaders-generic glibc-kernheaders-x86 libstdc++-devel python-base python-modules python3 python3-base BuildRequires: boost-devel-headers cmake gcc-c++ libmysqlclient-devel python3-dev %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. Using MySQL Connector/C++ instead of the MySQL C API (MySQL Client Library) offers the following advantages for C++ users: * Convenience of pure C++ - no C function calls * Support of a well designed API - JDBC 4.0 * Support of a commonly known and well documented API - JDBC 4.0 * Support of the object oriented programming paradigma * Shorter development times %package -n %libname Summary: The shared mysql-connector-cpp library Group: System/Libraries Provides: %name = %version-%release %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. Using MySQL Connector/C++ instead of the MySQL C API (MySQL Client Library) offers the following advantages for C++ users: * Convenience of pure C++ - no C function calls * Support of a well designed API - JDBC 4.0 * Support of a commonly known and well documented API - JDBC 4.0 * Support of the object oriented programming paradigma * Shorter development times %package -n %develname Summary: Development library and header files for development with mysql-connector-cpp Group: Development/C++ Requires: %libname = %version Provides: %name-devel = %version-%release %description -n %develname 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. Using MySQL Connector/C++ instead of the MySQL C API (MySQL Client Library) offers the following advantages for C++ users: * Convenience of pure C++ - no C function calls * Support of a well designed API - JDBC 4.0 * Support of a commonly known and well documented API - JDBC 4.0 * Support of the object oriented programming paradigma * Shorter development times %prep %setup %patch0 -p1 -b .linkage %patch1 -p1 -b .mariadb %patch10 -p2 chmod -x examples/*.cpp examples/*.txt # Save examples to keep directory clean (for doc) mkdir _doc_examples cp -pr examples _doc_examples %build %cmake \ -DMYSQL_INCLUDE_DIR=%_includedir/mysql \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=%_libdir \ -DMYSQLCPPCONN_BUILD_EXAMPLES=OFF \ -DMYSQL_LIB=%_libdir/libmysqlclient.so %cmake_build %install cp %_cmake__builddir/cppconn/config.h cppconn/config.h %cmake_install rm -fr %buildroot%prefix/BUILDINFO rm -fr %buildroot%prefix/LICENSE rm -fr %buildroot%prefix/INSTALL rm -fr %buildroot%prefix/README rm -fr %buildroot%prefix/ANNOUNCEMENT rm -fr %buildroot%prefix/Licenses_for_Third-Party_Components.txt rm -f %buildroot%_libdir/libmysqlcppconn-static.a %files -n %libname %_libdir/*.so.* %files -n %develname %doc README LICENSE examples %dir %_includedir/cppconn %_includedir/*.h %_includedir/cppconn/*.h %_libdir/*.so %changelog * Tue Apr 27 2021 Arseny Maslennikov <arseny@altlinux.org> 1.1.11-alt1.1 - NMU: spec: adapted to new cmake macros. * Wed Dec 19 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.1.11-alt1 - NMU: updated to version 1.1.11. * Sat Feb 03 2018 Fr. Br. George <george@altlinux.ru> 1.1.9-alt1 - Autobuild version bump to 1.1.9 - Fix overloaded buildreq * Thu Aug 03 2017 Igor Vlasenko <viy@altlinux.ru> 1.1.8-alt1_1 - update by mgaimport * Wed Feb 17 2016 Igor Vlasenko <viy@altlinux.ru> 1.1.6-alt2_2 - update by mgaimport * Mon Sep 28 2015 Igor Vlasenko <viy@altlinux.ru> 1.1.6-alt2_1 - devel bugfixes * Mon Sep 28 2015 Igor Vlasenko <viy@altlinux.ru> 1.1.6-alt1_1 - use mageia * Fri Apr 26 2013 Igor Vlasenko <viy@altlinux.ru> 1.1.2-alt1_1 - initial fc import |