[1518] | 1 | %define pyver %(python -c 'import sys;print(sys.version[0:3])') |
---|
| 2 | %define pysite %{_libdir}/python%{pyver}/site-packages |
---|
| 3 | |
---|
[2070] | 4 | %define build_vine5 0 |
---|
| 5 | |
---|
| 6 | %if "%{?_dist_release}" == "vl5" |
---|
| 7 | %define build_vine5 1 |
---|
| 8 | %endif |
---|
| 9 | |
---|
[1518] | 10 | Summary: Dock application for GNOME |
---|
| 11 | Summary(ja): GNOME 向けのドックアプリケーション |
---|
| 12 | Name: docky |
---|
[2035] | 13 | Version: 2.0.7 |
---|
[2070] | 14 | Release: 2%{?_dist_release} |
---|
[1518] | 15 | Source0: http://launchpad.net/docky/2.0/2.0.5/+download/%{name}-%{version}.tar.gz |
---|
| 16 | Source1: docky-2.0.5-ja.po |
---|
| 17 | Patch1: docky-2.0.5-clock-date-format.patch |
---|
[2070] | 18 | # Add Patch2 to drop dependency for mono.getoptions (obsoleted from mono-2.8). |
---|
[2035] | 19 | # This patch is taken from https://bugs.launchpad.net/docky/+bug/502650 |
---|
| 20 | # and modified to fit with 2.0.7. |
---|
| 21 | Patch2: docky-2.0.7-drop-getoptions.patch |
---|
[1518] | 22 | License: GPLv3 |
---|
| 23 | Group: Applications/Accessories |
---|
| 24 | URL: http://www.go-docky.com/ |
---|
| 25 | |
---|
[2070] | 26 | Requires: gconf-sharp2 |
---|
| 27 | Requires: gnome-keyring-sharp |
---|
| 28 | Requires: mono-web |
---|
| 29 | Requires: rsvg2-sharp |
---|
[1518] | 30 | Requires(post): desktop-file-utils |
---|
| 31 | Requires(postun):desktop-file-utils |
---|
| 32 | BuildRequires: python |
---|
| 33 | BuildRequires: gtk2-devel |
---|
[2070] | 34 | BuildRequires: GConf2-devel |
---|
[1518] | 35 | BuildRequires: gtk-sharp2-gapi |
---|
| 36 | BuildRequires: gconf-sharp2 |
---|
| 37 | BuildRequires: gtk-sharp2 |
---|
| 38 | BuildRequires: gnome-desktop-sharp2 |
---|
| 39 | BuildRequires: gnome-keyring-sharp-devel |
---|
| 40 | BuildRequires: gnome-sharp2 |
---|
| 41 | BuildRequires: gnome-vfs-sharp2 |
---|
| 42 | BuildRequires: rsvg2-sharp |
---|
| 43 | BuildRequires: notify-sharp-devel |
---|
| 44 | BuildRequires: wnck-sharp |
---|
| 45 | BuildRequires: mono-addins |
---|
| 46 | BuildRequires: mono-core |
---|
| 47 | BuildRequires: mono-devel |
---|
| 48 | BuildRequires: ndesk-dbus-glib |
---|
| 49 | BuildRequires: ndesk-dbus |
---|
| 50 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 51 | |
---|
| 52 | Packager: kazutaka |
---|
| 53 | |
---|
| 54 | %description |
---|
| 55 | Docky is a full fledged dock application that makes opening common applications |
---|
| 56 | and managing windows easier and quicker. Docky is fully integrated into the GNOME |
---|
| 57 | Desktop and features a no non-sense approach to configuration and usage. |
---|
| 58 | |
---|
| 59 | %description -l ja |
---|
| 60 | Docky はアプリケーションの実行やウィンドウの操作を簡単かつ素早く実行できる、 |
---|
| 61 | 十分な機能を備えたドックアプリケーションです。Docky は GNOME デスクトップ |
---|
| 62 | 環境と密接に統合されており、直感的に使えるようにデザインされています。 |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | %prep |
---|
| 66 | %setup -q |
---|
| 67 | %patch1 -p1 -b .clock-date-format |
---|
[2070] | 68 | %if !%{build_vine5} |
---|
[2035] | 69 | %patch2 -p0 -b .no-getoptions |
---|
[2070] | 70 | %endif |
---|
[1518] | 71 | %{__cp} %{SOURCE1} po/ja.po |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %build |
---|
| 75 | %configure |
---|
| 76 | %{__make} %{?_smp_mflags} |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | %install |
---|
| 80 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 81 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
---|
| 82 | %find_lang %{name} |
---|
| 83 | |
---|
| 84 | %post |
---|
| 85 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 86 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 87 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 88 | /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||: |
---|
| 89 | fi |
---|
| 90 | |
---|
| 91 | %postun |
---|
| 92 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 93 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 94 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 95 | /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||: |
---|
| 96 | fi |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | %clean |
---|
| 100 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %files -f %{name}.lang |
---|
| 104 | %defattr(-,root,root) |
---|
| 105 | %doc |
---|
| 106 | %{_sysconfdir}/xdg/autostart/%{name}.desktop |
---|
| 107 | %{_bindir}/%{name} |
---|
| 108 | %{_libdir}/%{name} |
---|
| 109 | %{_libdir}/pkgconfig/%{name}.* |
---|
[1561] | 110 | #%{pysite}/%name |
---|
| 111 | %{python_sitelib}/%name |
---|
[1518] | 112 | %{_datadir}/applications/%{name}.desktop |
---|
| 113 | %{_datadir}/%{name} |
---|
| 114 | %{_datadir}/icons/hicolor/16x16/apps/%{name}.svg |
---|
| 115 | %{_datadir}/icons/hicolor/22x22/apps/%{name}.svg |
---|
| 116 | %{_datadir}/icons/hicolor/24x24/apps/%{name}.svg |
---|
| 117 | %{_datadir}/icons/hicolor/32x32/apps/%{name}.svg |
---|
| 118 | %{_datadir}/icons/hicolor/48x48/apps/%{name}.svg |
---|
| 119 | %{_datadir}/icons/hicolor/48x48/mimetypes/extension.svg |
---|
| 120 | %{_datadir}/icons/hicolor/64x64/apps/%{name}.svg |
---|
| 121 | %{_datadir}/icons/hicolor/128x128/apps/%{name}.svg |
---|
| 122 | %{_datadir}/icons/hicolor/128x128/apps/gmail.png |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | %changelog |
---|
[2070] | 126 | * Wed Oct 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.7-2 |
---|
| 127 | - add build_vine5 conditional macro (don't apply patch2 on Vine 5) |
---|
| 128 | - add Requires: gconf-sharp2, gnome-keyring-sharp, mono-web, rsvg2-sharp |
---|
| 129 | |
---|
[2035] | 130 | * Mon Oct 11 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.7-1 |
---|
| 131 | - new upstream release |
---|
| 132 | - build with mono-2.8 (VineSeed) |
---|
| 133 | - add Patch2 to drop dependency mono.getoptions (VineSeed) |
---|
| 134 | |
---|
[1798] | 135 | * Thu Sep 09 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.6-1 |
---|
| 136 | - new upstream release |
---|
| 137 | |
---|
[1561] | 138 | * Fri Aug 13 2010 Shu KONNO <owa@bg.wakwak.com> 2.0.5-2 |
---|
| 139 | - fixed python2.6/site-package path in %%files |
---|
| 140 | |
---|
[1518] | 141 | * Sat Aug 07 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.5-1 |
---|
| 142 | - initial build for Vine Linux |
---|
| 143 | - add Patch1: modify date/time format to make them translatable |
---|
| 144 | - add Source1: updated japanese translation |
---|
| 145 | |
---|