Initial checkin

This commit is contained in:
Mamoru TASAKA 2017-05-03 23:03:06 +09:00
commit 53ef2fec2b
3 changed files with 83 additions and 0 deletions

1
.gitignore vendored
View file

@ -0,0 +1 @@
/native-package-installer-1.0.1.gem

View file

@ -0,0 +1,81 @@
%global gem_name native-package-installer
Name: rubygem-%{gem_name}
Version: 1.0.1
Release: 1%{?dist}
Summary: Native packages installation helper
License: LGPLv3+
URL: https://github.com/ruby-gnome2/native-package-installer
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: rubygem(test-unit)
BuildRequires: rubygem(test-unit-rr)
BuildArch: noarch
%description
Users need to install native packages to install an extension library
that depends on native packages. It bores users because users need to
install native packages and an extension library separately.
native-package-installer helps to install native packages on "gem install".
Users can install both native packages and an extension library by one action,
"gem install".
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
rm -f %{buildroot}%{gem_cache}
pushd %{buildroot}%{gem_instdir}
rm -rf \
Rakefile \
test/ \
%{nil}
popd
%check
pushd .%{gem_instdir}
ruby -Ilib:.:test test/run-test.rb
popd
%files
%license %{gem_instdir}/doc/text/*gpl*txt
%dir %{gem_instdir}
%dir %{gem_instdir}/doc
%dir %{gem_instdir}/doc/text
%doc %{gem_instdir}/doc/text/*.md
%doc %{gem_instdir}/README.md
%{gem_libdir}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%changelog
* Wed May 3 2017 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 1.0.1-1
- 1.0.1
* Sun Apr 30 2017 Mamoru TASAKA <mtasaka@tbz.t-com.ne.jp> - 1.0.0-1
- Initial package

View file

@ -0,0 +1 @@
SHA512 (native-package-installer-1.0.1.gem) = f20a91f266c8fc738a33519fa0324b4918a28f333bb07c6db7d6c29ad5916b27b15fa68dc4d71fc970115e8053aa81e693e58a2ce050f7ffc8ce24bc16006a3e