1 |
%define major 1 |
%define major 6 |
2 |
%define libname %mklibname mysqlcppconn %{major} |
%define libname %mklibname mysqlcppconn %{major} |
3 |
%define develname %mklibname mysqlcppconn -d |
%define develname %mklibname mysqlcppconn -d |
4 |
|
|
5 |
%global bzr 895 |
%global bzr 916 |
6 |
|
|
7 |
Summary: A MySQL database connector for C++ |
Summary: A MySQL database connector for C++ |
8 |
Name: mysql-connector-c++ |
Name: mysql-connector-c++ |
16 |
License: GPL |
License: GPL |
17 |
URL: http://dev.mysql.com/downloads/connector/cpp/ |
URL: http://dev.mysql.com/downloads/connector/cpp/ |
18 |
%if 0%{?bzr} |
%if 0%{?bzr} |
19 |
# bzr branch -r 895 lp:~mysql/mysql-connector-cpp/trunk mysql-connector-c++-1.1.0 |
# bzr branch -r 916 lp:~mysql/mysql-connector-cpp/trunk mysql-connector-c++-1.1.0 |
20 |
# less mysql-connector-c++-1.1.0/driver/mysql_metadata.cpp |
# less mysql-connector-c++-1.1.0/driver/mysql_metadata.cpp |
21 |
# check getDriverMajorVersion / getDriverMinorVersion / getDriverPatchVersion |
# check getDriverMajorVersion / getDriverMinorVersion / getDriverPatchVersion |
22 |
# tar czf mysql-connector-c++-bzr895.tgz --exclude .bzr mysql-connector-c++-1.1.0 |
# tar czf mysql-connector-c++-bzr895.tgz --exclude .bzr mysql-connector-c++-1.1.0 |
81 |
%install |
%install |
82 |
%{__rm} -rf %{buildroot} |
%{__rm} -rf %{buildroot} |
83 |
|
|
84 |
%{__make} install DESTDIR=%{buildroot} |
%{__make} install DESTDIR=%{buildroot} -C build |
85 |
|
rm -fr %{buildroot}%_prefix/COPYING |
86 |
|
rm -fr %{buildroot}%_prefix/INSTALL |
87 |
|
rm -fr %{buildroot}%_prefix/README |
88 |
|
|
89 |
%check |
%check |
90 |
# for documentation purpose only (A MySQL server is required) |
# for documentation purpose only (A MySQL server is required) |
100 |
|
|
101 |
%files -n %{libname} |
%files -n %{libname} |
102 |
%defattr(-,root,root) |
%defattr(-,root,root) |
|
%doc README ANNOUNCEMENT COPYING CHANGES |
|
103 |
%attr(0755,root,root) %{_libdir}/*.so.%{major}* |
%attr(0755,root,root) %{_libdir}/*.so.%{major}* |
104 |
|
|
105 |
%files -n %{develname} |
%files -n %{develname} |
106 |
%defattr(-,root,root) |
%defattr(-,root,root) |
107 |
%dir %{_includedir}/mysql-connector |
%dir %{_includedir}/cppconn |
108 |
%dir %{_includedir}/mysql-connector/cppconn |
%attr(0644,root,root) %{_includedir}/*.h |
109 |
%attr(0644,root,root) %{_includedir}/mysql-connector/*.h |
%attr(0644,root,root) %{_includedir}/cppconn/*.h |
|
%attr(0644,root,root) %{_includedir}/mysql-connector/cppconn/*.h |
|
110 |
%attr(0644,root,root) %{_libdir}/*.so |
%attr(0644,root,root) %{_libdir}/*.so |
111 |
|
%exclude %{_libdir}/libmysqlcppconn-static.a |
112 |
|
|
113 |
|
|