Blob Blame History Raw
Summary:   A graphical project management tool
Name:      planner
Version:   0.14.2
Release:   10%{?dist}
License:   GPLv2+
Group:     Applications/Productivity
URL:       http://live.gnome.org/Planner
Source0:   http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.14/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gtk2-devel >= 2.2.0, libgnomeui-devel >= 2.0.1 
BuildRequires: libglade2-devel >= 2.0.0, gnome-vfs2-devel >= 2.0.2
BuildRequires: libgnomeprintui22-devel >= 2.2.0, libxml2-devel >= 2.5.4
BuildRequires: libxslt-devel >= 1.0.27, intltool, autoconf, automake
BuildRequires: libtool, gettext, libgsf-devel, gtk-doc, pygtk2-devel
BuildRequires: scrollkeeper, glib2-devel, evolution-data-server
BuildRequires: evolution-data-server-devel >= 1.9.1, evolution-devel >= 2.9.1
BuildRequires: python-devel
Requires:  shared-mime-info
Requires(post): %{_bindir}/scrollkeeper-update
Requires(postun): %{_bindir}/scrollkeeper-update
Obsoletes: mrproject <= 0.10.3
Obsoletes: libmrproject <= 0.10.3
Obsoletes: libmrproject-devel <= 0.10.3

Patch0: planner-0.12-desktop-fix.patch
Patch1: planner-0.13-enableeds.patch
Patch2: planner-0.13-gannt-bar-height.patch

%description
Planner is a visual project management application which allows users to
manage several aspects of a project, including schedule tracking using
Gantt charts.

You should install Planner if you wish to manage schedules, allocate
resources, and track the progress of your projects.

%package devel
Summary: Libraries and include files for developing with planner
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig, glib2-devel, libxml2-devel, libgsf-devel

%description devel
This package provides the necessary development libraries and include
files to allow you to develop with planner.

%package eds
Summary: Planner integration with evolution
Group: Applications/Productivity
Requires: %{name} = %{version}-%{release}

%description eds
This package provides a plugin to integration planner and evolution.

%prep
%setup -q
%patch0 -p1 -b .desktop-fix
%patch1 -p1 -b .enableeds
%patch2 -p0 -b .ganttheight

