rpms/mysql++/EL-5 mysql++.devhelp, NONE, 1.1 mysql++.spec, 1.3, 1.4 sources, 1.3, 1.4

Remi Collet remi at fedoraproject.org
Sun Apr 4 06:53:48 UTC 2010


Author: remi

Update of /cvs/pkgs/rpms/mysql++/EL-5
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv32142

Modified Files:
	mysql++.spec sources 
Added Files:
	mysql++.devhelp 
Log Message:
initial import of 3.0.9 - new EPEL package


--- NEW FILE mysql++.devhelp ---
<?xml version="1.0"?>
<book xmlns:fo="http://www.w3.org/1999/XSL/Format"
	title="MySQL++: C++ wrapper for MySQL’s C API"
	name="mysql++"
	link="userman/index.html">
  <chapters>
    <sub name="User Manual" link="userman/index.html"/>
    <sub name="Reference Manual" link="refman/index.html"/>
  </chapters>
</book>



Index: mysql++.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mysql++/EL-5/mysql++.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- mysql++.spec	23 Aug 2007 17:27:23 -0000	1.3
+++ mysql++.spec	4 Apr 2010 06:53:47 -0000	1.4
@@ -1,20 +1,29 @@
 Summary:    C++ wrapper for the MySQL C API
 Name:       mysql++
-Version:    2.3.2
-Release:    2%{?dist}
+Version:    3.0.9
+Release:    4%{?dist}
 License:    LGPLv2
 Group:      Development/Libraries
 URL:        http://tangentsoft.net/mysql++/
+
 Source0:    http://tangentsoft.net/mysql++/releases/mysql++-%{version}.tar.gz
+Source1:    mysql++.devhelp
 
 BuildRoot:  %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildRequires: mysql-devel
 
+
 %description
-MySQL++ makes working with MySQL server queries as easy as working
-with STL containers.  This package contains only the libraries needed to
-run MySQL++-based programs.  If you are building your own MySQL++-based
-programs, you also need to install the -devel package.
+MySQL++ is a C++ wrapper for MySQL’s C API. 
+
+It is built around STL principles, to make dealing with the database as easy
+as dealing with an STL container. MySQL++ relieves the programmer of dealing
+with cumbersome C data structures, generation of repetitive SQL statements,
+and manual creation of C++ data structures to mirror the database schema.
+
+If you are building your own MySQL++-based programs, you also need 
+to install the -devel package.
+
 
 %package devel
 Summary:   MySQL++ developer files (headers, examples, etc.)
