LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gtkglextmm.spec of Package gtkglextmm (Project home:X0F:branches:multimedia)

#
# spec file for package gtkglextmm 
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

%define soname	x11-1_2-0 
Name:           gtkglextmm
Summary:        C++ wrapper for GtkGLExt
Version:        1.2.0
Release:        1
Url:            http://www.k-3d.org/gtkglext/
Group:          System/Libraries
License:        GPL-2.0+ and LGPL-2.1
Source:         %{name}-%{version}.tar.bz2
Patch0: gtkglextmm-1.2-header.diff
BuildRequires:  gcc-c++ 
BuildRequires:  gtkmm2-devel
BuildRequires:  gtkglext-devel < 2.0.0
BuildRequires:  graphviz 
BuildRequires:  doxygen
BuildRequires:  fdupes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
gtkglextmm is a C++ wrapper for GtkGLExt. C++ programmers can use it to
write GTK+-based OpenGL applications using gtkmm 2.

GtkGLExt is an OpenGL extension to GTK. It provides the GDK objectsthat
support OpenGL rendering in GTK and GtkWidget API add-ons, tomake GTK+
widgets OpenGL-capable.



Authors:
--------
    Naofumi Yasufuku <naofumi@users.sourceforge.net>
    Alif Wahid <awah005@users.sourceforge.net>
    Igor Fernandez de Bustos <impfedei@bi.ehu.es>
    
%package -n lib%{name}-%{soname}
License:        GPL-2.0+ and LGPL-2.1
Summary:        C++ wrapper for GtkGLExt
Group:          System/Libraries
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}

%description -n lib%{name}-%{soname}
gtkglextmm is a C++ wrapper for GtkGLExt. C++ programmers can use it to
write GTK+-based OpenGL applications using gtkmm 2.

GtkGLExt is an OpenGL extension to GTK. It provides the GDK objectsthat
support OpenGL rendering in GTK and GtkWidget API add-ons, tomake GTK+
widgets OpenGL-capable.



Authors:
--------
    Naofumi Yasufuku <naofumi@users.sourceforge.net>
    Alif Wahid <awah005@users.sourceforge.net>
    Igor Fernandez de Bustos <impfedei@bi.ehu.es>

%package devel
License:        GPL-2.0+ and LGPL-2.1
Group:          Development/Libraries/C and C++
Summary:        C++ wrapper for GtkGLExt
Requires:       lib%{name}-%{soname} = %{version}-%{release}
Requires:       gtkglext-devel gtkmm2-devel gcc-c++

%description devel
gtkglextmm is a C++ wrapper for GtkGLExt. C++ programmers can use it to
write GTK+-based OpenGL applications using gtkmm 2.

GtkGLExt is an OpenGL extension to GTK. It provides the GDK objects
which support OpenGL rendering in GTK, and GtkWidget API add-ons to
make GTK+ widgets OpenGL-capable.



Authors:
--------
    Naofumi Yasufuku <naofumi@users.sourceforge.net>
    Alif Wahid <awah005@users.sourceforge.net>
    Igor Fernandez de Bustos <impfedei@bi.ehu.es>

%package doc
License:        GPL-2.0+ and LGPL-2.1
Group:          Documentation/HTML
Summary:        Documentation of the C++ wrapper for GtkGLExt
Requires:       %{name} = %{version}

%description doc
This package contains additional documentation for gtkglextmm.

gtkglextmm is a C++ wrapper for GtkGLExt. C++ programmers can use it to
write GTK+-based OpenGL applications using gtkmm 2.

GtkGLExt is an OpenGL extension to GTK. It provides the GDK objects
which support OpenGL rendering in GTK, and GtkWidget API add-ons to
make GTK+ widgets OpenGL-capable.



Authors:
--------
    Naofumi Yasufuku <naofumi@users.sourceforge.net>
    Alif Wahid <awah005@users.sourceforge.net>
    Igor Fernandez de Bustos <impfedei@bi.ehu.es>

%prep
%setup -q
%patch0 -p1

%build
%configure\
	--disable-static

make %{?_smp_mflags}

%install
%makeinstall
%fdupes -s %{buildroot}%{_datadir}/doc/%{name}-1.2/html
rm -f %{buildroot}%{_libdir}/%name-1.2/proc/m4/convert_gtkglext.m4

%clean
rm -rf $RPM_BUILD_ROOT

%post -n lib%{name}-%{soname} -p /sbin/ldconfig

%postun -n lib%{name}-%{soname} -p /sbin/ldconfig

%files -n lib%{name}-%{soname}
%defattr (-, root, root)
%doc AUTHORS COPYING COPYING.LIB ChangeLog README 
%{_libdir}/*glextmm-x11-*so.*

%files devel
%defattr (-, root, root)
%{_datadir}/aclocal/%{name}*.m4
%{_libdir}/%name-1.2/
%{_libdir}/*glextmm*.so
%{_libdir}/*glextmm*.la
%{_libdir}/pkgconfig/*glextmm*.pc
%{_includedir}/%{name}-1.2/

%files doc
%defattr (-, root, root)
%doc %{_datadir}/doc/%name-1.2

%changelog