# don't change this unless packaging for a specific distribution in a package # repository sanctioned that uses a vendor string with desktop-file-install %define desktop_vendor gnome Name: criawips Version: 0.0.10.1 Release: 2 Summary: Presentation for Everyone Group: Applications/Productivity License: GPL URL: http://www.nongnu.org/criawips/ Source0: http://savannah.nongnu.org/download/criawips/criawips-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtk2-devel goffice-devel BuildRequires: desktop-file-utils gettext BuildRequires: docbook-dtds gnome-doc-utils Requires(post): /usr/bin/scrollkeeper-update Requires(post): /usr/bin/gconftool-2 Requires(post): shared-mime-info desktop-file-utils Requires(preun): /usr/bin/gconftool-2 Requires(postun): /usr/bin/scrollkeeper-update Requires(postun): shared-mime-info desktop-file-utils %description Criawips aims to become a full featured presentation application that offers the perfect platform both for small presentations used to explain a few things to other people and for big presentations used for commercial presentations. Thus it should become easy to use, provide a good integration with other applications to become a presentation platform that can compete with commercial applications like MS PowerPoint, OpenImpress and Apple's Keynote. %prep %setup -q # For Fedora Extras spec says don't use X-Redhat-Base, use X-Fedora # For other distributions, delete the sed pipe line that removes # X-Red-Hat-Base but keep the line that fixes Exec pushd data cp criawips.desktop.in criawips.desktop.in.orig cat criawips.desktop.in.orig \ |sed s?"X\-Red\-Hat\-Base;"?""? \ |sed s?"^Exec=criawips.*"?"Exec=criawips"? > criawips.desktop.in popd %build %configure \ --disable-scrollkeeper \ --disable-schemas-install \ --disable-update-mimedb \ --enable-gtk-doc make %{?_smp_mflags} %install rm -rf %buildroot # below export shouldn't be needed w/ configure switch, but it doesn't hurt export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=%buildroot unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL # For non Fedora (IE you removed the sed pipe that removed X-Red-Hat-Base) # delete the --add-category=X-Fedora line below desktop-file-install %buildroot%_datadir/applications/criawips.desktop \ --add-category=X-Fedora \ --vendor=%{desktop_vendor} \ --dir=%buildroot%_datadir/applications \ --delete-original find %buildroot%_libdir -type f -name "*.la" -exec rm -f {} ';' %find_lang %{name} --with-gnome # lang specific stuff not detected by macro cat <> %{name}.lang %_datadir/gnome/help/criawips-manual/C/*.xml %_datadir/omf/criawips-manual/criawips-manual-C.omf %lang(de) %_datadir/gnome/help/criawips-manual/de/*.xml %lang(de) %_datadir/omf/criawips-manual/criawips-manual-de.omf EOF %clean rm -rf %buildroot %post /sbin/ldconfig /usr/bin/scrollkeeper-update > /dev/null 2>&1 || : export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` /usr/bin/gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/criawips.schemas >/dev/null ||: update-mime-database %{_datadir}/mime > /dev/null 2>&1 || : update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %preun export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` /usr/bin/gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/criawips.schemas >/dev/null || : %postun /sbin/ldconfig /usr/bin/scrollkeeper-update > /dev/null 2>&1 || : update-mime-database %{_datadir}/mime > /dev/null 2>&1 || : update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %files -f %{name}.lang %defattr(-,root,root,-) %doc API_DISCUSSION AUTHORS ChangeLog COPYING NEWS README README.cut-n-paste %doc ROADMAP TODO %_bindir/criawips %_libdir/*.so* # do we need to package the static? %_libdir/*.a %_datadir/criawips %_datadir/pixmaps/* %_datadir/gtk-doc/html/ccc %_datadir/gtk-doc/html/criawips %_datadir/mime/packages/criawips.xml %_datadir/applications/%{desktop_vendor}-criawips.desktop %_mandir/man1/* %config %_sysconfdir/gconf/schemas/criawips.schemas %changelog * Tue Oct 04 2005 Michael A. Peters 0.0.10.1-2 - fixed Exec string in desktop file causing it to fail when called from - the gnome menu * Tue Oct 04 2005 Michael A. Peters 0.0.10.1-1 - initial packaging