]> git.pld-linux.org Git - packages/grive2.git/blame - grive.spec
- hardcode shortcommit (distfiles can't grok that macro)
[packages/grive2.git] / grive.spec
CommitLineData
3f7cd1cb
JR
1%define commit 27817e835fe115ebbda5410ec904aa49a2ad01f1
2%define shortcommit 27817e8 # %(c=%{commit}; echo ${c:0:7})
3%define cdate 20130702
8c26006e
AM
4Summary: An open source Linux client for Google Drive
5Name: grive
a1d83065 6Version: 0.3.0
3f7cd1cb 7Release: 0.%{cdate}git%{shortcommit}.1
8c26006e
AM
8License: GPL v2
9Group: Applications/Networking
a1d83065 10Source0: 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
13Patch1: %{name}-bgrive_cmake_fix.patch
8c26006e 14URL: http://www.lbreda.com/grive/
a1d83065 15BuildRequires: QtCore-devel
8c26006e
AM
16BuildRequires: binutils-devel
17BuildRequires: boost-devel
18BuildRequires: cmake
19BuildRequires: curl-devel
20BuildRequires: expat-devel
21BuildRequires: json-c-devel
22BuildRequires: libgcrypt-devel
23BuildRequires: libstdc++-devel
24BuildRequires: openssl-devel
a1d83065 25BuildRequires: yajl-devel
8c26006e
AM
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29The purpose of this project is to provide an independent
30implementation of Google Drive client. It uses the Google Document
a1d83065
ER
31List API to talk to the servers in Google.
32
33%package -n bgrive
34Summary: Qt frontend for %{name}
35Group: Applications/Networking
36Requires: %{name} = %{version}-%{release}
37
38%description -n bgrive
39GUI frontend for %{name}
8c26006e
AM
40
41%prep
a1d83065
ER
42%setup -q -n %{name}-%{commit}
43%patch1 -p1
8c26006e
AM
44
45%build
46install -d build
47cd build
48%cmake ..
8c26006e
AM
49%{__make}
50
51%install
52rm -rf $RPM_BUILD_ROOT
8c26006e
AM
53%{__make} -C build install \
54 DESTDIR=$RPM_BUILD_ROOT
55
56%clean
57rm -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
This page took 0.123057 seconds and 4 git commands to generate.