%build
aclocal
automake
intltoolize --force
libtoolize --force
autoconf
%configure --enable-python --disable-gtk-doc --disable-dotnet --disable-update-mimedb --enable-eds --enable-eds-backend --disable-static
make # %{?_smp_mflags} not parallel build safe

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/file-modules/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/storage-modules/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/plugins/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/views/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/python*/site-packages/gtk-2.0/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/storage-modules/libstorage-sql*
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/plugins/libsql-plugin*
rm -f $RPM_BUILD_ROOT/%{_libdir}/evolution-data-server-1.2/extensions/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/evolution/2.12/plugins/*.la

rm -f $RPM_BUILD_ROOT/%{_datadir}/mime/XMLnamespaces
rm -f $RPM_BUILD_ROOT/%{_datadir}/mime/globs
rm -f $RPM_BUILD_ROOT/%{_datadir}/mime/magic
rm -f $RPM_BUILD_ROOT/%{_datadir}/mime/application/*
rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}/*.sql
rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}/*.planner

%find_lang %{name}

%post
/sbin/ldconfig
scrollkeeper-update
if (update-mime-database -v &> /dev/null); then
    update-mime-database "%{_datadir}/mime" > /dev/null
fi

%postun
/sbin/ldconfig
scrollkeeper-update
if (update-mime-database -v &> /dev/null); then
    update-mime-database "%{_datadir}/mime" > /dev/null
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc ChangeLog NEWS README COPYING examples/*.planner
%{_bindir}/%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/file-modules
%{_libdir}/%{name}/storage-modules
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/libhtml-plugin.so
%{_libdir}/%{name}/plugins/libmsp-plugin.so
%{_libdir}/%{name}/plugins/libxmlplanner-plugin.so
%{_libdir}/lib%{name}-1.so.*
%{_libdir}/python*/site-packages/*
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/48x48/mimetypes/*.png
%{_datadir}/mime/packages/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%{_datadir}/gnome/help/%{name}/*
%{_datadir}/omf/%{name}/%{name}-*.omf
%{_mandir}/man1/planner.1.gz

%files eds
%defattr(-,root,root,-)
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/libeds-plugin.so
%dir %{_libdir}/evolution-data-server-1.2
%dir %{_libdir}/evolution-data-server-1.2/extensions
%{_libdir}/evolution-data-server-1.2/extensions/libecalbackendplanner.*
%dir %{_libdir}/evolution
%dir %{_libdir}/evolution/2.12
%dir %{_libdir}/evolution/2.12/plugins
%{_libdir}/evolution/2.12/plugins/liborg-gnome-planner-source.so
%{_libdir}/evolution/2.12/plugins/org-gnome-planner-source.eplug

%files devel
%defattr(-,root,root)
%{_includedir}/%{name}-1.0
%{_libdir}/lib%{name}-1.so
%{_datadir}/gtk-doc/html/lib%{name}
%{_libdir}/pkgconfig/*

%changelog
* Sat Oct 20 2007 Caolan McNamara <caolanm@redhat.com> - 0.14.2-10
- Resolves: rhbz#342891 multiarch conflicts in planner

* Wed Aug 29 2007 Caolan McNamara <caolanm@redhat.com> - 0.14.2-9
- rebuild

* Thu Aug 02 2007 Caolan McNamara <caolanm@redhat.com> - 0.14.2-8
- clarify license, GPLv2 + later version

* Sun Jun 10 2007 Caolan McNamara <caolanm@redhat.com> - 0.14.2-7
- Resolves: rhbz#243367 don't require yelp
  (on the bright side we picked up on evo 2.12)

* Fri Jun 08 2007 Caolan McNamara <caolanm@redhat.com> - 0.14.2-6
- Resolves: rhbz#243367 require yelp

* Sat Apr 21 2007 Matthias Clasen <mclasen@redhat.com> - 0.14.2-5
- Move api docs to -devel

* Fri Feb 09 2007 Caolan McNamara <caolanm@redhat.com> - 0.14.2-4
- some spec cleanup

* Wed Dec 20 2006 Caolan McNamara <caolanm@redhat.com> - 0.14.2-3
- rebuild for new evolution-data-server

* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.14.2-2
- rebuild for python 2.5

* Tue Nov 28 2006 Caolan McNamara <caolanm@redhat.com> - 0.14.2-1
- next version

* Fri Oct 27 2006 Matthew Barnes <mbarnes@redhat.com> - 0.14.1-3
- Update BuildRequires for evolution-devel.
- Update BuildRequires for evolution-data-server-devel.
- Update planner-0.13-enableeds.patch for Evolution 2.10.
- Update some files to _libdir/evolution/2.10.
- Rebuild against evolution-data-server-1.9.1.

* Mon Oct 16 2006 Caolan McNamara <caolanm@redhat.com> - 0.14.1-2
- Resolves: rhbz#211000
- move examples into docdir

* Mon Oct 09 2006 Caolan McNamara <caolanm@redhat.com> - 0.14.1-1
- bump to 0.14.1

* Tue Aug 08 2006 Caolan McNamara <caolanm@redhat.com> - 0.14-3
- rebuild against eds, deja-vu

* Sat Aug 05 2006 Caolan McNamara <caolanm@redhat.com> - 0.14-2
- rebuild against eds

* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.14-1.1
- rebuild

* Fri Jun 23 2006 Caolan McNamara <caolanm@redhat.com> - 0.14-1
- new version

* Wed Mar 17 2006 Caolan McNamara <caolanm@redhat.com> - 0.13-5
- courtesy Stuart Clark <sclark@tpg.com.au> bug fix for: 
  Gantt bar height doesn't match treeview row height
  from bugzilla http://bugzilla.gnome.org/show_bug.cgi?id=128983
- rh#191808# Extra BuildRequires, and fix eds enabling patch

* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.13-4.1
- bump again for double-long bug on ppc(64)

* Thu Feb 09 2006 Caolan McNamara <caolanm@redhat.com> - 0.13-4
- rebuild

* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.13-3.1
- rebuilt for new gcc4.1 snapshot and glibc changes

* Mon Feb 06 2006 Caolan McNamara <caolanm@redhat.com> - 0.13-3
- rh#179781# add evolution data server plugin

* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt

* Wed Mar 30 2005 Caolan McNamara <caolanm@redhat.com> - 0.13-2
- fiddle Requires

* Thu Mar 24 2005 Dan Williams <dcbw@redhat.com> - 0.13-1
- Update to 0.13

* Wed Mar  2 2005 Caolan McNamara <caolanm@redhat.com> - 0.12.1-4
- rebuild with gcc4

* Mon Nov  8 2004 Jeremy Katz <katzj@redhat.com> - 0.12.1-3
- rebuild against python 2.4

* Fri Oct 22 2004 Dan Williams <dcbw@redhat.com> 0.12.1-2
- #rh136296# fix libxml2-devel BuildRequires

* Thu Sep 23 2004 Jonathan Blandford <jrb@redhat.com> 0.12.1-1
- new version

* Wed Sep 22 2004 Florian La Roche <Florian.LaRoche@redhat.de>
- add ldconfig calls to post/postun

* Sun Sep 19 2004 Dan Williams <dcbw@redhat.com> 0.12-5
- Add BuildReq scrollkeeper again (#124184, #111145)
- Add Requires shared-mime-info for update-mime-database
- Fix up planner's .desktop file (#132566)

* Tue Aug 31 2004 Warren Togami <wtogami@redhat.com> 0.12-3
- #131285 proper find_lang usage

* Wed Aug 18 2004 Warren Togami <wtogami@redhat.com> 0.12-2
- BuildReq libtool, gettext, gtk-doc, libgsf-devel, pygtk2-devel

* Thu Aug  5 2004 Dan Williams <dcbw@redhat.com> 0.12-1
- Update to 0.12
- Sync specfile with Imendio specfile
- Add BuildRequires: scrollkeeper (RH #124184)
- Add obsoletes: libmrproject-devel

* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Thu Apr 8 2004 Dan Williams <dcbw@redhat.com> 0.11-1
- Initial Release of 0.11 RPMs