gtkglext/gtkglext.spec
Dominique Leuenberger 2ec144c0c0 Accepting request 147831 from home:Dmitry_R:geda
gtkglext was deleted due to pangox requirement, current git version (last commit - 29.05.2011) doesn't require pangox

OBS-URL: https://build.opensuse.org/request/show/147831
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtkglext?expand=0&rev=1
2013-01-13 16:02:22 +00:00

131 lines
4.1 KiB
RPMSpec

#
# spec file for package gtkglext
#
# 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: gtkglext
%define git_commit 8c13cc48
%define git_date 20110529
Version: 1.2.0git%{git_date}
Release: 0
# NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to < (here and in baselibs.conf)
Summary: OpenGL Extension to GTK
License: GPL-2.0+
Group: System/Libraries
Url: http://projects.gnome.org/gtkglext/
# git clone git://git.gnome.org/gtkglext
# git archive %{git_commit} --prefix=gtkglext-git%{git_date}/ | bzip2 > ../gtkglext-git%{git_date}.tar.bz2
Source: %{name}-git%{git_date}.tar.bz2
Source99: baselibs.conf
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: freeglut-devel
BuildRequires: libtool
# For directory ownership:
BuildRequires: gtk-doc
BuildRequires: gtk2-devel >= 2.20
BuildRequires: libdrm-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GtkGLExt is an OpenGL extension to GTK. It provides the GDK objects
that support OpenGL rendering in GTK and GtkWidget API add-ons, to make
GTK+ widgets OpenGL-capable.
%package -n libgtkglext-x11-1_0-0
Summary: OpenGL Extension to GTK
Group: System/Libraries
Provides: %{name} = %{version}
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 1.2.0 (when this provides/obsoletes was introduced)
Obsoletes: %{name} < %{version}
%description -n libgtkglext-x11-1_0-0
GtkGLExt is an OpenGL extension to GTK. It provides the GDK objects
that support OpenGL rendering in GTK and GtkWidget API add-ons, to make
GTK+ widgets OpenGL-capable.
%package devel
Summary: OpenGL Extension to GTK
Group: System/Libraries
Requires: Mesa-devel
Requires: libgtkglext-x11-1_0-0 = %{version}
# Those are listed as Libs in gdkglext-1.0.pc, and therefore are not
# automatically added
Requires: pkgconfig(gl)
%description devel
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.
%package doc
Summary: Documentation of the OpenGL Extension to GTK
Group: System/Libraries
Requires: libgtkglext-x11-1_0-0 = %{version}
%description doc
This package contains additional documentation for gtkglext.
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.
%prep
%setup -q -n %{name}-git%{git_date}
%build
./bootstrap
# Required for gtkglext-1.2.0:
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure
make %{?_smp_mflags}
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf %{buildroot}
%post -n libgtkglext-x11-1_0-0 -p /sbin/ldconfig
%postun -n libgtkglext-x11-1_0-0 -p /sbin/ldconfig
%files -n libgtkglext-x11-1_0-0
%defattr (-, root, root)
# NEWS is empty
%doc AUTHORS COPYING COPYING.LIB README TODO
%{_libdir}/libgdkglext-x11-1.0.so.*
%{_libdir}/libgtkglext-x11-1.0.so.*
%files devel
%defattr (-, root, root)
# %{_datadir}/aclocal/gtkglext-1.0.m4
%{_libdir}/gtkglext-1.0/
%{_libdir}/libgdkglext-x11-1.0.so
%{_libdir}/libgtkglext-x11-1.0.so
%{_libdir}/pkgconfig/gdkglext-1.0.pc
%{_libdir}/pkgconfig/gdkglext-x11-1.0.pc
%{_libdir}/pkgconfig/gtkglext-1.0.pc
%{_libdir}/pkgconfig/gtkglext-x11-1.0.pc
%{_includedir}/gtkglext-1.0/
%files doc
%defattr (-, root, root)
%doc %{_datadir}/gtk-doc/html/gtkglext/
%changelog