A new user interface for you! Read more...

File onedrive-d.spec of Package onedrive-d

#
# spec file for package onedrive-d
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           onedrive-d
Version:        1.0.0_dev
Release:        0
License:        LGPL-3.0
Summary:        A Microsoft OneDrive client on Linux
Url:            http://xybu.me/projects/onedrive-d
Group:          Productivity/Networking/Other
Source:         %{name}-%{version}.tar.xz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools
BuildRequires:  fdupes
Requires:       inotify-tools
Requires:       python3-certifi
Requires:       python3-daemonocle
Requires:       python3-gobject
Requires:       python3-pip
Requires:       python3-psutil
Requires:       python3-requests
Requires:       python3-send2trash
Requires:       python3-urllib3
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
onedrive-d project intends to develop an OneDrive (formerly SkyDrive) daemon on
(X)Ubuntu Linux. The program is mainly written in Python and supplemented by
Bash shell scripts. The work is based on a former, active project called
python-onedrive (https://github.com/mk-fg/python-onedrive) by Mike Kazantsev.

%prep
%setup -q

%build
python3 setup.py build

%install
python3 ./setup.py install -O1 --skip-build \
    --prefix="%{_prefix}" \
    --root="%{buildroot}" \
    --record-rpm=files.lst
grep -rl '^#!' %{buildroot}%{python3_sitelib}/onedrive_d/ | xargs chmod 0755
%fdupes %{buildroot}%{python3_sitelib}/onedrive_d/

%files
%defattr(-,root,root)
%doc LICENSE README.md
%{_bindir}/onedrive-*
%{python3_sitelib}/onedrive_d
%{python3_sitelib}/onedrive_d-1.1.0*dev*-py%{py3_ver}.egg-info