Skip to content

Commit

Permalink
add files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Masahiro Fujiwara committed May 10, 2015
1 parent c0482a2 commit 9a3e90e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dropbox.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[main]
enabled=1
37 changes: 37 additions & 0 deletions yum-plugin-dropbox.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
%define pluginhome /usr/lib/yum-plugins
Summary: Allow yum to access repository on Dropbox
Name: yum-plugin-dropbox
Version: 0.1
Release: 1%{?dist}
License: MIT
Group: System Environment/Base
Source: https://github.com/unakatsuo/yum-dropbox/archive/master.tar.gz
URL: https://github.com/unakatsuo/yum-dropbox/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: yum >= 3.2.29
Requires: python-kitchen

%description
This is a yum plugin to access yum repository created on Dropbox. The
authentication is done by OAuth2 so the user is required to get access token
from Dropbox App Console (https://www.dropbox.com/developers/apps)


%prep
%setup -q

%install

mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/ $RPM_BUILD_ROOT/%{pluginhome}
install -m 644 dropbox.conf $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/
install -m 644 dropbox.py $RPM_BUILD_ROOT/%{pluginhome}
%{__python} -c "import compileall; compileall.compile_dir('$RPM_BUILD_ROOT/%pluginhome', 1)"

%clean
rm -rf $RPM_BUILD_ROOT


%files
%{pluginhome}/dropbox.*
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/dropbox.conf

0 comments on commit 9a3e90e

Please sign in to comment.