diff --git a/gtkglext.spec b/gtkglext.spec index 3b3d0b3..6cb9ad7 100644 --- a/gtkglext.spec +++ b/gtkglext.spec @@ -21,11 +21,10 @@ Name: gtkglext %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) +License: LGPL-2.1+ and GPL-2.0+ Summary: OpenGL Extension to GTK -License: GPL-2.0+ -Group: System/Libraries Url: http://projects.gnome.org/gtkglext/ +Group: System/Libraries # 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 @@ -33,11 +32,11 @@ 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 +BuildRequires: libtool +BuildRequires: pkgconfig(gtk+-2.0) >= 2.20 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -46,10 +45,10 @@ that support OpenGL rendering in GTK and GtkWidget API add-ons, to make GTK+ widgets OpenGL-capable. %package -n libgtkglext-x11-1_0-0 +License: LGPL-2.1+ 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 @@ -58,6 +57,7 @@ that support OpenGL rendering in GTK and GtkWidget API add-ons, to make GTK+ widgets OpenGL-capable. %package devel +License: LGPL-2.1+ Summary: OpenGL Extension to GTK Group: System/Libraries Requires: Mesa-devel @@ -94,7 +94,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" make %{?_smp_mflags} %install -%makeinstall +%make_install rm -f %{buildroot}%{_libdir}/*.la %clean