Browse Source

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           hotot
Version:        0.9.7
Release:        1.hg1018%{?_dist_release}
Summary:        Hotot lightweight & open source microblogging client using Python language and designed for Linux.
Summary(ja):    Hotot は Python 言語を使用した、軽量&オープンソースな Linux 向けのマイクロブログクライアントです。

Group:          Applications/Internet
License:        LGPLv3+
URL:            http://code.google.com/p/hotot
Source0:        hotot-0.9.7.hg1018.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-root

BuildArch: noarch

BuildRequires: gettext
BuildRequires: intltool
#BuildRequires: pygtk2-devel WebKit-gtk-devel libxslt-devel
BuildRequires: python-distutils-extra

Requires: python-keybinder
Requires: notify-python
Requires: pygobject
Requires: pygtk2
Requires: pywebkitgtk >= 1.1.8

%description
Hotot, is a lightweight & open source Microblogging Client, 
coding using Python language and designed for Linux.
It depends less but supports more. 
It's been developed actively and still in Alpha stage.

%description -l ja
Hotot は Python 言語を使用した、軽量&オープンソースな Linux 向けの
マイクロブログクライアントです。
依存はより少なく、より多くのサポートを。
活発に開発していますが、まだアルファの段階です。

%prep
%setup -q -n %{name}

%build
python setup.py build_i18n -m
python setup.py build


%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --prefix=$RPM_BUILD_ROOT/usr

desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%{python_sitelib}/%{name}
%{_bindir}/%{name}
%{python_sitelib}/%{name}-*.egg-info
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

%changelog
* Thu Sep 22 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.7-1.hg1018
- new upstream release
- changed License: LGPLv2+ to LGPLv3+
- changed Requires: keybinder to python-keybinder
- run desktop-file-validate

* Sat Jul 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.6-1.hg889
- initial build for Vine Linux

* Thu Nov 6 2010 Radek Ryckowski <radek@ebi.ac.uk> - 0.9.5 hg 531:69b7cd2aef25
- Initial RPM release


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4805 ec354946-7b23-47d6-9f5a-488ba84defc7
kudoh 12 years ago
parent
commit
39554844c3
1 changed files with 16 additions and 7 deletions
  1. 16 7
      h/hotot/hotot-vl.spec

+ 16 - 7
h/hotot/hotot-vl.spec

@@ -1,15 +1,15 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:           hotot
-Version:        0.9.6
-Release:        1.hg889%{?_dist_release}
+Version:        0.9.7
+Release:        1.hg1018%{?_dist_release}
 Summary:        Hotot lightweight & open source microblogging client using Python language and designed for Linux.
 Summary(ja):    Hotot は Python 言語を使用した、軽量&オープンソースな Linux 向けのマイクロブログクライアントです。
 
 Group:          Applications/Internet
-License:        LGPLv2+
+License:        LGPLv3+
 URL:            http://code.google.com/p/hotot
-Source0:        hotot-0.9.6.hg889.tar.bz2
+Source0:        hotot-0.9.7.hg1018.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
 
 BuildArch: noarch
@@ -19,7 +19,7 @@ BuildRequires: intltool
 #BuildRequires: pygtk2-devel WebKit-gtk-devel libxslt-devel
 BuildRequires: python-distutils-extra
 
-Requires: keybinder
+Requires: python-keybinder
 Requires: notify-python
 Requires: pygobject
 Requires: pygtk2
@@ -49,10 +49,14 @@ python setup.py build
 rm -rf $RPM_BUILD_ROOT
 python setup.py install --prefix=$RPM_BUILD_ROOT/usr
 
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+
+%find_lang %{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(-,root,root,-)
 %{python_sitelib}/%{name}
 %{_bindir}/%{name}
@@ -60,9 +64,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/%{name}
 %{_datadir}/pixmaps/%{name}.png
 %{_datadir}/applications/%{name}.desktop
-%{_datadir}/locale/*/*/*.mo
 
 %changelog
+* Thu Sep 22 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.7-1.hg1018
+- new upstream release
+- changed License: LGPLv2+ to LGPLv3+
+- changed Requires: keybinder to python-keybinder
+- run desktop-file-validate
+
 * Sat Jul 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.6-1.hg889
 - initial build for Vine Linux