@@ -23,29 +32,46 @@ Requires:  mysql++ = %{version}-%{releas
 Requires:  mysql-devel
 
 %description devel
-These are the files needed to compile MySQL++ based programs, plus
-some sample code to get you started.  If you aren't building your own
-programs, you probably don't need to install this package.
+These are the files needed to compile MySQL++ based programs, 
+plus some sample code to get you started.You probably need to
+install the -manuals package.  
+
+If you aren't building your own programs, you probably don't need 
+to install this package.
+
 
 %package manuals
 Summary:   MySQL++ user and reference manuals
 Group:     Development/Libraries
+Requires:  devhelp
 
 %description manuals
 This is the MySQL++ documentation.  It's a separate RPM just because
 it's so large, and it doesn't change with every release.
 
+User Manual and Reference Manual are provided both in PDF and in
+HTML format. You can use devhelp to browse it.
+
+
 %prep
 %setup -q
 
+for file in CREDITS COPYING LICENSE; do
+  touch -r $file.txt timestamp
+  %{__sed} -i -e 's/\r//' $file.txt
+  touch -r timestamp $file.txt 
+done
+
 
 %build
 %configure --with-mysql-lib=%{_libdir}/mysql \
            --enable-thread-check \
-           --disable-dependency-tracking
+           --disable-dependency-tracking \
+           PTHREAD_CFLAGS=-pthread PTHREAD_LIBS=-lpthread
 
 %{__make} %{?_smp_mflags}
 
+
 %install
 rm -rf %{buildroot} doc/examples
 
@@ -56,14 +82,26 @@ rm -rf %{buildroot} doc/examples
 # Copy example programs to doc directory
 %{__mkdir_p} doc/examples
 %{__install} -m644 examples/*.{cpp,h} doc/examples/
+%{__install} -m644 config.h doc/examples/
+sed -i -e s at ../config.h at config.h@ doc/examples/threads.h
+
 
 # Fix up simple example Makefile to allow it to build on the install
 # system, as opposed to the system where the Makefile was created.
+# Only build examples, not test_
 %{__sed} -e 's at ./examples/@@' \
-  -e 's@^CPPFLAGS :=.*$@CPPFLAGS := $(shell mysql_config --cflags)@' \
-  -e 's@^LDFLAGS :=.*$@LDFLAGS := $(shell mysql_config --libs)@' \
+  -e 's@^CPPFLAGS ?=.*$@CPPFLAGS ?= $(shell mysql_config --cflags)@' \
+  -e 's@^LDFLAGS ?=.*$@LDFLAGS ?= $(shell mysql_config --libs_r)@' \
+  -e '/^all:/s/test_[a-z,_]* //g' \
   Makefile.simple > doc/examples/Makefile
 
+# DevHelp stuff
+%{__mkdir_p} %{buildroot}%{_datadir}/devhelp/books/%{name}
+%{__install} -m644 %{SOURCE1} %{buildroot}%{_datadir}/devhelp/books/%{name}/%{name}.devhelp
+%{__cp} -r doc/html/userman %{buildroot}%{_datadir}/devhelp/books/%{name}/userman
+%{__cp} -r doc/html/refman %{buildroot}%{_datadir}/devhelp/books/%{name}/refman
+
+
 %clean
 rm -rf %{buildroot} doc/examples
 
@@ -71,22 +109,84 @@ rm -rf %{buildroot} doc/examples
 
 %postun -p /sbin/ldconfig
 
+
 %files
 %defattr(-,root,root,-)
-%doc ChangeLog COPYING CREDITS LICENSE README
+%doc ChangeLog COPYING.txt CREDITS.txt LICENSE.txt README.txt
 %{_libdir}/libmysqlpp.so.*
 
+
 %files devel
 %defattr(-,root,root,-)
-%doc doc/examples doc/README.devel README.examples Wishlist
+%doc doc/examples doc/README-devel-RPM.txt README-examples.txt Wishlist
 %{_includedir}/mysql++
 %{_libdir}/libmysqlpp.so
 
+
 %files manuals
 %defattr(-,root,root,-)
-%doc doc/pdf doc/html doc/README.manuals
+%doc doc/pdf/* doc/README-manuals-RPM.txt
+%{_datadir}/devhelp/books/%{name}
+
 
 %changelog
+* Sat Feb 13 2010 Remi Collet <Fedora at FamilleCollet.com> 3.0.9-4
+- add explicit -lpthread linker flag (fix DSO bug)
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0.9-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0.9-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Thu Feb 05 2009 Remi Collet <Fedora at FamilleCollet.com> 3.0.9-1
+- update to 3.0.9
+
+* Fri Jan 23 2009 Remi Collet <Fedora at FamilleCollet.com> 3.0.8-2
+- rebuild against MySQL Client 5.1 (libmysqlclient.so.16)
+
+* Sun Nov 30 2008 Remi Collet <Fedora at FamilleCollet.com> 3.0.8-1
+- update to 3.0.8
+
+* Sun Nov 23 2008 Remi Collet <Fedora at FamilleCollet.com> 3.0.7-1
+- update to 3.0.7
+
+* Sun Aug 17 2008 Remi Collet <Fedora at FamilleCollet.com> 3.0.6-1
+- update to 3.0.6
+- thread aware examples.
+
+* Sat Aug 09 2008 Remi Collet <Fedora at FamilleCollet.com> 3.0.5-1
+- update to 3.0.5
+
+* Sat Jul 05 2008 Remi Collet <Fedora at FamilleCollet.com> 3.0.4-1
+- update to 3.0.4
+
+* Tue May 13 2008 Remi Collet <Fedora at FamilleCollet.com> 3.0.3-1
+- update to 3.0.3
+- add mysql++-3.0.3-mystring.patch for x86_64 build
+
+* Tue Apr 15 2008 Remi Collet <Fedora at FamilleCollet.com> 3.0.2-1
+- update to 3.0.2
+
+* Sat Mar 29 2008 Remi Collet <Fedora at FamilleCollet.com> 3.0.1-1
+- update to 3.0.1
+
+* Sat Mar  1 2008 Remi Collet <Fedora at FamilleCollet.com> 3.0.0-1
+- update to 3.0.0 Finale
+- use devhelp to browse manuals
+
+* Wed Feb 20 2008 Remi Collet <rpms at FamilleCollet.com> 3.0.0-0.1.rc5
+- update to 3.0.0 rc5
+
+* Tue Feb 12 2008 Remi Collet <rpms at FamilleCollet.com> 3.0.0-0.1.rc4
+- update to 3.0.0 rc4 (not published)
+
+* Sat Feb  9 2008 Remi Collet <rpms at FamilleCollet.com> 3.0.0-0.1.rc3
+- update to 3.0.0 rc3 (not published)
+
+* Sat Feb  9 2008 Remi Collet <rpms at FamilleCollet.com> 2.3.2-3
+- rebuild for gcc 4.3
+
 * Thu Aug 23 2007 Remi Collet <rpms at FamilleCollet.com> 2.3.2-2
 - Fix License
 - F-8 rebuild (BuildID)


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mysql++/EL-5/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- sources	11 Aug 2007 16:52:34 -0000	1.3
+++ sources	4 Apr 2010 06:53:47 -0000	1.4
@@ -1 +1 @@
-e3b839b17872f1e0f2ddbf7cf407b395  mysql++-2.3.2.tar.gz
+4acc1603846fe67d36b6243bfb805652  mysql++-3.0.9.tar.gz



More information about the scm-commits mailing list