-Summary: Gnome Devtool Libraries
+Summary: GNOME Devtool Libraries
+Summary(pl): Biblioteki GNOME Devtool
Name: gdl
-Version: 0.4.0
+Version: 0.6.1
Release: 1
License: GPL
Group: Libraries
-Source0: http://ftp.gnome.org/pub/gnome/%{name}/0.4/%{name}-%{version}.tar.bz2
-# Source0-md5: eb4dfd9def266e4e5cd1e9883b5bdf2a
+Source0: http://ftp.gnome.org/pub/gnome/sources/gdl/0.6/%{name}-%{version}.tar.bz2
+# Source0-md5: 6d902981efe30950af8f5033d937c270
+Patch0: %{name}-broken_locale.patch
BuildRequires: autoconf
BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: gnome-common >= 2.12.0
+BuildRequires: intltool
BuildRequires: libbonoboui-devel >= 2.2.0
-BuildRequires: libglade2-devel >= 2.0.0
-BuildRequires: libgnomeui-devel >= 2.2.0
+BuildRequires: libglade2-devel >= 1:2.5.1
+BuildRequires: libgnomeui-devel >= 2.15.1
BuildRequires: libtool
-Requires(post): GConf2
-Requires(post): /sbin/ldconfig
+BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This package contains components and libraries that are intended to be
shared between GNOME development tools, including gnome-debug,
gnome-build, and anjuta2. The current pieces of GDL include: a symbol
-browser bonobo component (symbol-browser-control), a docking widget (gdl),
-a utility library that also contains the stubs and skels for the symbol
-browser and text editor components (gdl, idl).
+browser bonobo component (symbol-browser-control), a docking widget
+(gdl), a utility library that also contains the stubs and skels for
+the symbol browser and text editor components (gdl, idl).
+
+%description -l pl
+Ten pakiet zawiera komponenty i biblioteki zaprojektowane jako wspólne
+dla ró¿nych narzêdzi programistycznych GNOME, takich jak: gnome-debug,
+gnome-build i anjuta2. Aktualnie GDL zawiera: przegl±darkê symboli
+jako komponent bonobo (symbol-browser-control), dokowany element
+interfejsu graficznego (gdl), bibliotekê narzêdzi zawieraj±c± tak¿e
+szkielety dla przegl±darki symboli i komponentów edytora tekstu (gdl,
+idl).
%package devel
Summary: Header files for gdl development
Summary(pl): Pliki nag³ówkowe do biblioteki gdl
Group: Development/Libraries
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description devel
This package contains the header files needed to develop programs that
Summary: Static libraries for gdl development
Summary(pl): Statyczne biblioteki gdl
Group: Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
%description static
This package contains the static gdl libraries.
%prep
%setup -q
+%patch0 -p1
%build
-glib-gettextize --copy --force
+%{__glib_gettextize}
+%{__intltoolize}
%{__libtoolize}
-%{__aclocal} -I %{_aclocaldir}/gnome2-macros
+%{__aclocal}
%{__autoconf}
%{__automake}
%configure
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%find_lang gdl-1 --with-gnome
+%find_lang %{name}-1 --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-/sbin/ldconfig
-%gconf_schema_install
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
-%files -f gdl-1.lang
+%files -f %{name}-1.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_bindir}/*
-%{_libdir}/bonobo/servers/*
%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
%{_datadir}/gdl
-%{_datadir}/gnome-2.0/ui/*
-%{_datadir}/idl/libgdl-1.0/*.idl
%files devel
%defattr(644,root,root,755)