source: projects/specs/trunk/r/rabbitvcs/rabbitvcs-vl.spec @ 7113

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