File planner.spec of Package planner

#
# spec file for package planner (Version 0.14.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           planner
BuildRequires:  evolution-data-server-devel
BuildRequires:  evolution-devel
BuildRequires:  fdupes
BuildRequires:  gnome-common
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libgda-devel
BuildRequires:  libgnomecanvas-devel
BuildRequires:  libgnomeprintui-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  libgsf-devel
BuildRequires:  libidl-devel
BuildRequires:  libwnck-devel
BuildRequires:  mozilla-nss-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  python-devel
BuildRequires:  python-gtk-devel
BuildRequires:  scrollkeeper
BuildRequires:  update-desktop-files
Url:            http://live.gnome.org/Planner
License:        GPL v2 or later
Group:          Productivity/Office/Management
Obsoletes:      mrproject
Provides:       mrproject
Requires:       python-gtk gnome-icon-theme
Summary:        Project Management Application for GNOME
Version:        0.14.3
Release:        3
Requires:       %{name}-lang = %{version}
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{version}/%{name}-%{version}.tar.bz2
Patch0:         planner-desktop.patch
Patch1:         planner-evolution.patch
Patch2:         planner-e_utf8.patch
Patch3:         planner-python-util.patch
Patch4:         configure.patch
# PATCH-FIX-UPSTREAM planner-bgo539993-buildfix.patch bgo539993 vuntz@novell.com -- Patch from trunk to fix compilation
Patch5:         planner-bgo539993-buildfix.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%py_requires
%define my_requires %{_builddir}/%{?buildsubdir}/planner-requires

%description
Planner is a free project management application, maintained by
Imendio.

If you want to contribute to the project, please subscribe to the
Planner development mailing list. Send an e-mail to
"planner-dev-request@lists.imendio.com" with the word "subscribe" in
the body of the message.

There is a mailing list archive available at
http://lists.imendio.com/pipermail/planner-dev/

There is also a #planner IRC channel on irc.gnome.org.



Authors:
--------
    Richard Hult        <richard@imendio.com>
    Mikael Hallendal    <micke@imendio.com>
    Alvaro del Castillo <acs@lambdaux.com>

%package devel
License:        GPL v2 or later
Summary:        Project Management Application for GNOME
Group:          Productivity/Office/Management
Requires:       %{name} = %{version} glib2-devel libxml2-devel libgsf-devel
Requires:       gnome-vfs2-devel gconf2-devel

%description devel
Planner is a free project management application, maintained by
Imendio.

If you want to contribute to the project, please subscribe to the
Planner development mailing list. Send an e-mail to
"planner-dev-request@lists.imendio.com" with the word "subscribe" in
the body of the message.

There is a mailing list archive available at
http://lists.imendio.com/pipermail/planner-dev/

There is also a #planner IRC channel on irc.gnome.org.



Authors:
--------
    Richard Hult        <richard@imendio.com>
    Mikael Hallendal    <micke@imendio.com>
    Alvaro del Castillo <acs@lambdaux.com>

%package doc
License:        GPL v2 or later
Summary:        Project Management Application for GNOME
Group:          Productivity/Office/Management
Requires:       %{name} = %{version}

%description doc
Planner is a free project management application, maintained by
Imendio.

If you want to contribute to the project, please subscribe to the
Planner development mailing list. Send an e-mail to
"planner-dev-request@lists.imendio.com" with the word "subscribe" in
the body of the message.

There is a mailing list archive available at
http://lists.imendio.com/pipermail/planner-dev/

There is also a #planner IRC channel on irc.gnome.org.



Authors:
--------
    Richard Hult        <richard@imendio.com>
    Mikael Hallendal    <micke@imendio.com>
    Alvaro del Castillo <acs@lambdaux.com>

%lang_package
%prep
%setup -q
%patch0 -p1
%patch1
%patch2
%patch3
%patch4 -p1
%patch5 -p1

%build
autoreconf -f -i
intltoolize --force
# FIXME: Build as root modifies system!
#   planner-0.14.1: --disable-scrollkeeper does not work properly.
# FIXME: GTKDOC_CFLAGS:
# Silently ignored compilation of uninstalled gtk-doc scanners without RPM_OPT_FLAGS.
%configure \
    --disable-schemas-install \
    --disable-scrollkeeper \
    --disable-update-mimedb \
    --enable-gtk-doc \
    --enable-database \
    --enable-python \
    --enable-python-plugin
