%define ver @VERSION@ %define rel 1mdk %define major 4 %define libname %mklibname %{name} %{major} Summary: Tree oriented XML editor for GNOME Name: @PACKAGE@ Version: %{ver} Release: %{rel} License: GPL Group: Editors URL: http://mlview.org Buildroot: %{_tmppath}/%{name}-%{version}-root Source: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.6/%{name}-%{version}.tar.bz2 BuildRequires: libgnomeui2-devel >= @LIBGNOMEUI2_VERSION@ BuildRequires: libgnome2_0-devel >= @LIBGNOME2_VERSION@ BuildRequires: libglib2.0_0-devel >= @GLIB2_VERSION@ BuildRequires: libgtk+2.0_0-devel >= @GTK2_VERSION@ BuildRequires: libxml2-devel >= @LIBXML2_VERSION@ BuildRequires: libglade2.0-devel >= @LIBGLADE2_VERSION@ Requires: %{libname} = %{version}-%{release} %description MlView is a generic XML editor for the GNOME environment. %package -n %{libname} Summary: The essential library of the mlview application Group: System/Libraries %description -n %{libname} libmlview is the essential library needed by the mlview application. %prep %setup -q %build %configure2_5x --disable-schemas-install %make %install rm -rf %buildroot GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std mkdir -p $RPM_BUILD_ROOT%{_menudir} cat << _EOF_ > $RPM_BUILD_ROOT%{_menudir}/%{name} ?package(%{name}): \ command="%{_bindir}/mlv" \ icon="editors_section.png" \ longtitle="Tree oriented XML editor" \ needs="x11" \ section="Applications/Editors" \ title="MlView XML editor" _EOF_ %{find_lang} %{name} # remove files not bundled # "devel" files not useful yet rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a \ $RPM_BUILD_ROOT%{_libdir}/lib*.la \ $RPM_BUILD_ROOT%{_libdir}/lib*.so %files -n %{libname} %defattr(-,root,root) %doc COPYING %{_libdir}/lib*.so* %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %post GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/mlview.schemas > /dev/null %{update_menus} %postun if [ "$1" = "0" ]; then GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/mlview.schemas > /dev/null fi %{clean_menus} %clean rm -rf %buildroot %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS BRANCHES COPYING ChangeLog NEWS README %{_bindir}/* %{_sysconfdir}/gconf/schemas/mlview.schemas %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/*.png %{_datadir}/pixmaps/*.xpm %{_datadir}/%{name}/*.glade %{_menudir}/%{name} %changelog * Wed Dec 10 2003 Dodji Seketeli 0.6.2-1mdk - updated the package for the new 0.6.2 version. * Sat Nov 15 2003 Dodji Seketeli 0.6.1-1mdk - updated the package for the new 0.6.1 version. * Thu Sep 4 2003 Olivier Blin 0.6.0-4mdk - fix changelog * Thu Sep 4 2003 Abel Cheung 0.6.0-3mdk - one more attempt * Thu Sep 4 2003 Abel Cheung 0.6.0-2mdk - rebuild to get back binary rpms * Thu Sep 4 2003 Abel Cheung 0.6.0-1mdk - 0.6.0 red hot from oven * Sat Aug 30 2003 Abel Cheung 0.6.0-0.20030831.1mdk - heading for 0.6 instead (according to author) * Sun Aug 17 2003 Abel Cheung 0.5.0-0.20030817.1mdk - First Mandrake spec - API doc not built, since the devel stuff is not useful yet