Skip to content

Commit

Permalink
Merge pull request #3 from sjones4/topic-rpm
Browse files Browse the repository at this point in the history
RPM packaging
  • Loading branch information
sjones4 authored Mar 1, 2020
2 parents 130a36d + a8bf4bb commit 6f9bd81
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2
44 changes: 44 additions & 0 deletions eucalyptus-awscli-plugin.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
%{!?version: %define version 0.0}

Name: eucalyptus-awscli-plugin
Version: %{version}
Release: 0%{?build_id:.%build_id}%{?dist}
Summary: Eucalyptus plugin for AWS CLI

License: BSD
URL: https://github.com/corymbia/eucalyptus-awscli-plugin
Source0: %{tarball_basedir}.tar.xz

BuildArch: noarch

BuildRequires: python2-devel
BuildRequires: python-setuptools

Requires: awscli >= 1.11.0
Requires: python2


%description
An AWS CLI plugin to enable Eucalyptus service endpoints via configuration.


%prep
%setup -q -n %{tarball_basedir}


%build
python2 setup.py build


%install
rm -rf $RPM_BUILD_ROOT
python2 setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT


%files
%{python_sitelib}/*


%changelog
* Thu Feb 20 2020 Steve Jones <[email protected]>
- Created
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
requires = ['awscli>=1.11.0']

project_dir = path.abspath(path.dirname(__file__))
with open(path.join(project_dir, 'VERSION'), 'rb') as version:
version = version.read().decode('UTF-8')
with open(path.join(project_dir, 'README.md'), 'rb') as readme:
long_description = readme.read().decode('UTF-8')

setup(
name='awscli-plugin-eucalyptus',
packages=['awscli_plugin_eucalyptus'],
version='0.2',
version=version,
description='Eucalyptus plugin for AWS CLI',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 6f9bd81

Please sign in to comment.