Sophie

Sophie

distrib > Mageia > cauldron > i586 > media > core-release-src > by-pkgid > 13a23374d4436a6179b11a241afafe78 > files > 4

gtkglarea2-2.1.0-4.mga9.src.rpm

%define api 2.0
%define major 1
%define oname gtkglarea
%define libname %mklibname gtkgl %{api} %{major}
%define develname %mklibname -d gtkgl

%define url_ver %{lua: ver = rpm.expand("%{version}"); majmin, count1 = string.gsub(ver, "^([0123456789]+%.[0123456789]+).*", "%1", 1); if count1 == 0 then print(ver); return; end; maj, count2 = string.gsub(majmin, "^([0123456789]+).*", "%1", 1); if count2 == 0 then print(majmin) elseif tonumber(majmin) < 40 then print(majmin) else print(maj) end}

Summary:	OpenGL widget for GTK+ GUI toolkit
Name:		gtkglarea2
Version:	2.1.0
Release: 	%mkrel 4
License:	LGPLv2+
Group:		System/Libraries
Source:		https://download.gnome.org/sources/%{oname}/%{url_ver}/%{oname}-%{version}.tar.xz
Patch0:		gtkglarea-2.0.0-wformat.patch
Patch1:		gtkglarea-2.1.0-link.patch
URL:		http://www.student.oulu.fi/~jlof/gtkglarea/
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
Just as GTK+ is build on top of GDK, GtkGLArea is built on top of gdkgl which
is basically wrapper around GLX functions. The widget itself is very similar
to GtkDrawingArea widget and adds only three extra functions.

Lower level gdkgl functions make it easy to render on any widget that has
OpenGL capable visual, rendering to off-screen pixmaps is also supported.

%package -n %{libname}
Summary:	OpenGL widget for GTK+ GUI toolkit
Group:		System/Libraries
Obsoletes:	%{_lib}gtkglarea2.0 < %{version}-%{release}

%description -n %{libname}
Just as GTK+ is build on top of GDK, GtkGLArea is built on top of gdkgl which
is basically wrapper around GLX functions. The widget itself is very similar
to GtkDrawingArea widget and adds only three extra functions.

Lower level gdkgl functions make it easy to render on any widget that has
OpenGL capable visual, rendering to off-screen pixmaps is also supported.

%package -n %{develname}
Summary:	Includes and static libs
Group:		Development/GNOME and GTK+
Requires:	%{libname} >= %{version}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}gtkglarea2.0-devel < %{version}-%{release}

%description -n %{develname}
Libraries and includes files you can use for GtkGLArea development

%prep
%setup -q -n %oname-%version
%autopatch -p1

# to make autoreconf happy
mkdir -p m4

%build
autoreconf -fi
%configure --disable-static
%make_build

%install
%make_install

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

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/libgtkgl-%{api}.so.%{major}
%{_libdir}/libgtkgl-%{api}.so.%{major}.*

%files -n %{develname}
%doc docs/*.txt
%{_libdir}/*.so
%{_includedir}/*
%_libdir/pkgconfig/gtkgl-%{api}.pc


%changelog
* Sat Mar 26 2022 umeabot <umeabot> 2.1.0-4.mga9
+ Revision: 1828173
- Mageia 9 Mass Rebuild

* Thu Feb 13 2020 umeabot <umeabot> 2.1.0-3.mga8
+ Revision: 1512812
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%configure2_5x

* Sun Sep 23 2018 umeabot <umeabot> 2.1.0-2.mga7
+ Revision: 1298110
- Mageia 7 Mass Rebuild

* Thu Mar 22 2018 ovitters <ovitters> 2.1.0-1.mga7
+ Revision: 1211229
- new version 2.1.0

* Thu Feb 04 2016 umeabot <umeabot> 2.0.1-9.mga6
+ Revision: 935726
- Mageia 6 Mass Rebuild

* Wed Oct 15 2014 umeabot <umeabot> 2.0.1-8.mga5
+ Revision: 743093
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 2.0.1-7.mga5
+ Revision: 680014
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 2.0.1-6.mga4
+ Revision: 505359
- Mageia 4 Mass Rebuild

* Sat Jan 12 2013 umeabot <umeabot> 2.0.1-5.mga3
+ Revision: 352878
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Dec 25 2012 fwang <fwang> 2.0.1-4.mga3
+ Revision: 334867
- more linkage fix
- upload patch
- update spec
+ ovitters <ovitters>
- clean spec
+ mikala <mikala>
- Drop mdk macros
- imported package gtkglarea2


* Thu Dec 02 2010 Oden Eriksson <oeriksson@mandriva.com> 2.0.1-3mdv2011.0
+ Revision: 605509
- rebuild

* Wed Mar 17 2010 Oden Eriksson <oeriksson@mandriva.com> 2.0.1-2mdv2010.1
+ Revision: 522809
- rebuilt for 2010.1

* Sat Jul 18 2009 Götz Waschk <waschk@mandriva.org> 2.0.1-1mdv2010.0
+ Revision: 397058
- new version
- fix source URL

  + Christophe Fergeau <cfergeau@mandriva.com>
    - fix -Wformat warnings

* Sun Nov 09 2008 Oden Eriksson <oeriksson@mandriva.com> 2.0.0-3mdv2009.1
+ Revision: 301528
- rebuilt against new libxcb

* Mon Aug 25 2008 Götz Waschk <waschk@mandriva.org> 2.0.0-2mdv2009.0
+ Revision: 275667
- fix linking with libX11 and reenable --no-undefined
- move pkgconfig file to the devel package

* Sun Aug 24 2008 Götz Waschk <waschk@mandriva.org> 2.0.0-1mdv2009.0
+ Revision: 275590
- new version
- drop patch
- fix build
- update license

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 1.99.0-11mdv2008.1
+ Revision: 170877
- rebuild
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake
- fix mesaglu-devel BR
- fix description

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Mon Dec 17 2007 Thierry Vignaud <tv@mandriva.org> 1.99.0-10mdv2008.1
+ Revision: 126425
- kill re-definition of %%buildroot on Pixel's request
- fix summary


* Fri Nov 03 2006 Christiaan Welvaart <cjw@daneel.dyndns.org>
+ 2006-11-03 08:37:56 (76078)
- run libtoolize/aclocal/automake/autoconf to fix build on x86-64

* Fri Nov 03 2006 Christiaan Welvaart <cjw@daneel.dyndns.org>
+ 2006-11-03 08:35:08 (76077)
Import gtkglarea2

* Wed Sep 13 2006 Frederic Crozat <fcrozat@mandriva.com> 1.99.0-9mdv2007.0
- Rebuild with new X11 path
- mkrel

* Mon Nov 15 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.99.0-8mdk
- rebuild