# The eds stuff is currently experimental and doesn't currently build anyway.  When it's
# working better we can bring it back.
#    --enable-eds \
#    --enable-eds-backend
# does nor work for planner-0.14.1:
#make %{?jobs:-j%jobs} sqldocdir=%{_docdir}/%{name} sampledir=%{_docdir}/%{name}
make sqldocdir=%{_docdir}/%{name} sampledir=%{_docdir}/%{name}

%install
%makeinstall sqldocdir=%{_docdir}/%{name} sampledir=%{_docdir}/%{name}
cp AUTHORS COPYING ChangeLog NEWS README COPYING $RPM_BUILD_ROOT%{_docdir}/%{name}
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%suse_update_desktop_file -N "Planner" -G "Project Management" -C "" planner Office ProjectManagement
rm $RPM_BUILD_ROOT%{_libdir}/*/*/*.*a
# Make planner independent on evolution
# NOTE: Dependencies are correct, if output of following command is empty:
# rpm -e evolution evolution-data-server 2>&1 | grep planner
cat << EOF > %{my_requires}
#! /bin/sh
grep -vE '%{_libdir}/planner/plugins/libeds-plugin.so|%{_libdir}/evolution' | %{__find_requires} "\$@"
# Alternative solution. In this case it should give exactly the same result:
#%{__find_requires} "\$@" | grep -vE 'libeutil.*\.so\..*|libebook-.*\.so\..*|libcamel-.*\.so\..*|libecal-.*\.so\..*|libedata.*\.so\..*'
EOF
chmod 755 %{my_requires}
%define __find_requires %{my_requires}
### cp $RPM_BUILD_ROOT%{_libdir}/planner/plugins/libeds-plugin.so $RPM_BUILD_ROOT%{_libdir}/planner/plugins/libeds-plugin.so.opt
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre
### %define LIBEUTIL %(cd / ; echo usr/%{_lib}/evolution/*/libeutil.so.?)

%post
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi
### if [ -f %LIBEUTIL ] ; then
###   ln -f usr/%{_lib}/planner/plugins/libeds-plugin.so.opt usr/%{_lib}/planner/plugins/libeds-plugin.so
### fi

%postun
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun
#triggerin -- evolution
### if [ -f %LIBEUTIL ] ; then
###   ln -f usr/%{_lib}/planner/plugins/libeds-plugin.so.opt usr/%{_lib}/planner/plugins/libeds-plugin.so
### fi
#triggerpostun -- evolution
### if [ ! -f %LIBEUTIL ] ; then
###   rm -f usr/%{_lib}/planner/plugins/libeds-plugin.so
### fi

