Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69ad2ed402 |
3 changed files with 87 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -0,0 +1 @@
|
|||
/vagrant-atomic-0.1.0.gem
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
a9d8844c45a849d24419320b4256e66e vagrant-atomic-0.1.0.gem
|
||||
85
vagrant-atomic.spec
Normal file
85
vagrant-atomic.spec
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
# Generated from vagrant-atomic-0.1.0.gem by gem2rpm -*- rpm-spec -*-
|
||||
%global vagrant_plugin_name vagrant-atomic
|
||||
|
||||
Name: %{vagrant_plugin_name}
|
||||
Version: 0.1.0
|
||||
Release: 2%{?dist}
|
||||
Summary: Project Atomic guest for Vagrant
|
||||
Group: Development/Languages
|
||||
License: GPLv2
|
||||
URL: https://github.com/projectatomic/vagrant-atomic
|
||||
Source0: https://rubygems.org/gems/%{vagrant_plugin_name}-%{version}.gem
|
||||
Requires(posttrans): vagrant
|
||||
Requires(preun): vagrant
|
||||
Requires: vagrant
|
||||
BuildRequires: vagrant
|
||||
# This package provides functionality that should be part of upstream
|
||||
# package in the future.
|
||||
Enhances: vagrant
|
||||
BuildArch: noarch
|
||||
Provides: vagrant(%{vagrant_plugin_name}) = %{version}
|
||||
|
||||
%description
|
||||
Adds the Project Atomic OS (http://projectatomic.io) as a guest for Vagrant.
|
||||
Tested with Fedora Atomic and RHEL Atomic.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
gem unpack %{SOURCE0}
|
||||
|
||||
%setup -q -D -T -n %{vagrant_plugin_name}-%{version}
|
||||
|
||||
gem spec %{SOURCE0} -l --ruby > %{vagrant_plugin_name}.gemspec
|
||||
|
||||
%build
|
||||
gem build %{vagrant_plugin_name}.gemspec
|
||||
|
||||
%vagrant_plugin_install
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{vagrant_plugin_dir}
|
||||
cp -a .%{vagrant_plugin_dir}/* \
|
||||
%{buildroot}%{vagrant_plugin_dir}/
|
||||
|
||||
# Remove backup file
|
||||
rm %{buildroot}%{vagrant_plugin_instdir}/lib/vagrant-atomic/plugin.rb~
|
||||
|
||||
%posttrans
|
||||
%vagrant_plugin_register %{vagrant_plugin_name}
|
||||
|
||||
%preun
|
||||
%vagrant_plugin_unregister %{vagrant_plugin_name}
|
||||
|
||||
%files
|
||||
%dir %{vagrant_plugin_instdir}
|
||||
%exclude %{vagrant_plugin_instdir}/.gitignore
|
||||
%license %{vagrant_plugin_instdir}/LICENSE
|
||||
%{vagrant_plugin_libdir}
|
||||
%exclude %{vagrant_plugin_cache}
|
||||
%{vagrant_plugin_spec}
|
||||
# Blank at the moment
|
||||
%exclude %{vagrant_plugin_instdir}/CHANGELOG.md
|
||||
|
||||
%files doc
|
||||
%doc %{vagrant_plugin_docdir}
|
||||
%{vagrant_plugin_instdir}/Gemfile
|
||||
%doc %{vagrant_plugin_instdir}/README.md
|
||||
%{vagrant_plugin_instdir}/Rakefile
|
||||
%{vagrant_plugin_instdir}/Vagrantfile
|
||||
%{vagrant_plugin_instdir}/vagrant-atomic.gemspec
|
||||
|
||||
%changelog
|
||||
* Wed Jun 03 2015 Josef Stribny <jstribny@redhat.com> - 0.1.0-2
|
||||
- Remove backup file, remove black changelog
|
||||
|
||||
* Thu May 21 2015 Josef Stribny <jstribny@redhat.com> - 0.1.0-1
|
||||
- Initial package
|
||||
Loading…
Add table
Add a link
Reference in a new issue