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