File planner.spec of Package planner

#
# spec file for package planner (Version 0.14.4)
#
# Copyright (c) 2009 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:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libgda-3_0-devel
BuildRequires:  libgnomecanvas-devel
BuildRequires:  libgnomeui-devel
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.4
Release:        1
Requires:       %{name}-lang = %{version}
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{version}/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%py_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 evolution
License:        GPL v2 or later
Summary:        Planner integration with Evolution
Group:          Productivity/Office/Management
Requires:       %{name} = %{version}
Supplements:    packageand(planner:evolution)

%description evolution
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
Provides:       %{name}-doc = %{version}
Obsoletes:      %{name}-doc < %{version}

%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>

%lang_package
%prep
%setup -q

%build
%configure --disable-static --with-pic \
    --disable-schemas-install \
    --disable-scrollkeeper \
    --disable-update-mimedb \
    --enable-gtk-doc \
    --with-database=auto \
    --enable-python \
    --enable-python-plugin \
    --enable-eds \
    --enable-eds-backend
make %{?jobs:-j%jobs} 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}
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%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
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%post
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
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

%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.*
%{_libdir}/planner
%{_datadir}/planner
%{py_sitedir}/*.so
%doc %{_mandir}/man1/planner.1*
%exclude %{_libdir}/planner/plugins/libeds-plugin.so

%files evolution
%defattr(-, root, root)
%{_libdir}/evolution-data-server-*/extensions/*.so*
%{_libdir}/evolution/*/plugins/*.so
%{_libdir}/evolution/*/plugins/*.eplug
%{_libdir}/planner/plugins/libeds-plugin.so

%files lang -f %{name}.lang

%files devel
%defattr(-, root, root)
%{_libdir}/pkgconfig/*.pc
%{_includedir}/planner-1.0
%{_libdir}/*.so
%{_datadir}/gtk-doc/html/libplanner
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html

%changelog
* Thu Apr 16 2009 vuntz@novell.com
- Update to version 0.14.4:
  + Rewrote printing to use the GTK printing API, fixing most
  problems with printing on Windows
  + Added display of minutes to duration format
  + Added creation of Windows installer to Makefiles
  + Dropped support for libgda < 3.0
  + Added proper quoting to SQL code (bgo#168147, bgo#571801)
  + Fixed alignment problems in HTML export (bgo#471218,
  bgo#478027)
  + Fixed a crash in UNDO/REDO code (#420443)
  + Fixed several issues with the build (bgo#528582, bgo#528971,
  bgo#529045, bgo#539993)
  + Updated translations.
- Drop planner-desktop.patch: we already do this via
  suse_update_desktop_file.
- Drop planner-evolution.patch, planner-e_utf8.patch,
  planner-python-util.patch, configure.patch: not needed anymore.
- Drop planner-bgo539993-buildfix.patch: fixed upstream.
- Remove unneeded BuildRequires: gnome-common,
  libgnomeprintui-devel, libgsf-devel, libidl-devel, libwnck-devel,
  mozilla-nss-devel, perl-XML-Parser
- Do not call autoreconf and intltoolize anymore.
- Fix configure flag for libgda from --enable-database to
  --with-database.
- Re-enable the use of evolution-data-server (via configure), and
  create a planner-evolution package to not have planner always
  depend on evolution (instead of using some hack).
- Re-enable parallel build.
- Remove check for old version of openSUSE.
- Merge doc package in devel package since it only provided gtk-doc
  files.
- Do not package omf files twice.
- Rework the package list.
* Tue Feb 10 2009 vuntz@novell.com
- Use sr@latin instead of sr@Latn.
* Fri Feb 06 2009 hfiguiere@suse.de
- BuildRequires on libgda-3_0-devel.
* Thu Jan 29 2009 vuntz@novell.com
- BuildRequires on libgda-4_0-devel.
* Sat Jan 17 2009 crrodriguez@suse.de
- remove "la" files
* 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
* Tue Feb 18 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
* Fri Jun 21 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