author | ginnchen |
Mon, 12 Apr 2010 08:07:21 +0000 | |
branch | gnome-2-28 |
changeset 18675 | d625b72c91d8 |
parent 18517 | 423f4315e38d |
permissions | -rw-r--r-- |
14601 | 1 |
# |
2 |
# spec file for package SUNWhamster |
|
3 |
# |
|
4 |
# includes module(s): hamster |
|
5 |
# |
|
15556 | 6 |
# Copyright 2009 Sun Microsystems, Inc. |
14601 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
16434 | 10 |
%define owner wangke |
14601 | 11 |
# |
12 |
||
16430 | 13 |
%define OSR gnome.org:0 |
16749 | 14 |
%define python_version 2.6 |
16430 | 15 |
|
14601 | 16 |
%include Solaris.inc |
17 |
||
18 |
Name: SUNWhamster |
|
19 |
License: GPL v3 |
|
20 |
Summary: Time tracking for masses |
|
18517 | 21 |
Version: 2.28.2 |
16650 | 22 |
Source: http://ftp.gnome.org/pub/GNOME/sources/hamster-applet/2.28/hamster-applet-%{version}.tar.gz |
15335 | 23 |
#date:2008-11-27 owner:wangke bugster:6776761 type:branding |
14663 | 24 |
Patch1: hamster-01-hotkey.diff |
14601 | 25 |
URL: http://live.gnome.org/ProjectHamster |
26 |
SUNW_BaseDir: %{_basedir} |
|
27 |
SUNW_Copyright: %{name}.copyright |
|
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
29 |
||
30 |
%include default-depend.inc |
|
15650 | 31 |
BuildRequires: SUNWgtk2-devel |
14601 | 32 |
BuildRequires: SUNWsqlite3 |
18376 | 33 |
BuildRequires: SUNWPython26-devel |
34 |
BuildRequires: SUNWgnome-python26-desktop |
|
15650 | 35 |
Requires: SUNWgtk2 |
18517 | 36 |
Requires: SUNWsqlite3 |
18441 | 37 |
Requires: SUNWdbus-python26 |
18376 | 38 |
Requires: SUNWPython26 |
39 |
Requires: SUNWgnome-python26-desktop |
|
15556 | 40 |
Requires: %{name}-root |
41 |
Requires: SUNWdesktop-cache |
|
14601 | 42 |
|
14634
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
43 |
%if %build_l10n |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
44 |
%package l10n |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
45 |
Summary: %{summary} - l10n files |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
46 |
SUNW_BaseDir: %{_basedir} |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
47 |
%include default-depend.inc |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
48 |
Requires: %{name} |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
49 |
%endif |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
50 |
|
14711 | 51 |
%package root |
52 |
Summary: %{summary} - / filesystem |
|
53 |
SUNW_BaseDir: / |
|
54 |
%include default-depend.inc |
|
55 |
||
14601 | 56 |
%prep |
57 |
%setup -q -n hamster-applet-%{version} |
|
14663 | 58 |
%patch1 -p1 |
14601 | 59 |
|
16749 | 60 |
cat hamster/hamster-applet.py | sed -e "s/env python/python%{python_version}/" > hamster-applet.py.tmp |
61 |
mv hamster-applet.py.tmp hamster/hamster-applet.py |
|
62 |
chmod a+x hamster/hamster-applet.py |
|
63 |
||
14601 | 64 |
%build |
65 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
66 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
67 |
CPUS=1 |
|
68 |
fi |
|
16743 | 69 |
|
14601 | 70 |
export CFLAGS="%optflags" |
16749 | 71 |
export PYTHON="/usr/bin/python"%{python_version} |
14601 | 72 |
|
73 |
./configure --prefix=%{_prefix} \ |
|
14711 | 74 |
--sysconfdir=%{_sysconfdir} \ |
14601 | 75 |
--bindir=%{_bindir} \ |
76 |
--libdir=%{_libdir} \ |
|
77 |
--mandir=%{_mandir} |
|
16728 | 78 |
|
79 |
cat hamster/defs.py | sed -e "s/site-packages/vendor-packages/" > defs.py.tmp |
|
80 |
mv defs.py.tmp hamster/defs.py |
|
81 |
||
16743 | 82 |
make -j$CPUS \ |
16749 | 83 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ |
84 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages |
|
14601 | 85 |
|
86 |
%install |
|
87 |
rm -rf $RPM_BUILD_ROOT |
|
16743 | 88 |
make DESTDIR=$RPM_BUILD_ROOT install \ |
16749 | 89 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ |
90 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages |
|
14601 | 91 |
|
16743 | 92 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
93 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';' |
|
15040
9a43c14e263e
SUNWhamster.spec: Move python interfaces to vendor-packages.
jyu_mit
parents:
15025
diff
changeset
|
94 |
|
14634
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
95 |
%if %build_l10n |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
96 |
%else |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
97 |
# REMOVE l10n FILES |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
98 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
99 |
%endif |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
100 |
|
14601 | 101 |
%clean |
102 |
rm -rf $RPM_BUILD_ROOT |
|
103 |
||
15556 | 104 |
%post |
105 |
%restart_fmri gconf-cache |
|
14711 | 106 |
|
14601 | 107 |
%files |
108 |
%defattr (-, root, bin) |
|
109 |
%dir %attr (0755, root, bin) %{_libdir} |
|
110 |
%{_libdir}/* |
|
111 |
%dir %attr (0755, root, sys) %{_datadir} |
|
112 |
%doc AUTHORS |
|
113 |
%doc(bzip2) COPYING NEWS |
|
114 |
%doc(bzip2) ChangeLog README |
|
115 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
14634
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
116 |
%dir %attr (-, root, other) %{_datadir}/icons |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
117 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
118 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
119 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
120 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
121 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
122 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
123 |
%attr (-, root, other) %{_datadir}/icons/*/*/apps |
16263
57f843eb25f7
SUNWhamster.spec: %files was correct before, control-center was wrong.
chrisk
parents:
16260
diff
changeset
|
124 |
%{_datadir}/gnome-control-center |
14634
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
125 |
%{_datadir}/hamster-applet |
14601 | 126 |
|
14634
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
127 |
%if %build_l10n |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
128 |
%files l10n |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
129 |
%defattr (-, root, bin) |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
130 |
%dir %attr (0755, root, sys) %{_datadir} |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
131 |
%attr (-, root, other) %{_datadir}/locale |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
132 |
%endif |
14711 | 133 |
|
134 |
%files root |
|
135 |
%defattr (-, root, sys) |
|
136 |
%dir %attr (0755, root, sys) %{_sysconfdir} |
|
137 |
%{_sysconfdir}/gconf/schemas/hamster-applet.schemas |
|
14634
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
138 |
|
14601 | 139 |
%changelog |
18517 | 140 |
* Thu Dec 17 2009 - [email protected] |
141 |
- Bump to 2.28.2 |
|
142 |
* Fri Nov 13 2009 - [email protected] |
|
143 |
- Change Requires to python2.6 related packages. |
|
16826 | 144 |
* Wed Oct 21 2009 - [email protected] |
145 |
- Bump to 2.28.1 |
|
16650 | 146 |
* Wed Sep 23 2009 - [email protected] |
147 |
- Bump to 2.28.0 |
|
16539 | 148 |
* Fri Sep 11 2009 - [email protected] |
149 |
- Bump to 2.27.92 |
|
16252 | 150 |
* Wed Aug 12 2009 - [email protected] |
151 |
- Bump to 2.27.90. |
|
16183 | 152 |
* Thu Jul 30 2009 - [email protected] |
153 |
- Bump to 2.27.5. |
|
16040 | 154 |
* Thu Jul 16 2009 - [email protected] |
155 |
- Bump to 2.27.4 |
|
156 |
- Updated patch hamster-01-hotkey.diff |
|
15791 | 157 |
* Thu May 21 2009 |
158 |
- Bump to 2.26.2 |
|
15556 | 159 |
* Fri Apr 3 2009 - [email protected] |
160 |
- use desktop-cache instead of postrun |
|
15406 | 161 |
* Tue Mar 17 2009 - [email protected] |
162 |
- Bump to 2.26.0 |
|
15307 | 163 |
* Thu Mar 05 2009 - [email protected] |
164 |
- Bump to 2.25.92 |
|
15288 | 165 |
* Tue Mar 03 2009 - [email protected] |
166 |
- Remove .la files. |
|
15117 | 167 |
* Tue Feb 17 2009 - [email protected] |
168 |
- Bump to 2.25.91 |
|
15040
9a43c14e263e
SUNWhamster.spec: Move python interfaces to vendor-packages.
jyu_mit
parents:
15025
diff
changeset
|
169 |
* Mon Feb 09 2009 - [email protected] |
15043 | 170 |
- Remove the comments. |
171 |
* Mon Feb 09 2009 - [email protected] |
|
15040
9a43c14e263e
SUNWhamster.spec: Move python interfaces to vendor-packages.
jyu_mit
parents:
15025
diff
changeset
|
172 |
- Correct site-packages to vendor-packages to fix #6802053. |
15025 | 173 |
* Thu Feb 05 2009 - [email protected] |
174 |
- Bump to 2.25.90. |
|
175 |
- Remove patches/hamster-02-g11n-strftime.diff. |
|
14960 | 176 |
* Jerry Jan 23 2008 - [email protected] |
177 |
- Bump to 2.25.3. |
|
14803 | 178 |
* Mon Dec 22 2008 - [email protected] |
179 |
- Add hamster-02-g11n-strftime.diff for none UTF-8. |
|
14711 | 180 |
* Thu Dec 4 2008 - [email protected] |
181 |
- Install the schemas file to right palce using sysconfdir |
|
182 |
- Use post/preun scripts to install schemas into the merged gconf files |
|
14681 | 183 |
* Mon Dec 1 2008 - [email protected] |
184 |
- Change Patch 1 to branding type. |
|
14663 | 185 |
* Thu Nov 27 2008 - [email protected] |
186 |
- Add Patch 1 to fix bugster #6776761. |
|
14648 | 187 |
* Tue Nov 25 2008 - [email protected] |
188 |
- Bump to 2.24.2. |
|
14642
8d747ae65437
* SUNWhamster.spec:Add Requires and Buildrequires.
jyu_mit
parents:
14634
diff
changeset
|
189 |
* Mon Nov 24 2008 - [email protected] |
8d747ae65437
* SUNWhamster.spec:Add Requires and Buildrequires.
jyu_mit
parents:
14634
diff
changeset
|
190 |
- Add Requires and Buildrequires. |
14634
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
191 |
* Thu Nov 20 2008 - [email protected] |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
192 |
- Add %build_l10n section and correct attributes for some files. |
14601 | 193 |
* Thu Nov 13 2008 - [email protected] |
194 |
- Move from sfe to spec-files. |
|
195 |
* Tue Nov 11 2008 - [email protected] |
|
196 |
- Add BuildRequires. |
|
197 |
* Wed Oct 22 2008 - [email protected] |
|
198 |
- Bump to 2.24.1 |
|
199 |
* Tue Oct 07 2008 - [email protected] |
|
200 |
- Initial spec |
|
15650 | 201 |