1 | %define major_ver 1.18 |
---|
2 | %define ver %{major_ver}.0 |
---|
3 | %define rel 1 |
---|
4 | |
---|
5 | Summary: Dropbox extension for Caja |
---|
6 | Summary(ja): Caja 用 Dropbox 拡張モジュール |
---|
7 | Name: caja-dropbox |
---|
8 | Version: %{ver} |
---|
9 | Release: %{rel}%{?_dist_release} |
---|
10 | |
---|
11 | Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz |
---|
12 | |
---|
13 | License: GPLv3 and CC BY-ND 3.0 |
---|
14 | Group: User Interface/Desktops |
---|
15 | URL: http://mate-desktop.org/ |
---|
16 | |
---|
17 | BuildRequires: glib2-devel |
---|
18 | BuildRequires: caja-devel |
---|
19 | BuildRequires: pygtk2 |
---|
20 | BuildRequires: pygobject |
---|
21 | BuildRequires: python-docutils |
---|
22 | |
---|
23 | Requires(post,postun): gtk2 |
---|
24 | Requires(post,postun): desktop-file-utils |
---|
25 | |
---|
26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
27 | |
---|
28 | Vendor: Project Vine |
---|
29 | Distribution: Vine Linux |
---|
30 | Packager: Takemikaduchi, iwaim |
---|
31 | |
---|
32 | |
---|
33 | %description |
---|
34 | This is Caja-Dropbox, a fork of Nautilus-Dropbox for MATE Desktop. |
---|
35 | |
---|
36 | |
---|
37 | %prep |
---|
38 | %setup -q |
---|
39 | |
---|
40 | |
---|
41 | %build |
---|
42 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
43 | %configure \ |
---|
44 | --disable-static |
---|
45 | |
---|
46 | %{__make} %{?_smp_mflags} |
---|
47 | |
---|
48 | |
---|
49 | %install |
---|
50 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
51 | |
---|
52 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
53 | |
---|
54 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
55 | |
---|
56 | |
---|
57 | %clean |
---|
58 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
59 | |
---|
60 | |
---|
61 | %post |
---|
62 | touch --no-create %{_datadir}/icons/hicolor |
---|
63 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
64 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
65 | |
---|
66 | %postun |
---|
67 | if [ $1 -eq 0 ]; then |
---|
68 | touch --no-create %{_datadir}/icons/hicolor |
---|
69 | gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
70 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
71 | fi |
---|
72 | |
---|
73 | |
---|
74 | %files |
---|
75 | %defattr(-,root,root,-) |
---|
76 | %doc COPYING ChangeLog NEWS README |
---|
77 | %{_bindir}/%{name} |
---|
78 | %{_libdir}/caja/extensions-2.0/libcaja-dropbox.so |
---|
79 | %{_datadir}/applications/%{name}.desktop |
---|
80 | %{_datadir}/caja/extensions/libcaja-dropbox.caja-extension |
---|
81 | %{_datadir}/caja-dropbox/emblems/* |
---|
82 | %{_datadir}/icons/hicolor/*/*/* |
---|
83 | %{_mandir}/man1/%{name}.1.gz |
---|
84 | |
---|
85 | |
---|
86 | %changelog |
---|
87 | * Sat Apr 8 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1 |
---|
88 | - update to 1.18.0 |
---|
89 | |
---|
90 | * Sat Nov 26 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1 |
---|
91 | - new upstream release |
---|
92 | - update License |
---|
93 | |
---|
94 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1 |
---|
95 | - new upstream release |
---|
96 | |
---|
97 | * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
98 | - new upstream release |
---|
99 | |
---|
100 | * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1 |
---|
101 | - initial build |
---|
102 | |
---|