1 | %define nautilus_extensions_dir %{_libdir}/nautilus/extensions-2.0 |
---|
2 | |
---|
3 | Summary: Dropbox extension for Nautilus |
---|
4 | Name: nautilus-dropbox |
---|
5 | Version: 0.6.1 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: GPLv2 |
---|
8 | Group: Applications/Internet |
---|
9 | URL: https://www.dropbox.com/ |
---|
10 | Source0: %{name}-%{version}.tar.bz2 |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
12 | BuildRequires: nautilus-devel >= 2.16.0 |
---|
13 | BuildRequires: glib2-devel >= 2.14.0 |
---|
14 | BuildRequires: libnotify-devel >= 0.4.4 |
---|
15 | BuildRequires: pygtk2 |
---|
16 | BuildRequires: docutils |
---|
17 | BuildRequires(check): desktop-file-utils |
---|
18 | Requires: %{name}-images = %{version} |
---|
19 | Requires: nautilus glib2 libnotify pygtk2 |
---|
20 | Requires(post,postun): desktop-file-utils, gtk2 |
---|
21 | |
---|
22 | %description |
---|
23 | Dropbox extension for Nautilus. |
---|
24 | Dropbox is online backup, file sync and sharing made easy web seavice. |
---|
25 | See https://www.dropbox.com/ |
---|
26 | |
---|
27 | %description -l ja |
---|
28 | Nautilus のための Dropbox 拡張。 |
---|
29 | Dropbox はオンラインバックアップやファイルの同期と共有を簡単に |
---|
30 | 実現するウェブサービスです。 |
---|
31 | 詳細は https://www.dropbox.com/ を見てください。 |
---|
32 | |
---|
33 | %package images-nonfree |
---|
34 | Summary: Dropbox extension for Nautilus non-free images |
---|
35 | Group: Applications/Internet |
---|
36 | License: non-free (see COPYING) |
---|
37 | Requires: %{name} = %{version}-%{release} |
---|
38 | Provides: %{name}-images |
---|
39 | %description images-nonfree |
---|
40 | Dropbox extension for Nautilus non-free images. |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q |
---|
44 | %configure |
---|
45 | |
---|
46 | %build |
---|
47 | make |
---|
48 | |
---|
49 | %install |
---|
50 | rm -rf %{buildroot} |
---|
51 | %makeinstall NAUTILUS_EXTENSION_DIR=%{buildroot}%{nautilus_extensions_dir} |
---|
52 | |
---|
53 | ## drop unnecessary files |
---|
54 | # *.{a,la} |
---|
55 | %{__rm} -f %{buildroot}%{nautilus_extensions_dir}/libnautilus-dropbox.{a,la} |
---|
56 | # cache file |
---|
57 | %{__rm} -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache |
---|
58 | |
---|
59 | %check |
---|
60 | %{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/dropbox.desktop |
---|
61 | |
---|
62 | %post |
---|
63 | touch --no-create %{_datadir}/icons/hicolor |
---|
64 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
65 | %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
66 | fi |
---|
67 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
68 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
69 | fi |
---|
70 | |
---|
71 | %postun |
---|
72 | touch --no-create %{_datadir}/icons/hicolor |
---|
73 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
74 | %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
75 | fi |
---|
76 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
77 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
78 | fi |
---|
79 | |
---|
80 | %clean |
---|
81 | rm -rf %{buildroot} |
---|
82 | |
---|
83 | %files |
---|
84 | %defattr(-,root,root,-) |
---|
85 | %doc AUTHORS COPYING NEWS README |
---|
86 | %config(missingok) %{_datadir}/applications/dropbox.desktop |
---|
87 | %{_bindir}/dropbox |
---|
88 | %{nautilus_extensions_dir}/libnautilus-dropbox.so |
---|
89 | %{_mandir}/man1/dropbox.1* |
---|
90 | |
---|
91 | %files images-nonfree |
---|
92 | %defattr(-,root,root,-) |
---|
93 | %doc COPYING README |
---|
94 | %{_datadir}/icons/hicolor/*/apps/* |
---|
95 | %{_datadir}/icons/hicolor/*/emblems/* |
---|
96 | |
---|
97 | %changelog |
---|
98 | * Sat Mar 13 2010 IWAI, Masaharu <iwai@alib.jp> 0.6.1-1 |
---|
99 | - Initial build. |
---|
100 | |
---|