File ccscript3.spec of Package ccscript3

#
# spec file for package ccscript3
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           ccscript3
Version:        1.1.7
Release:        0
Summary:        A GNU Common C++ framework for embedded scripting
License:        GPL-2.0+
Group:          Productivity/Multimedia/Other
Url:            http://www.gnu.org/software/ccscript/
Source:         %{name}-%{version}.tar.bz2
Patch1:         unixODBC.diff
Patch2:         ccscript3-gcc43.diff
Patch3:         ccscript3-libtool.diff
Patch4:         ccscript3-sqllen.patch
BuildRequires:  commoncpp2-devel
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  unixODBC-devel
Provides:       ccscript = %{version}
Obsoletes:      ccscript < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The GNU ccScript package offers a class extensible threaded embedded
scripting engine for use with GNU Common C++.  This engine is also used
in GNU Bayonne (the GNU telephony application server package) and other
parts of GNUCOMM (the GNU telephony meta-project). This engine differs
from traditional scripting systems in that it is used to script near
real-time state-event systems through deterministic callback step
execution rather than the linear and non-deterministic fashion of
embedded script systems such as tcl, libguile, etc.

%package -n libccscript3-1_1-0
Summary:        A GNU Common C++ framework for embedded scripting
Group:          Development/Libraries/C and C++
Recommends:     ccscript3-modules = %{version}

%description -n libccscript3-1_1-0
The GNU ccScript package offers a class extensible threaded embedded
scripting engine for use with GNU Common C++.  This engine is also used
in GNU Bayonne (the GNU telephony application server package) and other
parts of GNUCOMM (the GNU telephony meta-project). This engine differs
from traditional scripting systems in that it is used to script near
real-time state-event systems through deterministic callback step
execution rather than the linear and non-deterministic fashion of
embedded script systems such as tcl, libguile, etc.

%package modules
Summary:        Modules for ccScript
Group:          Development/Libraries/C and C++
Requires:       libccscript3-1_1-0 = %{version}

%description modules
This package contains ccScript modules.

%package devel
Summary:        Header files and documentation for ccScript
Group:          Development/Libraries/C and C++
Requires:       commoncpp2-devel
Requires:       libccscript3-1_1-0 = %{version}
Provides:       ccscript-devel = %{version}
Obsoletes:      ccscript-devel < %{version}

%description devel
This package contains header files and documentation needed when
developing applications with ccScript.

%prep
%setup -q
%patch1
%patch2 -p1
%patch3
%patch4 -p1

%build
./autogen.sh
%configure \
	--with-pic \
	--disable-static
make CPPFLAGS="%{optflags}"

%install
%make_install
rm -f %{buildroot}%{_libdir}/libccscript*.la

%post -n libccscript3-1_1-0 -p /sbin/ldconfig

%postun -n libccscript3-1_1-0 -p /sbin/ldconfig

%files -n libccscript3-1_1-0
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_libdir}/libccscript3*.so.*

%files modules
%defattr(-,root,root)
%{_libdir}/%{name}-1.1/

%files devel
%defattr(-,root,root)
%doc ChangeLog
%{_libdir}/libccscript3.so
%{_libdir}/pkgconfig/libccscript3.pc
%{_includedir}/cc++

%changelog