2012-06-09 07:03:46 +04:00
|
|
|
#Correct it to 1 if you want git snapshot version
|
|
|
|
%global git 0
|
|
|
|
|
|
|
|
%if !%{git}
|
|
|
|
#Should be corrected to match the Version
|
2012-06-09 11:32:54 +04:00
|
|
|
%global gitcommit da89bf2
|
2012-06-09 07:03:46 +04:00
|
|
|
%else
|
|
|
|
%global gitcommit b6fb4a6
|
|
|
|
%global gitfull b6fb4a604e51009ece1d8cfe7b45ed603097b47c
|
|
|
|
%global date 20120531
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: grive
|
2012-06-09 11:32:54 +04:00
|
|
|
Version: 0.1.1
|
2012-06-09 07:03:46 +04:00
|
|
|
%if %{git}
|
|
|
|
Release: 1.%{date}git%{gitcommit}%{?dist}
|
|
|
|
%else
|
|
|
|
Release: 1%{?dist}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Summary: An open source Linux client for Google Drive
|
|
|
|
|
|
|
|
License: GPLv2
|
2012-06-09 11:32:54 +04:00
|
|
|
URL: http://grive.github.com/grive/
|
2012-06-09 07:03:46 +04:00
|
|
|
%if %{git}
|
2012-06-09 11:32:54 +04:00
|
|
|
Source0: https://github.com/grive/%{name}/tarball/%{gitfull}
|
2012-06-09 07:03:46 +04:00
|
|
|
%else
|
2012-06-09 11:32:54 +04:00
|
|
|
Source0: https://github.com/grive/%{name}/tarball/v%{version}
|
2012-06-09 07:03:46 +04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
BuildRequires: libcurl-devel
|
2015-05-16 00:27:59 +03:00
|
|
|
BuildRequires: yajl-devel
|
2012-06-09 07:03:46 +04:00
|
|
|
BuildRequires: expat-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: binutils-devel
|
2012-05-28 17:29:28 +04:00
|
|
|
|
|
|
|
%description
|
2012-06-09 07:03:46 +04:00
|
|
|
The purpose of this project is to provide an independent implementation
|
|
|
|
of Google Drive client. It uses the Google Document List API to talk to
|
|
|
|
the servers in Google. The code is written in standard C++.
|
2012-05-28 17:29:28 +04:00
|
|
|
|
|
|
|
|
2012-06-09 07:03:46 +04:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for grive
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2012-05-28 17:29:28 +04:00
|
|
|
|
2012-06-09 07:03:46 +04:00
|
|
|
%description devel
|
|
|
|
Development files for grive
|
2012-05-28 17:29:28 +04:00
|
|
|
|
|
|
|
%prep
|
2012-06-09 11:32:54 +04:00
|
|
|
%setup -q -n Grive-%{name}-%{gitcommit}
|
2012-05-28 17:29:28 +04:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2012-06-09 07:03:46 +04:00
|
|
|
%cmake .
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2012-05-28 17:29:28 +04:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2012-06-09 07:03:46 +04:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2012-05-28 17:29:28 +04:00
|
|
|
|
2012-06-09 07:03:46 +04:00
|
|
|
%post -p /sbin/ldconfig
|
2012-05-28 17:29:28 +04:00
|
|
|
|
2012-06-09 07:03:46 +04:00
|
|
|
%postun -p /sbin/ldconfig
|
2012-05-28 17:29:28 +04:00
|
|
|
|
|
|
|
|
2012-06-09 07:03:46 +04:00
|
|
|
%files
|
|
|
|
%doc COPYING README
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_libdir}/libgrive.so.*
|
2012-05-28 17:29:28 +04:00
|
|
|
|
2012-06-09 07:03:46 +04:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}*
|
|
|
|
%{_libdir}/libgrive.so
|
2012-05-28 17:29:28 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2012-06-09 11:32:54 +04:00
|
|
|
* Sat Jun 09 2012 Nestal Wan <me@nestal.net> 0.1.1-1
|
|
|
|
- Updated for new repository location
|
|
|
|
|
2012-06-09 07:03:46 +04:00
|
|
|
* Thu Jun 07 2012 Vasiliy N. Glazov <vascom2@gmail.com> 0.1.0-1
|
|
|
|
- Jump to release versioning
|
2012-05-28 17:29:28 +04:00
|
|
|
|
2012-06-09 07:03:46 +04:00
|
|
|
* Tue May 10 2012 Vasiliy N. Glazov <vascom2@gmail.com> 0.1.0-1.20120528git07553e5.R
|
|
|
|
- Update to 0.1.0
|
2012-05-28 17:29:28 +04:00
|
|
|
|
2012-06-09 07:03:46 +04:00
|
|
|
* Tue May 10 2012 Vasiliy N. Glazov <vascom2@gmail.com> 0.0.4-20120510git0c3fdaa.1.R
|
|
|
|
- Initial release
|