Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 5cf451273eb7d879aa59093c7bc6a0f2 > files > 2

dolphin-connector-1.1-1.fc13.src.rpm

Name:           dolphin-connector
Version:        1.1
Release:        1%{?dist}
Summary:        Simple MySQL C API wrapper for C++

Group:          System Environment/Libraries
License:        BSD
URL:            https://github.com/poetinha/dolphin-connector
# The source for this package was pulled from upstream's vcs.  Use the
# following commands to generate the tarball:
#  git clone https://github.com/poetinha/dolphin-connector.git
#  cd dolphin-connector
#  git archive --format=tar --prefix=dolphin-connector-1.1/ v1.1 | gzip >dolphin-connector-1.1.tar.gz
Source0:        %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  libtool mysql-devel boost-devel

%description
Dolphin Connector is a simple MySQL C API wrapper for C++.

It is originally designed to be as efficient as is possible,
and makes no use of exceptions.

%package devel
Summary: Development files for Dolphin Connector
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: mysql-devel
Requires: boost-devel

%description devel
Dolphin Connector development package.

%prep
%setup -q

%build
./autogen.sh

%configure --disable-static
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

# cleanup
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la

rm -f sample/Makefile*

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc ChangeLog LICENSE README TODO
%{_libdir}/libdolphinconn.so.*

%files devel
%defattr(-,root,root,-)
%doc sample
%{_includedir}/dolphinconn
%{_libdir}/libdolphinconn.so

%changelog
* Mon Feb 07 2011 William Lima <wlima@primate.com.br> - 1.1-1
- update to 1.1

* Thu Jan 20 2011 William Lima <wlima@primate.com.br> - 1.0-4
- fixed build requires

* Thu Jan 20 2011 William Lima <wlima@primate.com.br> - 1.0-3
- dropped autoconf build requires

* Thu Jan 20 2011 William Lima <wlima@primate.com.br> - 1.0-2
- added build requires for automake and autoconf

* Tue Jan 11 2011 William Lima <wlima@primate.com.br> - 1.0-1
- Initial package