/[packages]/updates/8/mysql-connector-c++/current/SPECS/mysql-connector-c++.spec
ViewVC logotype

Contents of /updates/8/mysql-connector-c++/current/SPECS/mysql-connector-c++.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1419767 - (show annotations) (download)
Tue Jul 9 19:01:14 2019 UTC (4 years, 9 months ago) by wally
Original Path: cauldron/mysql-connector-c++/current/SPECS/mysql-connector-c++.spec
File size: 4579 byte(s)
- clean .spec a bit (SILENT)
1 %define major 7
2 %define libname %mklibname mysqlcppconn %{major}
3 %define develname %mklibname mysqlcppconn -d
4
5 %ifarch aarch64
6 %global _smp_ncpus_max 4
7 %endif
8
9 Summary: A MySQL database connector for C++
10 Name: mysql-connector-c++
11 Version: 1.1.9
12 Release: %mkrel 3
13 Group: System/Libraries
14 License: GPLv2
15 URL: http://dev.mysql.com/downloads/connector/cpp/
16 Source0: http://cdn.mysql.com/Downloads/Connector-C++/%{name}-%{version}.tar.gz
17 ## patches from arch-linux
18 Patch0: mysql_cxx_linkage.patch
19 Patch1: mariadb_api.patch
20 ## from opensuse
21 Patch10: mysql-connector-cpp-mariadb.patch
22 Patch11: mysql-connector-cpp-1.1.9-libmysql_dynamic_proxy_typos.patch
23 BuildRequires: cmake
24 BuildRequires: mysql-devel
25 BuildRequires: boost-devel
26
27 %description
28 MySQL Connector/C++ is a MySQL database connector for C++ development. The
29 MySQL driver for C++ can be used to connect to MySQL from C++ applications. The
30 driver mimics the JDBC 4.0 API. It implements a significant subset of JDBC 4.0.
31
32 The Driver for C++ is designed to work best with MySQL 5.1 or later. Note - its
33 full functionality is not available when connecting to MySQL 5.0. You cannot
34 connect to MySQL 4.1 or earlier.
35
36 Using MySQL Connector/C++ instead of the MySQL C API (MySQL Client Library)
37 offers the following advantages for C++ users:
38
39 * Convenience of pure C++ - no C function calls
40 * Support of a well designed API - JDBC 4.0
41 * Support of a commonly known and well documented API - JDBC 4.0
42 * Support of the object oriented programming paradigma
43 * Shorter development times
44
45 %package -n %{libname}
46 Summary: The shared mysql-connector-cpp library
47 Group: System/Libraries
48 Provides: %{name} = %{version}-%{release}
49
50 %description -n %{libname}
51 MySQL Connector/C++ is a MySQL database connector for C++ development. The
52 MySQL driver for C++ can be used to connect to MySQL from C++ applications. The
53 driver mimics the JDBC 4.0 API. It implements a significant subset of JDBC 4.0.
54
55 The Driver for C++ is designed to work best with MySQL 5.1 or later. Note - its
56 full functionality is not available when connecting to MySQL 5.0. You cannot
57 connect to MySQL 4.1 or earlier.
58
59 Using MySQL Connector/C++ instead of the MySQL C API (MySQL Client Library)
60 offers the following advantages for C++ users:
61
62 * Convenience of pure C++ - no C function calls
63 * Support of a well designed API - JDBC 4.0
64 * Support of a commonly known and well documented API - JDBC 4.0
65 * Support of the object oriented programming paradigma
66 * Shorter development times
67
68 %package -n %{develname}
69 Summary: Development library and header files for development with mysql-connector-cpp
70 Group: Development/C++
71 Requires: %{libname} = %{version}
72 Provides: %{name}-devel = %{version}-%{release}
73
74 %description -n %{develname}
75 MySQL Connector/C++ is a MySQL database connector for C++ development. The
76 MySQL driver for C++ can be used to connect to MySQL from C++ applications. The
77 driver mimics the JDBC 4.0 API. It implements a significant subset of JDBC 4.0.
78
79 The Driver for C++ is designed to work best with MySQL 5.1 or later. Note - its
80 full functionality is not available when connecting to MySQL 5.0. You cannot
81 connect to MySQL 4.1 or earlier.
82
83 Using MySQL Connector/C++ instead of the MySQL C API (MySQL Client Library)
84 offers the following advantages for C++ users:
85
86 * Convenience of pure C++ - no C function calls
87 * Support of a well designed API - JDBC 4.0
88 * Support of a commonly known and well documented API - JDBC 4.0
89 * Support of the object oriented programming paradigma
90 * Shorter development times
91
92 %prep
93 %setup -q
94 %autopatch -p1
95
96 %{__chmod} -x examples/*.cpp examples/*.txt
97
98 # Save examples to keep directory clean (for doc)
99 %{__mkdir} _doc_examples
100 %{__cp} -pr examples _doc_examples
101
102 %build
103 %cmake \
104 -DMYSQL_INCLUDE_DIR=%{_includedir}/mysql \
105 -DCMAKE_INSTALL_PREFIX=/usr \
106 -DCMAKE_BUILD_TYPE=Release \
107 -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
108 -DMYSQLCPPCONN_BUILD_EXAMPLES=OFF \
109 -DMYSQL_LIB=%{_libdir}/libmysqlclient.so
110 %make_build
111
112 %install
113 cp build/cppconn/config.h cppconn/config.h
114
115 %make_install -C build
116 rm -fr %{buildroot}%_prefix/COPYING
117 rm -fr %{buildroot}%_prefix/INSTALL
118 rm -fr %{buildroot}%_prefix/README
119 rm -fr %{buildroot}%_prefix/ANNOUNCEMENT
120 rm -fr %{buildroot}%_prefix/Licenses_for_Third-Party_Components.txt
121 rm -f %{buildroot}%{_libdir}/libmysqlcppconn-static.a
122
123 %files -n %{libname}
124 %{_libdir}/*.so.%{major}{,.*}
125
126 %files -n %{develname}
127 %doc README COPYING examples
128 %dir %{_includedir}/cppconn
129 %{_includedir}/*.h
130 %{_includedir}/cppconn/*.h
131 %{_libdir}/*.so
132

  ViewVC Help
Powered by ViewVC 1.1.30