[libgnomecanvas] - Merge-review cleanup (#226012)

paragn paragn at fedoraproject.org
Wed Sep 29 04:16:59 UTC 2010


commit 21ae4003250595f23829d4bd5b0165d071d38f0d
Author: paragn <paragn at fedoraproject.org>
Date:   Wed Sep 29 09:51:27 2010 +0530

    - Merge-review cleanup (#226012)

 libgnomecanvas.spec |   46 +++++++++++++++-------------------------------
 1 files changed, 15 insertions(+), 31 deletions(-)
---
diff --git a/libgnomecanvas.spec b/libgnomecanvas.spec
index 8cca9b3..9b8efec 100644
--- a/libgnomecanvas.spec
+++ b/libgnomecanvas.spec
@@ -1,24 +1,17 @@
 %define gettext_package libgnomecanvas-2.0
 
-%define gtk2_version 2.1.2
-%define libart_lgpl_version 2.3.8
-%define libglade2_version 2.0.1
-%define gail_version 1.9.0
-
 Summary: GnomeCanvas widget
 Name: libgnomecanvas
 Version: 2.30.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 URL: http://www.gnome.org/
 Source0: http://download.gnome.org/sources/libgnomecanvas/2.30/%{name}-%{version}.tar.bz2
 License: LGPLv2+
 Group: System Environment/Libraries
-Requires: gtk2 >= %{gtk2_version}
-Requires: libglade2 >= 2.6.3-2
-BuildRequires: gtk2-devel >= %{gtk2_version}
-BuildRequires: libart_lgpl-devel >= %{libart_lgpl_version}
-BuildRequires: libglade2-devel >= %{libglade2_version}
-BuildRequires: gail-devel >= %{gail_version}
+BuildRequires: gtk2-devel
+BuildRequires: libart_lgpl-devel
+BuildRequires: libglade2-devel 
+BuildRequires: gail-devel
 BuildRequires: libtool gettext
 BuildRequires: intltool
 
@@ -30,17 +23,11 @@ Tk canvas widget but has evolved quite a bit over time.
 %package devel
 Summary: Libraries and headers for libgnomecanvas
 Group: Development/Libraries
-Requires: %name = %{version}-%{release}
-Conflicts: gnome-libs-devel < 1.4.1.2
-Requires: gtk2-devel >= %{gtk2_version}
-Requires: libart_lgpl-devel >= %{libart_lgpl_version}
-Requires: libglade2-devel >= 2.6.3-2
-Requires: pkgconfig
+Requires: %{name} = %{version}-%{release}
 # for /usr/share/gtk-doc/html
 Requires: gtk-doc
 
 %description devel
-
 The canvas widget allows you to create custom displays using stock items
 such as circles, lines, text, and so on. It was originally a port of the
 Tk canvas widget but has evolved quite a bit over time.
@@ -49,24 +36,18 @@ Tk canvas widget but has evolved quite a bit over time.
 %setup -q
 
 %build
-export CFLAGS=$(echo $RPM_OPT_FLAGS |sed -e 's/O2/O1/g')
-%configure --disable-gtk-doc --enable-glade
-export tagname=CC
-make %{?_smp_mflags} LIBTOOL=/usr/bin/libtool
+%configure --disable-gtk-doc --enable-glade --disable-static
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+make %{?_smp_mflags} 
 
 %install
-rm -rf %{buildroot}
-export tagname=CC
-make install DESTDIR=$RPM_BUILD_ROOT  LIBTOOL=/usr/bin/libtool
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
-rm -f $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.{a,la}
 
 %find_lang %{gettext_package}
 
-%clean
-rm -rf %{buildroot}
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
@@ -85,6 +66,9 @@ rm -rf %{buildroot}
 %{_datadir}/gtk-doc/html/libgnomecanvas
 
 %changelog
+* Thu Sep 23 2010 Parag Nemade <paragn AT fedoraproject.org> 2.30.1-2
+- Merge-review cleanup (#226012)
+
 * Thu Apr  1 2010 Matthias Clasen <mclasen at redhat.com> 2.30.1-1
 - Update to 2.30.1
 


More information about the scm-commits mailing list