Dominique Leuenberger 2013-02-26 19:45:19 +00:00 committed by Git OBS Bridge
parent 4a87dbb8a8
commit 96ab8e3bc3

View File

@ -21,11 +21,10 @@ Name: gtkglext
%define git_date 20110529 %define git_date 20110529
Version: 1.2.0git%{git_date} Version: 1.2.0git%{git_date}
Release: 0 Release: 0
# NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to < (here and in baselibs.conf) License: LGPL-2.1+ and GPL-2.0+
Summary: OpenGL Extension to GTK Summary: OpenGL Extension to GTK
License: GPL-2.0+
Group: System/Libraries
Url: http://projects.gnome.org/gtkglext/ Url: http://projects.gnome.org/gtkglext/
Group: System/Libraries
# git clone git://git.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 # git archive %{git_commit} --prefix=gtkglext-git%{git_date}/ | bzip2 > ../gtkglext-git%{git_date}.tar.bz2
Source: %{name}-git%{git_date}.tar.bz2 Source: %{name}-git%{git_date}.tar.bz2
@ -33,11 +32,11 @@ Source99: baselibs.conf
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: freeglut-devel BuildRequires: freeglut-devel
BuildRequires: libtool
# For directory ownership: # For directory ownership:
BuildRequires: gtk-doc BuildRequires: gtk-doc
BuildRequires: gtk2-devel >= 2.20
BuildRequires: libdrm-devel BuildRequires: libdrm-devel
BuildRequires: libtool
BuildRequires: pkgconfig(gtk+-2.0) >= 2.20
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -46,10 +45,10 @@ that support OpenGL rendering in GTK and GtkWidget API add-ons, to make
GTK+ widgets OpenGL-capable. GTK+ widgets OpenGL-capable.
%package -n libgtkglext-x11-1_0-0 %package -n libgtkglext-x11-1_0-0
License: LGPL-2.1+
Summary: OpenGL Extension to GTK Summary: OpenGL Extension to GTK
Group: System/Libraries Group: System/Libraries
Provides: %{name} = %{version} 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} Obsoletes: %{name} < %{version}
%description -n libgtkglext-x11-1_0-0 %description -n libgtkglext-x11-1_0-0
@ -58,6 +57,7 @@ that support OpenGL rendering in GTK and GtkWidget API add-ons, to make
GTK+ widgets OpenGL-capable. GTK+ widgets OpenGL-capable.
%package devel %package devel
License: LGPL-2.1+
Summary: OpenGL Extension to GTK Summary: OpenGL Extension to GTK
Group: System/Libraries Group: System/Libraries
Requires: Mesa-devel Requires: Mesa-devel
@ -94,7 +94,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%makeinstall %make_install
rm -f %{buildroot}%{_libdir}/*.la rm -f %{buildroot}%{_libdir}/*.la
%clean %clean