%files -f %{name}.lst
%defattr(-, root, root)
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/48x48/mimetypes/*.png
%{_datadir}/mime/packages/planner.xml
%{_datadir}/pixmaps/*.png
%{_libdir}/*.so.*
%dir %{_libdir}/planner
%{_libdir}/planner/[a-oq-z]*
%dir %{_libdir}/planner/plugins
%{_libdir}/planner/plugins/lib[a-df-z]*.so
### %{_libdir}/planner/plugins/lib*.so.opt
### %ghost %{_libdir}/planner/plugins/libeds-plugin.so
# Own directories to be able to install planner without evolution:
### %{_libdir}/evolution*
%{_datadir}/planner
%{_datadir}/omf/planner
%{py_sitedir}/*.so
%doc %{_mandir}/man1/planner.1*

%files lang -f %{name}.lang

%files devel
%defattr(-, root, root)
%{_libdir}/pkgconfig/*.pc
%{_includedir}/planner-1.0
%{_libdir}/*.so
%{_libdir}/*.la

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/libplanner

%changelog
* Tue Nov 11 2008 ro@suse.de
- really comment out unused triggers
* Fri Oct 03 2008 vuntz@novell.com
- Fix build:
  + Add planner-bgo539993-buildfix.patch taken from upstream svn.
  + Remove planner-gda3.patch which doesn't apply and isn't needed
  anymore.
  + Refresh configure.patch to remove unneeded gda changes.
  + Refresh planner-evolution.patch.
* Fri Sep 12 2008 maw@suse.de
- Update to version 0.14.3:
  + Added support for version 3 of libgda, the database access
  library
  + Added internationalization (I18N) support for HTML export
  + Allow dragging of completion bar in Gantt chart
  + Allow dragging of task duration in Gantt beyond the window
  size
  + %% Complete column added to task and Gantt view
  + Show guide lines setting is now persistent
  + Bugs fixed: bgo#332748, bgo#337382, bgo#345163, bgo#373008,
  bgo#382548, bgo#388454, bgo#393620, bgo#397132, bgo#436263,
  bgo#464359, bgo#486990, and bgo#499090
  + Updated translations.
* Thu Mar 06 2008 maw@suse.de
- Fix the build when against newer versions of intltool.
* Thu Jan 31 2008 sbrabec@suse.cz
- Devhelp documentation moved to the separate package (bnc#248813).
* Thu Oct 18 2007 sbrabec@suse.cz
- Build with libgda-3.
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Fri Aug 10 2007 coolo@suse.de
- define Version before the use of %%version
* Tue Aug 07 2007 maw@suse.de
- Split off a -lang subpackage
- s#%%run_ldconfig#/sbin/ldconfig# in %%post and %%postun.
* Thu Jul 26 2007 maw@suse.de
- Update to version 0.14.2:
  + Fixes for bugzilla.gnome.org bugs fixed: #353232, #368186,
  [#353213], and #358415
  + Minor build changes
  + Updated translations
- Add evolution-data-server-devel, fdupes, libgnomecanvas-devel,
  libgnomeui-devel, and libgnomeprintui-devel as build requirements
- Add configure.patch
- Use fdupes
- For the present, don't build the evolution backend.
* Fri Apr 27 2007 sbrabec@suse.cz
- Do not call meinproc (#227624).
* Mon Mar 19 2007 sbrabec@suse.cz
- Build with evolution-2.10.
* Mon Feb 19 2007 sbrabec@suse.cz
- Fixed broken scriptlets.
* Thu Jan 04 2007 sbrabec@suse.cz
- Build correctly in older products.
* Wed Jan 03 2007 sbrabec@suse.cz
- Spec file cleanup.
* Wed Jan 03 2007 maw@suse.de
- Move to /usr.
* Mon Dec 11 2006 sbrabec@suse.cz
- Define correct %%mandir.
* Mon Dec 04 2006 jhargadon@suse.de
- removed unneeded files (#225778)
* Thu Nov 09 2006 jhargadon@suse.de
- added "intltoolize --copy --force --automake" to the specfile
  so fix a problem with translations. (219388)
* Tue Oct 17 2006 jhargadon@suse.de
- update to version 0.14.1
- new man page contributed by Martin-Eric Racine
- fix for bug #353213
- corrected build of translated user guides
- src/planner-format.c:  fix NULL pointer deref - bug #334121
- src/planner-gantt-row.c:  patch to fix segv on scrolling - bug #345517
- po/POTFILES.in:  Added missing files per bug #344793
* Mon Sep 25 2006 jhargadon@suse.de
- update to version 0.14
- po/POTFILES.in: Removed referece to planner.keys.in
- python/Makefile.am: Correct error when builddir != srcdir
- src/planner-window.c: Change planner homepage in about box to
  live.gnome.org/Planner
- Updated user guide
- Changed 'Hint' lines to 'Guide' Lines
- Shows horizontal lines on Gantt to help line up task tree with chart
- added %%py_requires to the specfile to resolve bug #207924
* Tue Sep 05 2006 ro@suse.de
- patch configure for e-d-s-1.8
* Wed Aug 16 2006 cthiel@suse.de
- buildrequire python-gtk-devel instead of python-gtk
* Mon Mar 13 2006 jpr@suse.de
- Fix build by removing an additional generated mime file
* Tue Feb 28 2006 sbrabec@suse.cz
- Use kdelibs3-doc in BuildRequires for meinproc (#153635#c14).
* Sat Feb 18 2006 gekker@suse.de
- Update .desktop file for UI team
* Mon Feb 13 2006 vvaradhan@novell.com
- Fix to build with evolution-2.5 (aka 2.6)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 20 2005 jpr@suse.de
- Don't look for gettext message domains that don't exist
* Mon Oct 17 2005 sbrabec@suse.cz
- Fixed opt plugin triggers.
* Thu Oct 06 2005 sbrabec@suse.cz
- Don't depend on evolution, use trigger for plugin (#104878).
- Fixed broken python plugin linking.
* Sat Aug 13 2005 gekker@suse.de
- Fix to build with new libgda
* Mon Aug 01 2005 sbrabec@suse.cz
- Build with latest evolution (link with emiscwidgets).
* Fri Jul 29 2005 sbrabec@suse.cz
- Build with kerberos-devel-packages.
* Wed Jul 13 2005 sbrabec@suse.cz
- Build with current version of libgda and evolution.
- Removed unneeded static modules and .la files for modules.
- Branched devel subpackage.
* Wed Jun 08 2005 ro@suse.de
- wildcard for python version
* Tue May 03 2005 pmladek@suse.cz
- added mozilla-nss mozilla-nss-devel to fix build
* Tue Apr 05 2005 sbrabec@suse.cz
- Updated to version 0.13 (#71967).
- Enabled optional plugins.
- Build as user.
* Tue Mar 22 2005 ro@suse.de
- fix build by removing more generated mime files
* Wed Mar 16 2005 clahey@suse.de
- Degeneralize menu item.
* Thu Mar 10 2005 ke@suse.de
- Make use of German translations coming with the 0.12.94 pre-release.
- Fix translation for the .desktop file; reported by Joachim Werner
  [#71895].
* Mon Nov 01 2004 mmj@suse.de
- Locale rename no to nb
* Fri Aug 27 2004 clahey@suse.de
- Cache planner help and show planner in khelpcenter.
* Thu Aug 26 2004 sbrabec@suse.cz
- Fixed shared mime installation according to bug #44182.
* Fri Aug 13 2004 ro@suse.de
- update filelist
* Mon Aug 09 2004 sagarwal@suse.de
- Upgraded the version of planner from 0.11 to 0.12.
* Mon Jun 21 2004 sagarwal@suse.de
- Fixed bug #59012, file chaned src/planner-gantt-print.c
* Mon Jun 21 2004 sagarwal@suse.de
- Fixed bug #59015, file changed src/planner-html-plugin.c
* Wed May 12 2004 clahey@suse.de
- Switched from mrproject to planner.
* Sun Mar 07 2004 ro@suse.de
- move build macro before first make install
* Sat Aug 16 2003 adrian@suse.de
- add Categories
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Sat Jun 28 2003 coolo@suse.de
- package directories
- use %%find_lang
* Thu Jun 05 2003 ro@suse.de
- added unpackaged files (mostly small devel stuff) to filelist
* Mon Apr 28 2003 adrian@suse.de
- add libgsf-gnome to #neededforbuild
* Wed Feb 26 2003 hhetter@suse.de
- fix build, really link any plugin
- fix scrollkeeper usage, and build help docs
- updated to bugfix-only release 0.9.1
* Tue Feb 18 2003 adrian@suse.de
- fix build
* Mon Feb 17 2003 adrian@suse.de
- update to version 0.9
* Mon Feb 17 2003 hhetter@suse.de
- updated to stable bugfix release 0.8 (+library)
- filelist fix
* Thu Jan 16 2003 ro@suse.de
- use "gtk2-devel-packages,libjpeg" in neededforbuild
* Wed Jan 15 2003 ro@suse.de
- added expat to neededforbuild
* Wed Sep 25 2002 sf@suse.de
- added alsa-devel to neededforbuild
- fixed some biarch-prblems in .spec to build those Archs
* Mon Sep 23 2002 hhetter@suse.de
- build with alsa support
* Thu Aug 15 2002 hhetter@suse.de
- updated to GNOME 2 port of mrproject: version 0.6
- complete filelist rework
* Thu Jun 20 2002 ro@suse.de
- use "-a -f" for automake
* Mon Jun 03 2002 ro@suse.de
- use "gnome-devel-packages" in neededforbuild
* Tue Mar 05 2002 hhetter@suse.de
- fixed filelist and permissions (close Bug Id#14268)
- really build with automake 1.5
- use buildroot
- enable evolution mail component
- functionality test on i386
* Tue Dec 18 2001 hhetter@suse.de
- updated to version 0.5.0
  * translation updates
  * sorting in allocation table fixed
  * improvements to calendar component
* Wed Nov 21 2001 ro@suse.de
- added freetype2 to neededforbuild
* Wed Oct 24 2001 hhetter@suse.de
- updated to 0.4.0
  * Network diagram component
  * Calendar component
  * Progress tracking
  * Draw fixes in Gantt component
  * New icons
  * Better navigation in Gantt (right-click-menu)
  * Simple man pages
  * Various bug fixes
- prefixed to /opt/gnome
- enabled python module
- functionality test on i386
* Thu Oct 11 2001 sf@suse.de
- added missing parameters in function call to compile with gcc > 2.95.x
* Thu Jul 05 2001 kkaempf@suse.de
- Initial version 0.3.2
openSUSE Build Service is sponsored by