author | chrisk |
Thu, 13 Aug 2009 09:29:22 +0000 | |
changeset 16260 | f9ea3fc8b337 |
parent 16252 | 915bd2f94db1 |
child 16263 | 57f843eb25f7 |
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 |
# |
|
15142 | 10 |
# Owner: wangke |
14601 | 11 |
# |
12 |
||
13 |
%include Solaris.inc |
|
14 |
||
15288 | 15 |
%define pythonver 2.4 |
16 |
||
14601 | 17 |
Name: SUNWhamster |
18 |
License: GPL v3 |
|
19 |
Summary: Time tracking for masses |
|
16252 | 20 |
Version: 2.27.90 |
16040 | 21 |
Source: http://ftp.gnome.org/pub/GNOME/sources/hamster-applet/2.27/hamster-applet-%{version}.tar.gz |
15335 | 22 |
#date:2008-11-27 owner:wangke bugster:6776761 type:branding |
14663 | 23 |
Patch1: hamster-01-hotkey.diff |
14601 | 24 |
URL: http://live.gnome.org/ProjectHamster |
25 |
SUNW_BaseDir: %{_basedir} |
|
26 |
SUNW_Copyright: %{name}.copyright |
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
28 |
||
29 |
%include default-depend.inc |
|
15650 | 30 |
BuildRequires: SUNWgtk2-devel |
14601 | 31 |
BuildRequires: SUNWsqlite3 |
32 |
BuildRequires: SUNWpysqlite |
|
14642
8d747ae65437
* SUNWhamster.spec:Add Requires and Buildrequires.
jyu_mit
parents:
14634
diff
changeset
|
33 |
BuildRequires: SUNWPython-devel |
8d747ae65437
* SUNWhamster.spec:Add Requires and Buildrequires.
jyu_mit
parents:
14634
diff
changeset
|
34 |
BuildRequires: SUNWgnome-python-desktop |
15650 | 35 |
Requires: SUNWgtk2 |
14601 | 36 |
Requires: SUNWsqlite3 |
37 |
Requires: SUNWpysqlite |
|
14642
8d747ae65437
* SUNWhamster.spec:Add Requires and Buildrequires.
jyu_mit
parents:
14634
diff
changeset
|
38 |
Requires: SUNWPython |
8d747ae65437
* SUNWhamster.spec:Add Requires and Buildrequires.
jyu_mit
parents:
14634
diff
changeset
|
39 |
Requires: SUNWgnome-python-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 |
|
60 |
%build |
|
61 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
62 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
63 |
CPUS=1 |
|
64 |
fi |
|
65 |
export CFLAGS="%optflags" |
|
66 |
||
67 |
./configure --prefix=%{_prefix} \ |
|
14711 | 68 |
--sysconfdir=%{_sysconfdir} \ |
14601 | 69 |
--bindir=%{_bindir} \ |
70 |
--libdir=%{_libdir} \ |
|
71 |
--mandir=%{_mandir} |
|
72 |
make -j$CPUS |
|
73 |
||
74 |
%install |
|
75 |
rm -rf $RPM_BUILD_ROOT |
|
76 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
77 |
||
15040
9a43c14e263e
SUNWhamster.spec: Move python interfaces to vendor-packages.
jyu_mit
parents:
15025
diff
changeset
|
78 |
# move to verndor-packages |
15288 | 79 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages |
80 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \ |
|
81 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/ |
|
82 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages |
|
83 |
||
84 |
rm $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/hamster/keybinder/*.la |
|
15040
9a43c14e263e
SUNWhamster.spec: Move python interfaces to vendor-packages.
jyu_mit
parents:
15025
diff
changeset
|
85 |
|
14634
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
86 |
%if %build_l10n |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
87 |
%else |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
88 |
# REMOVE l10n FILES |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
89 |
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
|
90 |
%endif |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
91 |
|
14601 | 92 |
%clean |
93 |
rm -rf $RPM_BUILD_ROOT |
|
94 |
||
15556 | 95 |
%post |
96 |
%restart_fmri gconf-cache |
|
14711 | 97 |
|
14601 | 98 |
%files |
99 |
%defattr (-, root, bin) |
|
100 |
%dir %attr (0755, root, bin) %{_libdir} |
|
101 |
%{_libdir}/* |
|
102 |
%dir %attr (0755, root, sys) %{_datadir} |
|
103 |
%doc AUTHORS |
|
104 |
%doc(bzip2) COPYING NEWS |
|
105 |
%doc(bzip2) ChangeLog README |
|
106 |
%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
|
107 |
%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
|
108 |
%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
|
109 |
%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
|
110 |
%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
|
111 |
%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
|
112 |
%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
|
113 |
%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
|
114 |
%attr (-, root, other) %{_datadir}/icons/*/*/apps |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
115 |
%{_datadir}/hamster-applet |
14601 | 116 |
|
14634
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
117 |
%if %build_l10n |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
118 |
%files l10n |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
119 |
%defattr (-, root, bin) |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
120 |
%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
|
121 |
%attr (-, root, other) %{_datadir}/locale |
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
122 |
%endif |
14711 | 123 |
|
124 |
%files root |
|
125 |
%defattr (-, root, sys) |
|
126 |
%dir %attr (0755, root, sys) %{_sysconfdir} |
|
127 |
%{_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
|
128 |
|
14601 | 129 |
%changelog |
16252 | 130 |
* Wed Aug 12 2009 - [email protected] |
131 |
- Bump to 2.27.90. |
|
16183 | 132 |
* Thu Jul 30 2009 - [email protected] |
133 |
- Bump to 2.27.5. |
|
16040 | 134 |
* Thu Jul 16 2009 - [email protected] |
135 |
- Bump to 2.27.4 |
|
136 |
- Updated patch hamster-01-hotkey.diff |
|
15791 | 137 |
* Thu May 21 2009 |
138 |
- Bump to 2.26.2 |
|
15556 | 139 |
* Fri Apr 3 2009 - [email protected] |
140 |
- use desktop-cache instead of postrun |
|
15406 | 141 |
* Tue Mar 17 2009 - [email protected] |
142 |
- Bump to 2.26.0 |
|
15307 | 143 |
* Thu Mar 05 2009 - [email protected] |
144 |
- Bump to 2.25.92 |
|
15288 | 145 |
* Tue Mar 03 2009 - [email protected] |
146 |
- Remove .la files. |
|
15117 | 147 |
* Tue Feb 17 2009 - [email protected] |
148 |
- Bump to 2.25.91 |
|
15040
9a43c14e263e
SUNWhamster.spec: Move python interfaces to vendor-packages.
jyu_mit
parents:
15025
diff
changeset
|
149 |
* Mon Feb 09 2009 - [email protected] |
15043 | 150 |
- Remove the comments. |
151 |
* Mon Feb 09 2009 - [email protected] |
|
15040
9a43c14e263e
SUNWhamster.spec: Move python interfaces to vendor-packages.
jyu_mit
parents:
15025
diff
changeset
|
152 |
- Correct site-packages to vendor-packages to fix #6802053. |
15025 | 153 |
* Thu Feb 05 2009 - [email protected] |
154 |
- Bump to 2.25.90. |
|
155 |
- Remove patches/hamster-02-g11n-strftime.diff. |
|
14960 | 156 |
* Jerry Jan 23 2008 - [email protected] |
157 |
- Bump to 2.25.3. |
|
14803 | 158 |
* Mon Dec 22 2008 - [email protected] |
159 |
- Add hamster-02-g11n-strftime.diff for none UTF-8. |
|
14711 | 160 |
* Thu Dec 4 2008 - [email protected] |
161 |
- Install the schemas file to right palce using sysconfdir |
|
162 |
- Use post/preun scripts to install schemas into the merged gconf files |
|
14681 | 163 |
* Mon Dec 1 2008 - [email protected] |
164 |
- Change Patch 1 to branding type. |
|
14663 | 165 |
* Thu Nov 27 2008 - [email protected] |
166 |
- Add Patch 1 to fix bugster #6776761. |
|
14648 | 167 |
* Tue Nov 25 2008 - [email protected] |
168 |
- Bump to 2.24.2. |
|
14642
8d747ae65437
* SUNWhamster.spec:Add Requires and Buildrequires.
jyu_mit
parents:
14634
diff
changeset
|
169 |
* Mon Nov 24 2008 - [email protected] |
8d747ae65437
* SUNWhamster.spec:Add Requires and Buildrequires.
jyu_mit
parents:
14634
diff
changeset
|
170 |
- Add Requires and Buildrequires. |
14634
02b195bb2345
* SUNWhamster.spec:Add %build_l10n section and correct attributes for some files.
jyu_mit
parents:
14601
diff
changeset
|
171 |
* 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
|
172 |
- Add %build_l10n section and correct attributes for some files. |
14601 | 173 |
* Thu Nov 13 2008 - [email protected] |
174 |
- Move from sfe to spec-files. |
|
175 |
* Tue Nov 11 2008 - [email protected] |
|
176 |
- Add BuildRequires. |
|
177 |
* Wed Oct 22 2008 - [email protected] |
|
178 |
- Bump to 2.24.1 |
|
179 |
* Tue Oct 07 2008 - [email protected] |
|
180 |
- Initial spec |
|
15650 | 181 |