Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use noreplace for config; set default values of name, version, release #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions yum-plugin-s3-iam.spec
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
%global upstream_name yum-s3-iam

%{?!name: %global name yum-plugin-s3-iam}
%{?!version: %global version 1.2.2}
%{?!release: %global release 2}

Name: %{name}
Version: %{version}
Release: %{release}
Expand All @@ -18,7 +24,7 @@ Yum package manager plugin for private S3 repositories.
Uses Amazon IAM & EC2 Roles.

%prep
%setup -q
%setup -q -n %{upstream_name}-%{version}

%build

Expand All @@ -33,10 +39,14 @@ rm -rf ${RPM_BUILD_ROOT}
%defattr(-,root,root,-)
%doc s3iam.repo
%doc LICENSE NOTICE README.md
%config /etc/yum/pluginconf.d/s3iam.conf
%config(noreplace) /etc/yum/pluginconf.d/s3iam.conf
/usr/lib/yum-plugins/s3iam.py*

%changelog
* Wed Oct 25 2017 Marcin Dulak <[email protected]> 1.2.2-2
- use noreplace for config (@marcindulak)
- set default values of name, version, release (@marcindulak)

* Fri May 05 2017 Mathias Brossard <[email protected]> 1.2.2-1
- Handle special value '__none__' for proxy (@andlam)

Expand Down