| [1454] | 1 | %define pyver %(python -c 'import sys;print(sys.version[0:3])') |
|---|
| 2 | %define pysite %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(0)') |
|---|
| 3 | |
|---|
| 4 | Summary: Widget-like mini-applications for Linux-desktop |
|---|
| 5 | Summary(ja): Linux デスクトップ向けのウィジェット風ミニアプリケーション |
|---|
| 6 | Name: screenlets |
|---|
| 7 | Version: 0.1.2 |
|---|
| 8 | Release: 1%{?_dist_release} |
|---|
| 9 | Source0: %{name}-%{version}.tar.bz2 |
|---|
| 10 | Source1: screenlets-manager-ja.po |
|---|
| 11 | Source2: screenlets-ja.po |
|---|
| 12 | License: GPL |
|---|
| 13 | Group: Applications/Accessories |
|---|
| 14 | URL: http://www.screenlets.org/ |
|---|
| 15 | |
|---|
| 16 | Requires: pyxdg |
|---|
| 17 | Requires: dbus-python |
|---|
| 18 | Requires: gnome-python |
|---|
| 19 | Requires: gnome-python-desktop |
|---|
| 20 | Requires: gnome-python-rsvg |
|---|
| 21 | Requires: gnome-python-libwnck |
|---|
| 22 | Requires: gnome-python-gnomekeyring |
|---|
| 23 | Requires: librsvg2 |
|---|
| 24 | BuildRequires: python-devel |
|---|
| 25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 26 | BuildArch: noarch |
|---|
| 27 | |
|---|
| 28 | Packager: kazutaka |
|---|
| 29 | |
|---|
| 30 | %description |
|---|
| 31 | Screenlets (short form of "Screen-Applets") are small owner-drawn |
|---|
| 32 | applications that can be described as "the virtual representation |
|---|
| 33 | of things lying/standing around on your desk": Sticknotes, clocks, |
|---|
| 34 | rulers, ... the possibilities are endless. |
|---|
| 35 | |
|---|
| 36 | Screenlets work without composite window manager (like Compiz), |
|---|
| 37 | but it works better with them. |
|---|
| 38 | |
|---|
| 39 | %description -l ja |
|---|
| 40 | Screenlets ("Screen-Applets"の略) は、あなたの身の回りにある |
|---|
| 41 | 色々な道具(付箋や時計、定規等々)を仮想的に表現する、ウィジェット |
|---|
| 42 | 風のミニアプリケーションです。 |
|---|
| 43 | |
|---|
| 44 | Screenlets は (Compiz のような)コンポジットウィンドウマネージャ |
|---|
| 45 | が無くても問題なく動作しますが、透過表示等はコンポジット環境の |
|---|
| 46 | 方が綺麗に表示されます。 |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | %prep |
|---|
| 50 | %setup -q -n %{name} |
|---|
| 51 | # install updated japanese translation |
|---|
| 52 | %{__cp} %{SOURCE1} po |
|---|
| 53 | %{__cp} %{SOURCE2} po |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | %build |
|---|
| 57 | %{__python} setup.py build |
|---|
| 58 | |
|---|
| 59 | %install |
|---|
| 60 | %{__rm} -rf $RPM_BUILD_ROOT |
|---|
| 61 | %{__python} setup.py install --root %{buildroot} |
|---|
| 62 | %find_lang %{name} |
|---|
| 63 | %find_lang %{name}-manager |
|---|
| 64 | cat %{name}-manager.lang >> %{name}.lang |
|---|
| 65 | |
|---|
| 66 | # Remove useless egg-info file |
|---|
| 67 | %{__rm} -f %{buildroot}%{pysite}/*.egg-info |
|---|
| 68 | |
|---|
| 69 | %clean |
|---|
| 70 | %{__rm} -rf $RPM_BUILD_ROOT |
|---|
| 71 | |
|---|
| 72 | |
|---|
| 73 | %files -f %{name}.lang |
|---|
| 74 | %defattr(-,root,root) |
|---|
| 75 | %doc |
|---|
| 76 | %{_bindir}/%{name} |
|---|
| 77 | %{_bindir}/%{name}-daemon |
|---|
| 78 | %{_bindir}/%{name}-manager |
|---|
| 79 | %{_bindir}/%{name}-packager |
|---|
| 80 | %{_bindir}/screenletsd |
|---|
| 81 | %{_datadir}/%{name} |
|---|
| 82 | %{_datadir}/%{name}-manager |
|---|
| 83 | %{pysite}/%{name} |
|---|
| 84 | %{_datadir}/applications/%{name}-manager.desktop |
|---|
| 85 | %{_datadir}/icons/%{name}.svg |
|---|
| 86 | |
|---|
| 87 | %changelog |
|---|
| 88 | * Mon Jul 26 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.1.2-1 |
|---|
| 89 | - initial build for Vine Linux |
|---|