1 | %define pyver %(python -c 'import sys;print(sys.version[0:3])') |
---|
2 | |
---|
3 | %global title RabbitVCS |
---|
4 | |
---|
5 | Summary: Integrated Subversion support for Nautilus |
---|
6 | Summary(ja): Subversion サポートを Nautilus に追加する拡張 |
---|
7 | Name: rabbitvcs |
---|
8 | Version: 0.15.2 |
---|
9 | Release: 1%{?_dist_release} |
---|
10 | Source0: http://rabbitvcs.googlecode.com/files/%{name}-%{version}.tar.bz2 |
---|
11 | Source1: rabbitvcs-0.15.2-ja.po |
---|
12 | License: GPL |
---|
13 | Group: Development/Tools |
---|
14 | URL: http://rabbitvcs.org/ |
---|
15 | |
---|
16 | BuildRequires: gettext |
---|
17 | BuildRequires: gtk2-devel |
---|
18 | BuildRequires: pygtk2-devel |
---|
19 | BuildRequires: python-devel |
---|
20 | Requires(post): gtk2 |
---|
21 | Requires(postun): gtk2 |
---|
22 | #BuildArch: noarch |
---|
23 | Obsoletes: rabbitvcs <= 0.14.2.1 |
---|
24 | |
---|
25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
26 | |
---|
27 | Packager: kazutaka |
---|
28 | |
---|
29 | %description |
---|
30 | RabbitVCS is a set of graphical tools written to provide simple |
---|
31 | and straightforward access to the version control systems you use. |
---|
32 | |
---|
33 | This package containg core part of RabbitVCS and not connected |
---|
34 | to to any file manager or text editor. |
---|
35 | |
---|
36 | Front-ends or clients is privided separetely as a Nautilus |
---|
37 | extention, Thunar extention and Gedit plugin, and a command line |
---|
38 | utility. |
---|
39 | |
---|
40 | %description -l ja |
---|
41 | RabbitVCS はバージョン管理システムにシンプルかつ直感的にアクセス |
---|
42 | できるよう設計された GUI のツールです。 |
---|
43 | |
---|
44 | このパッケージには RabbitVCS のコアとなる部分だけが含まれており、 |
---|
45 | 特定のファイルマネージャやテキストエディタに依存しないようになっ |
---|
46 | ています。 |
---|
47 | |
---|
48 | フロントエンドやクライアントは Nautilus 及び Thunar 用の拡張と、 |
---|
49 | Gedit 用のプラグイン、そしてコマンドラインのユーティリティが、 |
---|
50 | 別パッケージとして提供されています。 |
---|
51 | |
---|
52 | |
---|
53 | %package core |
---|
54 | Summary: Core package of RabbitVCS |
---|
55 | Summary: RabbitVCS のコアパッケージ |
---|
56 | Group: Development/Tools |
---|
57 | |
---|
58 | Requires: dbus-python |
---|
59 | Requires: meld |
---|
60 | Requires: pygobject |
---|
61 | Requires: pygtk2 |
---|
62 | Requires: pygtk2-libglade |
---|
63 | Requires: pysvn |
---|
64 | Requires: python-configobj |
---|
65 | Requires: python-dulwich |
---|
66 | Requires: subversion |
---|
67 | |
---|
68 | Obsoletes: rabbitvcs <= 0.14.2.1 |
---|
69 | BuildArch: noarch |
---|
70 | |
---|
71 | #Requires: nautilus, pygtk2, python-configobj |
---|
72 | #Requires: pygobject, pygtk2-libglade |
---|
73 | #Requires: subversion, pysvn, python-simplejson |
---|
74 | |
---|
75 | |
---|
76 | %description core |
---|
77 | Contains packages shared between the RabbitVCS extensions. |
---|
78 | |
---|
79 | %package nautilus |
---|
80 | Summary: Nautilus extension for RabbitVCS |
---|
81 | Summary(ja): RabbitVCS の Nautilus 拡張 |
---|
82 | Group: Development/Tools |
---|
83 | Requires: nautilus >= 2.22.0 |
---|
84 | Requires: nautilus-python >= 0.7.0 |
---|
85 | Requires: rabbitvcs-core = %{version}-%{release} |
---|
86 | Obsoletes: nautilussvn |
---|
87 | |
---|
88 | %description nautilus |
---|
89 | RabbitVCS is a set of graphical tools written to provide simple |
---|
90 | and straightforward access to the version control systems you use. |
---|
91 | |
---|
92 | With this package, You can acces to the version control systems |
---|
93 | by Nautilus file manager. |
---|
94 | |
---|
95 | %description nautilus -l ja |
---|
96 | RabbitVCS はバージョン管理システムにシンプルかつ直感的にアクセス |
---|
97 | できるよう設計された GUI のツールです。 |
---|
98 | |
---|
99 | このパッケージを利用することで、Nautilus ファイルマネージャに |
---|
100 | 統合された形でバージョン管理システムにアクセスできるようになり |
---|
101 | ます。 |
---|
102 | |
---|
103 | %package thunar |
---|
104 | Summary: Thunar extension for RabbitVCS |
---|
105 | Summary(ja): RabbitVCS の Thunar 拡張 |
---|
106 | Group: Development/Tools |
---|
107 | Requires: rabbitvcs-core = %{version}-%{release} |
---|
108 | Requires: Thunar >= 0.4.0 |
---|
109 | Requires: thunarx-python >= 0.2.0 |
---|
110 | |
---|
111 | %description thunar |
---|
112 | An extension for Thunar to allow better integration with the |
---|
113 | Subversion source control system. |
---|
114 | |
---|
115 | %package gedit |
---|
116 | Summary: Gedit extension for RabbitVCS |
---|
117 | Summary(ja): RabbitVCS の Gedit 拡張 |
---|
118 | Group: Development/Tools |
---|
119 | Requires: rabbitvcs-core = %{version}-%{release} |
---|
120 | Requires: gedit |
---|
121 | |
---|
122 | %description gedit |
---|
123 | RabbitVCS is a set of graphical tools written to provide simple and |
---|
124 | straightforward access to the version control systems you use. This is the |
---|
125 | extension for gedit text editor |
---|
126 | |
---|
127 | %package cli |
---|
128 | Summary: CLI extension for RabbitVCS |
---|
129 | Summary(ja): RabbitVCS の CLI 拡張 |
---|
130 | Group: Development/Tools |
---|
131 | Requires: rabbitvcs-core = %{version}-%{release} |
---|
132 | BuildArch: noarch |
---|
133 | |
---|
134 | %description cli |
---|
135 | RabbitVCS is a set of graphical tools written to provide simple and |
---|
136 | straightforward access to the version control systems you use. This is the |
---|
137 | extension for command line interface. |
---|
138 | |
---|
139 | |
---|
140 | %prep |
---|
141 | %setup -q |
---|
142 | |
---|
143 | %build |
---|
144 | %{__python} setup.py build |
---|
145 | |
---|
146 | |
---|
147 | %install |
---|
148 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
149 | %{__python} setup.py install --skip-build --root ${RPM_BUILD_ROOT} |
---|
150 | |
---|
151 | |
---|
152 | # install nautilus client |
---|
153 | %if %{?_dist_release} == "vl6" |
---|
154 | %{__install} -d -m755 ${RPM_BUILD_ROOT}/%{_libdir}/nautilus/extensions-2.0/python/ |
---|
155 | %{__install} -m644 clients/nautilus/RabbitVCS.py ${RPM_BUILD_ROOT}/%{_libdir}/nautilus/extensions-2.0/python/ |
---|
156 | %else |
---|
157 | %{__install} -d -m755 ${RPM_BUILD_ROOT}/%{_datadir}/nautilus-python/extensions/ |
---|
158 | %{__install} -m644 clients/nautilus-3.0/RabbitVCS.py ${RPM_BUILD_ROOT}/%{_datadir}/nautilus-python/extensions/ |
---|
159 | %endif |
---|
160 | |
---|
161 | # Installing Thunar Extension |
---|
162 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/thunarx-2/python/ |
---|
163 | cp clients/thunar/%{title}.py $RPM_BUILD_ROOT%{_libdir}/thunarx-2/python/%{title}.py |
---|
164 | |
---|
165 | # Installing Gedit Extension |
---|
166 | %if %{?_dist_release} == "vl6" |
---|
167 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/ |
---|
168 | cp clients/gedit/%{name}-plugin.py $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}-plugin.py |
---|
169 | cp clients/gedit/%{name}-gedit2.gedit-plugin $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}-gedit2.gedit-plugin |
---|
170 | %else |
---|
171 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/gedit/plugins/ |
---|
172 | cp clients/gedit/%{name}-plugin.py $RPM_BUILD_ROOT%{_libdir}/gedit/plugins/%{name}-plugin.py |
---|
173 | cp clients/gedit/%{name}-gedit3.plugin $RPM_BUILD_ROOT%{_libdir}/gedit/plugins/%{name}-gedit3.plugin |
---|
174 | %endif |
---|
175 | |
---|
176 | # Installing CLI Extension |
---|
177 | mkdir -p $RPM_BUILD_ROOT%{_bindir} |
---|
178 | cp clients/cli/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name} |
---|
179 | |
---|
180 | # install updated japanese translation |
---|
181 | msgfmt %{SOURCE1} -o ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES/RabbitVCS.mo |
---|
182 | |
---|
183 | %clean |
---|
184 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
185 | |
---|
186 | |
---|
187 | %post |
---|
188 | touch --no-create %{_datadir}/icons/hicolor |
---|
189 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
190 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
191 | fi |
---|
192 | |
---|
193 | %postun |
---|
194 | touch --no-create %{_datadir}/icons/hicolor |
---|
195 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
196 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
197 | fi |
---|
198 | |
---|
199 | %files core |
---|
200 | %defattr(-, root, root, -) |
---|
201 | %doc %{_datadir}/doc/%{name}/ |
---|
202 | %{python_sitelib}/%{name}/ |
---|
203 | %{python_sitelib}/%{name}-%{version}-py?.?.egg-info |
---|
204 | %{_datadir}/icons/hicolor/16x16/actions/ |
---|
205 | %{_datadir}/icons/hicolor/scalable/actions/ |
---|
206 | %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg |
---|
207 | %{_datadir}/icons/hicolor/scalable/apps/%{name}-small.svg |
---|
208 | %{_datadir}/icons/hicolor/scalable/emblems/ |
---|
209 | %{_datadir}/locale/ |
---|
210 | %{_datadir}/%{name}/configspec.ini |
---|
211 | # only usefull for ubuntu (and debian??) |
---|
212 | #%exclude %{_datadir}/%{name}/do-rabbitvcs-restart-nautilus |
---|
213 | #%exclude %{_datadir}/%{name}/rabbitvcs-restart-required.update-notifier |
---|
214 | |
---|
215 | %files nautilus |
---|
216 | %defattr(-, root, root, -) |
---|
217 | %doc clients/nautilus/README |
---|
218 | %if %{?_dist_release} == "vl6" |
---|
219 | %{_libdir}/nautilus/extensions-2.0/python/RabbitVCS.py |
---|
220 | %else |
---|
221 | %{_datadir}/nautilus-python/extensions/RabbitVCS.py |
---|
222 | %endif |
---|
223 | |
---|
224 | %files thunar |
---|
225 | %defattr(-, root, root,-) |
---|
226 | %{_libdir}/thunarx-2/python/%{title}.py* |
---|
227 | |
---|
228 | %files gedit |
---|
229 | %defattr(-, root, root,-) |
---|
230 | %if %{?_dist_release} == "vl6" |
---|
231 | %{_libdir}/gedit-2/plugins/%{name}-plugin.py* |
---|
232 | %{_libdir}/gedit-2/plugins/%{name}-gedit2.gedit-plugin |
---|
233 | %else |
---|
234 | %{_libdir}/gedit/plugins/%{name}-plugin.py* |
---|
235 | %{_libdir}/gedit/plugins/%{name}-gedit3.plugin |
---|
236 | %endif |
---|
237 | |
---|
238 | %files cli |
---|
239 | %defattr(-, root, root,-) |
---|
240 | %{_bindir}/%{name} |
---|
241 | |
---|
242 | %changelog |
---|
243 | * Sun Oct 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.15.2-1 |
---|
244 | - new upstream release |
---|
245 | - deleted conditional branch and macro for Vine 5 |
---|
246 | - updated japanese translation (Source1) |
---|
247 | - set contitional branch for stable release and VineSeed for -gedit package |
---|
248 | |
---|
249 | * Tue Feb 21 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.15.0.5-2 |
---|
250 | - rebuilt with python-2.7 |
---|
251 | |
---|
252 | * Wed Feb 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.15.0.5-1 |
---|
253 | - new upstream release |
---|
254 | - reorganized rabbitvcs-core, rabbitvcs-nautilus, rabbitvcs-thunar, |
---|
255 | rabbitvcs-gedit, rabbitvcs-cli |
---|
256 | - set contitional branch for stable release and VineSeed |
---|
257 | - added Require packages for rabbitvcs-core |
---|
258 | - added meld, pygobject, python-dulwich |
---|
259 | |
---|
260 | * Sun May 29 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.14.2.1-1 |
---|
261 | - new upstream release |
---|
262 | - drop BuildArch: noarch to change installation path for RabbitVCS.py |
---|
263 | (need to locate under /usr/lib64 on x86_64) |
---|
264 | - add updated japanese translation (Source1) |
---|
265 | |
---|
266 | * Mon Jan 24 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.14.1.1-2 |
---|
267 | - fix installation path of RabbitVCS.py |
---|
268 | - drop unnecessary Requires: glade2 |
---|
269 | |
---|
270 | * Sun Jan 23 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.14.1.1-1 |
---|
271 | - new upstream release |
---|
272 | - add Requires: python-simplejson |
---|
273 | - add Patch1 to avoid error when gtk+ < 2.18 (only for Vine 5) |
---|
274 | |
---|
275 | * Fri Jul 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.13.3-1 |
---|
276 | - new upstream release |
---|
277 | - merge rabbitvcs-nautilus package again (upstream source change) |
---|
278 | - requires nautilus-python >= 0.7.0 for rabbitvcs-nautilus |
---|
279 | |
---|
280 | * Sun Feb 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.13-1 |
---|
281 | - new upstream release |
---|
282 | - now front-end for nautilus is provided separetely |
---|
283 | (as rabbitvcs-nautilus package) |
---|
284 | |
---|
285 | * Wed Oct 07 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-1 |
---|
286 | - new upstream release with new name |
---|
287 | - add Obsoletes: nautilussvn |
---|
288 | - drop source1 (japanese translation) |
---|
289 | - update description |
---|
290 | |
---|
291 | * Fri Jun 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-3.beta1.2 |
---|
292 | - update japanese translation |
---|
293 | |
---|
294 | * Sat May 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-2.beta1.2 |
---|
295 | - add japanese translation as Source1 |
---|
296 | - add BuildRequires: gettext |
---|
297 | |
---|
298 | * Sat May 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-1.beta1.2 |
---|
299 | - initial build for Vine Linux |
---|