diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-08-09 17:50:14 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-08-09 17:50:14 +0200 |
commit | 280e6925aa3394bb47ff488fcd71fecaccd1c994 (patch) | |
tree | dc98e329981834127ad44108e580fc91d5b32f8d | |
parent | 7ba1d4da03eac943ac981c6285ee43e76d92b0c5 (diff) |
make examples a subdir of %doc
-rw-r--r-- | mysql-connector-c++.spec | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/mysql-connector-c++.spec b/mysql-connector-c++.spec index f6da33a..e078fe1 100644 --- a/mysql-connector-c++.spec +++ b/mysql-connector-c++.spec @@ -4,7 +4,7 @@ Summary: MySQL database connector for C++ Name: mysql-connector-c++ Version: 1.1.0 -Release: 0.1.bzr%{?bzr}%{?dist} +Release: 0.2.bzr%{?bzr}%{?dist} Group: System Environment/Libraries License: GPLv2 with exceptions @@ -13,7 +13,8 @@ URL: http://forge.mysql.com/wiki/Connector_C++ %if 0%{?bzr} # bzr branch -r 888 lp:~mysql/mysql-connector-cpp/trunk mysql-connector-c++-1.1.0 -# less mysql-connector-c++-1.1.0/driver/mysql_metadata.cpp => getDriverMajorVersion / getDriverMinorVersion / getDriverPatchVersion +# less mysql-connector-c++-1.1.0/driver/mysql_metadata.cpp +# check getDriverMajorVersion / getDriverMinorVersion / getDriverPatchVersion # tar czf mysql-connector-c++-bzr888.tgz --exclude .bzr mysql-connector-c++-1.1.0 # rm -rf mysql-connector-c++-1.1.0 Source0: mysql-connector-c++-bzr%{bzr}.tgz @@ -58,9 +59,14 @@ These are the files needed to compile programs using MySQL Connector/C++. %{__sed} -i -e 's/lib$/%{_lib}/' driver/CMakeLists.txt %{__chmod} -x examples/*.cpp examples/*.txt +# Save examples to keep directory clean (for doc) +%{__mkdir} _doc_examples +%{__cp} -pr examples _doc_examples + %build -%{cmake} +%{cmake} -DMYSQLCPPCONN_BUILD_EXAMPLES:BOOL=0 + %{__make} @@ -98,13 +104,16 @@ rm -rf %{buildroot} %files devel %defattr(-,root,root,-) -%doc examples/README examples/CMakeLists.txt examples/*.cpp examples/*.h +%doc _doc_examples/examples %{_libdir}/libmysqlcppconn.so %{_includedir}/mysql* %{_includedir}/cppconn %changelog +* Mon Aug 09 2010 Remi Collet <Fedora@famillecollet.com> 1.1.0-0.2.bzr888 +- Changes from review (#622272) + * Sun Aug 08 2010 Remi Collet <Fedora@famillecollet.com> 1.1.0-0.1.bzr888 - update to 1.1.0 from bzr snapshot 888 (for Workbench 5.2.26) - initial package for fedora review |