]>
Commit | Line | Data |
---|---|---|
3f7cd1cb | 1 | %define commit 27817e835fe115ebbda5410ec904aa49a2ad01f1 |
1b21bd2d JR |
2 | # %(c=%{commit}; echo ${c:0:7}) |
3 | %define shortcommit 27817e8 | |
3f7cd1cb | 4 | %define cdate 20130702 |
8c26006e AM |
5 | Summary: An open source Linux client for Google Drive |
6 | Name: grive | |
a1d83065 | 7 | Version: 0.3.0 |
3f7cd1cb | 8 | Release: 0.%{cdate}git%{shortcommit}.1 |
8c26006e AM |
9 | License: GPL v2 |
10 | Group: Applications/Networking | |
a1d83065 | 11 | Source0: https://github.com/Grive/grive/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz |
3a304ac7 | 12 | # Source0-md5: 4f3c3411588f889801bd5b9297e6e2c9 |
a1d83065 | 13 | # https://github.com/Grive/grive/issues/187 |
a4743560 | 14 | Patch0: json-c.patch |
a1d83065 | 15 | Patch1: %{name}-bgrive_cmake_fix.patch |
8c26006e | 16 | URL: http://www.lbreda.com/grive/ |
a1d83065 | 17 | BuildRequires: QtCore-devel |
8c26006e AM |
18 | BuildRequires: binutils-devel |
19 | BuildRequires: boost-devel | |
20 | BuildRequires: cmake | |
21 | BuildRequires: curl-devel | |
22 | BuildRequires: expat-devel | |
a4743560 | 23 | BuildRequires: json-c-devel >= 0.11 |
8c26006e AM |
24 | BuildRequires: libgcrypt-devel |
25 | BuildRequires: libstdc++-devel | |
26 | BuildRequires: openssl-devel | |
a1d83065 | 27 | BuildRequires: yajl-devel |
8c26006e AM |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | The purpose of this project is to provide an independent | |
32 | implementation of Google Drive client. It uses the Google Document | |
a1d83065 ER |
33 | List API to talk to the servers in Google. |
34 | ||
35 | %package -n bgrive | |
36 | Summary: Qt frontend for %{name} | |
37 | Group: Applications/Networking | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description -n bgrive | |
41 | GUI frontend for %{name} | |
8c26006e AM |
42 | |
43 | %prep | |
a1d83065 | 44 | %setup -q -n %{name}-%{commit} |
a4743560 | 45 | %patch0 -p1 |
a1d83065 | 46 | %patch1 -p1 |
8c26006e AM |
47 | |
48 | %build | |
49 | install -d build | |
50 | cd build | |
51 | %cmake .. | |
8c26006e AM |
52 | %{__make} |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
8c26006e AM |
56 | %{__make} -C build install \ |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc README | |
65 | %attr(755,root,root) %{_bindir}/%{name} | |
a1d83065 ER |
66 | %{_mandir}/man1/%{name}.1* |
67 | ||
68 | %files -n bgrive | |
69 | %defattr(644,root,root,755) | |
70 | %attr(755,root,root) %{_bindir}/bgrive |