author | hh150184 |
Tue, 24 Jan 2006 11:56:37 +0000 | |
branch | gnome-2-12 |
changeset 19207 | b59a653a3329 |
parent 6326 | 865f56fdae1c |
child 6923 | 45fbffcf5f44 |
permissions | -rw-r--r-- |
1952 | 1 |
# |
5518 | 2 |
# spec file for package planner |
3 |
# |
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
1952 | 7 |
# |
8 |
||
9 |
Name: planner |
|
10 |
License: GPL |
|
11 |
Group: Applications/Office |
|
5518 | 12 |
Version: 0.13 |
6326 | 13 |
Release: 2 |
5518 | 14 |
Distribution: Java Desktop System |
1952 | 15 |
Vendor: Sun Microsystems, Inc. |
16 |
Summary: Planner, a project planning tool. |
|
17 |
Source: http://ftp.gnome.org/pub/GNOME/sources/planner/%{version}/planner-%{version}.tar.bz2 |
|
6326 | 18 |
#FIXME: move from /usr/sfw/bin |
3751 | 19 |
Patch1: planner-01-menu-entry.diff |
5674
c6d814b46e4c
* planner.spec: Add patch to remove compiler options that forte doesn't support.
dc144907
parents:
5565
diff
changeset
|
20 |
Patch2: planner-02-forte-switches.diff |
1952 | 21 |
URL: http://planner.imendio.org/ |
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
23 |
Docdir: %{_defaultdocdir}/doc |
|
24 |
Autoreqprov: on |
|
25 |
||
6193 | 26 |
%define python_version 2.4 |
5518 | 27 |
%define mrproject_version 0.9.1 |
28 |
%define glib2_version 2.4.0 |
|
1952 | 29 |
%define gtk2_version 2.0.4 |
5518 | 30 |
%define libgnomecanvas_version 2.6.0 |
31 |
%define libgnomeui_version 2.6.0 |
|
32 |
%define libglade_version 2.4.0 |
|
33 |
%define libgnomeprintui_version 2.6.0 |
|
34 |
%define gnome_vfs_version 2.6.0 |
|
35 |
%define scrollkeeper_version 0.3.11 |
|
36 |
%define libxml2_version 2.4.7 |
|
37 |
%define pygtk2_version 2.6.0 |
|
1952 | 38 |
|
5518 | 39 |
Requires: libxml2 >= %{libxml2_version} |
1952 | 40 |
Requires: glib2 >= %{glib2_version} |
41 |
Requires: gtk2 >= %{gtk2_version} |
|
42 |
Requires: libgnomecanvas >= %{libgnomecanvas_version} |
|
43 |
Requires: libgnomeui >= %{libgnomeui_version} |
|
44 |
Requires: libglade >= %{libglade_version} |
|
45 |
Requires: libgnomeprintui >= %{libgnomeprintui_version} |
|
46 |
Requires: gnome-vfs >= %{gnome_vfs_version} |
|
5518 | 47 |
Requires: pygtk2 >= %{pygtk2_version} |
6193 | 48 |
Requires: python >= %{python_version} |
5518 | 49 |
BuildRequires: libxml2-devel >= %{libxml2_version} |
1952 | 50 |
BuildRequires: glib2-devel >= %{glib2_version} |
51 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
52 |
BuildRequires: libgnomecanvas-devel >= %{libgnomecanvas_version} |
|
53 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version} |
|
54 |
BuildRequires: libglade-devel >= %{libglade_version} |
|
55 |
BuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version} |
|
56 |
BuildRequires: gnome-vfs-devel >= %{gnome_vfs_version} |
|
5518 | 57 |
BuildRequires: pygtk2-devel >= %{pygtk2_version} |
1952 | 58 |
BuildRequires: scrollkeeper >= %{scrollkeeper_version} |
5518 | 59 |
BuildRequires: shared-mime-info |
1952 | 60 |
|
5518 | 61 |
Obsoletes: mrproject <= %{mrproject_version} |
62 |
Obsoletes: libmrproject <= %{mrproject_version} |
|
63 |
Provides: mrproject = %{mrproject_version} |
|
64 |
Provides: libmrproject = %{mrproject_version} |
|
1952 | 65 |
|
66 |
%description |
|
67 |
Planner is a tool for planning, scheduling and tracking projects. Planner is |
|
68 |
an open source project targetting the GNOME Desktop. |
|
69 |
||
70 |
%package devel |
|
3751 | 71 |
Summary: Development headers and files for the planner libraries |
72 |
Group: Development/Libraries/X11 |
|
73 |
Autoreqprov: on |
|
74 |
Requires: %{name} = %{version} |
|
5518 | 75 |
Requires: libxml2-devel >= %{libxml2_version} |
1952 | 76 |
Requires: glib2-devel >= %{glib2_version} |
77 |
Requires: gtk2-devel >= %{gtk2_version} |
|
78 |
Requires: libgnomecanvas-devel >= %{libgnomecanvas_version} |
|
79 |
Requires: libgnomeui-devel >= %{libgnomeui_version} |
|
80 |
Requires: libglade-devel >= %{libglade_version} |
|
81 |
Requires: libbonoboui-devel >= %{libbonoboui_version} |
|
82 |
Requires: libgnomeprintui-devel >= %{libgnomeprintui_version} |
|
83 |
Requires: gnome-vfs-devel >= %{gnome_vfs_version} |
|
84 |
||
5518 | 85 |
Obsoletes: libmrproject-devel <= %{mrproject_version} |
86 |
Provides: libmrproject-devel = %{mrproject_version} |
|
1952 | 87 |
|
88 |
||
89 |
%description devel |
|
90 |
Planner is a tool for planning, scheduling and tracking projects. Planner is |
|
91 |
an open source project targetting the GNOME Desktop. These files allow |
|
92 |
developers to develop using Planner's features. |
|
93 |
||
94 |
%prep |
|
95 |
%setup -q |
|
5518 | 96 |
%patch1 -p1 |
5674
c6d814b46e4c
* planner.spec: Add patch to remove compiler options that forte doesn't support.
dc144907
parents:
5565
diff
changeset
|
97 |
%ifos solaris |
c6d814b46e4c
* planner.spec: Add patch to remove compiler options that forte doesn't support.
dc144907
parents:
5565
diff
changeset
|
98 |
%patch2 -p1 |
c6d814b46e4c
* planner.spec: Add patch to remove compiler options that forte doesn't support.
dc144907
parents:
5565
diff
changeset
|
99 |
%endif |
1952 | 100 |
|
4455 | 101 |
|
1952 | 102 |
%build |
3628 | 103 |
%ifos linux |
104 |
if [ -x /usr/bin/getconf ]; then |
|
105 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
106 |
fi |
|
107 |
%else |
|
3846 | 108 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3628 | 109 |
%endif |
110 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
111 |
CPUS=1 |
|
112 |
fi |
|
113 |
||
114 |
libtoolize --force |
|
5518 | 115 |
aclocal $ACLOCAL_FLAGS -I . |
3628 | 116 |
gtkdocize |
117 |
autoheader |
|
118 |
automake -a -c -f |
|
119 |
autoconf |
|
1952 | 120 |
CFLAGS="$RPM_OPT_FLAGS" \ |
3751 | 121 |
./configure --prefix=%{_prefix} \ |
4536 | 122 |
--bindir=%{_bindir} \ |
123 |
--libdir=%{_libdir} \ |
|
124 |
--includedir=%{_includedir} \ |
|
3751 | 125 |
--enable-gtk-doc \ |
5995 | 126 |
--disable-update-mimedb \ |
1952 | 127 |
--sysconfdir=%{_sysconfdir} |
3274 | 128 |
make |
1952 | 129 |
|
130 |
%install |
|
131 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
3628 | 132 |
#clean up unpackaged files |
133 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
|
134 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/file-modules/*.la |
|
135 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.la |
|
136 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/storage-modules/*.la |
|
137 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/views/*.la |
|
5518 | 138 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
139 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/mime |
|
1952 | 140 |
|
6193 | 141 |
rm -f $RPM_BUILD_ROOT%{_prefix}/lib/python*/site-packages/*/planner.la |
6316 | 142 |
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/python%{python_version}/vendor-packages |
143 |
mv $RPM_BUILD_ROOT%{_prefix}/lib/python*/site-packages/* \ |
|
144 |
$RPM_BUILD_ROOT%{_prefix}/lib/python%{python_version}/vendor-packages/ |
|
145 |
rmdir $RPM_BUILD_ROOT%{_prefix}/lib/python*/site-packages |
|
6193 | 146 |
|
4966
5be0d828467e
#6222302 / #6222336 : Remove items from main help TOC
mattk
parents:
4882
diff
changeset
|
147 |
# Remove from yelp |
5be0d828467e
#6222302 / #6222336 : Remove items from main help TOC
mattk
parents:
4882
diff
changeset
|
148 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/planner |
5be0d828467e
#6222302 / #6222336 : Remove items from main help TOC
mattk
parents:
4882
diff
changeset
|
149 |
|
1952 | 150 |
%clean |
151 |
rm -rf $RPM_BUILD_ROOT |
|
152 |
||
153 |
%files |
|
154 |
%defattr(-,root,root) |
|
155 |
%{_bindir}/planner |
|
156 |
%{_datadir}/application-registry/* |
|
157 |
%{_datadir}/applications/* |
|
158 |
%{_datadir}/gnome/help/planner/* |
|
159 |
%{_datadir}/locale/* |
|
160 |
%{_datadir}/mime-info/* |
|
5518 | 161 |
# Files removed from yelp. |
162 |
# %{_datadir}/omf/planner/* |
|
1952 | 163 |
%{_datadir}/pixmaps/* |
164 |
%{_datadir}/planner/* |
|
165 |
%{_libdir}/planner/*/*.so |
|
166 |
%{_libdir}/libplanner*.so |
|
5518 | 167 |
%{_libdir}/planner/*.so |
168 |
%{_datadir}/doc/planner/* |
|
169 |
%{_datadir}/icons |
|
170 |
%{_sysconfdir}/gconf/schemas/planner.schemas |
|
1952 | 171 |
|
172 |
%files devel |
|
173 |
%{_datadir}/gtk-doc/html/* |
|
174 |
%{_includedir}/planner*/libplanner/*.h |
|
175 |
%{_libdir}/pkgconfig/libplanner*.pc |
|
5518 | 176 |
%{_libdir}/libplanner*.so.* |
6193 | 177 |
%{_libdir}/python%{python_version} |
1952 | 178 |
|
179 |
%changelog |
|
6326 | 180 |
* Fri Dec 02 2005 - [email protected] |
181 |
- Updated planner-01-menu-entry.diff to use the absolute path of the |
|
182 |
executable in the .desktop file as usr/sfw/bin should not be |
|
183 |
included in $PATH. |
|
184 |
Fixes bug #6345489. |
|
185 |
||
6299 | 186 |
* Tue Nov 29 2005 - laca.com |
187 |
- remove javahelp stuff |
|
188 |
||
6200 | 189 |
* Thu Oct 27 2005 - [email protected] |
190 |
- move the python stuff from site-packages to vendor-packages |
|
191 |
||
5674
c6d814b46e4c
* planner.spec: Add patch to remove compiler options that forte doesn't support.
dc144907
parents:
5565
diff
changeset
|
192 |
* Thu Sep 01 2005 - [email protected] |
c6d814b46e4c
* planner.spec: Add patch to remove compiler options that forte doesn't support.
dc144907
parents:
5565
diff
changeset
|
193 |
- Add patch to remove compiler options that forte doesn't support. |
c6d814b46e4c
* planner.spec: Add patch to remove compiler options that forte doesn't support.
dc144907
parents:
5565
diff
changeset
|
194 |
|
5518 | 195 |
* Fri Jul 01 2005 - [email protected] |
196 |
- Add pkgconfig patch |
|
197 |
||
198 |
* Wed Jun 29 2005 - [email protected] |
|
199 |
- Remove '%{_datadir}/mime directory. |
|
200 |
||
201 |
* Sat Jun 25 2005 - [email protected] |
|
202 |
- Remove omf/planner dir from %files as the dir was removed during %install. |
|
203 |
||
204 |
* Wed Jun 22 2005 - [email protected] |
|
205 |
- Update l10n |
|
206 |
||
207 |
* Wed Jun 08 2005 - [email protected] |
|
208 |
- Bump to 0.13 |
|
209 |
||
210 |
* Tue May 25 2005 - [email protected] |
|
211 |
- Fix build. |
|
212 |
||
5072 | 213 |
* Fri Feb 11 2005 - [email protected] |
214 |
- Updated planner.spec to obsolete/provide the proper version of mrproject |
|
215 |
and libmrproject[-devel]. Fixes 6228278. |
|
216 |
||
4966
5be0d828467e
#6222302 / #6222336 : Remove items from main help TOC
mattk
parents:
4882
diff
changeset
|
217 |
* Fri Jan 28 2005 - [email protected] |
5be0d828467e
#6222302 / #6222336 : Remove items from main help TOC
mattk
parents:
4882
diff
changeset
|
218 |
- #6222336 : Remove from yelp |
5be0d828467e
#6222302 / #6222336 : Remove items from main help TOC
mattk
parents:
4882
diff
changeset
|
219 |
|
4882 | 220 |
* Thu Jan 20 2005 - [email protected] |
221 |
- Added patch planner-06-save_as_crash.diff to fix bug #6219432 |
|
222 |
||
4536 | 223 |
* Fri Nov 12 2004 - [email protected] |
224 |
- Added --bindir and --libdir to configure opts so they can be redirected |
|
225 |
on Solaris |
|
226 |
||
4185
590dfb2c6dff
Updating spec-files to include All Linguas patches
cm152228
parents:
4149
diff
changeset
|
227 |
* Thu Oct 07 2004 - [email protected] |
590dfb2c6dff
Updating spec-files to include All Linguas patches
cm152228
parents:
4149
diff
changeset
|
228 |
- Added planner-05-g11n-alllinguas.diff to add zh_TW locale |
590dfb2c6dff
Updating spec-files to include All Linguas patches
cm152228
parents:
4149
diff
changeset
|
229 |
|
4149 | 230 |
* Tue Oct 05 2004 - [email protected] |
231 |
- Added planner-04-g11n-i18n-ui.diff to localize gnome-file-types-properties. |
|
232 |
Fixed 6173638 |
|
233 |
||
4094 | 234 |
* Wed Sep 29 2004 - [email protected] |
235 |
- Added patch planner-03-fix-putenv-crash.diff. |
|
236 |
Fixes bug #5103739. |
|
237 |
||
3751 | 238 |
* Thu Aug 24 2004 - [email protected] |
239 |
- added gtk-docs. |
|
240 |
||
3628 | 241 |
* Wed Jul 14 2004 - [email protected] |
242 |
- fixed packaging for rpm4 and commented out |
|
243 |
"-j $CPUS" which is breaking the build. |
|
244 |
||
245 |
* Thu Jul 08 2004 - [email protected] |
|
246 |
- Updated l10n content to planner-l10n-po-1.2.tar.bz2 |
|
247 |
||
248 |
* Thu Jul 08 2004 - [email protected] |
|
249 |
- undid -j $CPUS for this module |
|
250 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3274
diff
changeset
|
251 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3274
diff
changeset
|
252 |
- Updated l10n content to planner-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3274
diff
changeset
|
253 |
|
3274 | 254 |
* Thu Jul 08 2004 - [email protected] |
255 |
- undid -j $CPUS for this module |
|
256 |
||
3263 | 257 |
* Wed Jul 07 2004 - [email protected] |
258 |
- added "-j $CPUS" to make to speed up builds |
|
259 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
260 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
261 |
- Updated l10n content to planner-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
262 |
|
2485 | 263 |
* Sun Apr 18 2004 - [email protected] |
264 |
- enable javahelp conversion on Solaris |
|
265 |
||
2362
ef2590f64b05
Javahelp conversion : surrounded by %ifos calls, until solaris specifics are resolved
mattk
parents:
2355
diff
changeset
|
266 |
* Thu Apr 01 2004 - [email protected] |
ef2590f64b05
Javahelp conversion : surrounded by %ifos calls, until solaris specifics are resolved
mattk
parents:
2355
diff
changeset
|
267 |
- Javahelp conversion |
ef2590f64b05
Javahelp conversion : surrounded by %ifos calls, until solaris specifics are resolved
mattk
parents:
2355
diff
changeset
|
268 |
|
2355 | 269 |
* Wed Mar 31 2004 - [email protected] |
270 |
- replace tar jxf with the more solaris friendly |
|
271 |
bzcat piped through tar |
|
272 |
||
2350 | 273 |
* Mon Mar 29 2004 - [email protected] |
274 |
- Adding planner-l10n-po-1.0.tar.bz2 l10n content |
|
275 |
||
2191 | 276 |
* Thu Mar 11 2004 - [email protected] |
277 |
- added planner-02-g11n-potfiles.diff |
|
278 |
||
1952 | 279 |
* Tue Feb 24 2004 - [email protected] |
280 |
- Initial package. Based on mrproject 0.9.1. |
|
281 |
- Ported menu entry change, based on the mrproject patch. |