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