diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-16 19:30:23 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-16 19:30:23 +0000 |
commit | cb7180a3576b3343c1a348e8024ff74623a54f82 (patch) | |
tree | 5305a41643121de6f34d3645c8e85c707521c1de | |
parent | 973be9943237ddca3fde13208bf72cfb21560420 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-ws_lint.spec | 71 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 73 insertions, 0 deletions
@@ -0,0 +1 @@ +/ws_lint-1.1.0.gem diff --git a/rubygem-ws_lint.spec b/rubygem-ws_lint.spec new file mode 100644 index 0000000..e8faf78 --- /dev/null +++ b/rubygem-ws_lint.spec @@ -0,0 +1,71 @@ +# Generated from ws_lint-1.1.0.gem by gem2rpm -*- rpm-spec -*- +%global gem_name ws_lint + +Name: rubygem-%{gem_name} +Version: 1.1.0 +Release: 1%{?dist} +Summary: Whitespace Linter +License: MIT +URL: https://github.com/meronokbay/whitespace-linter +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +BuildArch: noarch + +%description +Basic linter that detects and formats trailing whitespace and extra empty +lines in your code and config files. + + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name}. + +%prep +%setup -q -n %{gem_name}-%{version} + +%build +# Create the gem as gem install only works on a gem file +gem build ../%{gem_name}-%{version}.gemspec + +# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir +# by default, so that we can move it into the buildroot in %%install +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + + +mkdir -p %{buildroot}%{_bindir} +cp -a .%{_bindir}/* \ + %{buildroot}%{_bindir}/ + +find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x + +%check +pushd .%{gem_instdir} +# Run the test suite. +popd + +%files +%dir %{gem_instdir} +%{_bindir}/ws_lint +%{gem_instdir}/bin +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} + + +%changelog +* Thu Sep 16 2021 mockbuilder - 1.1.0-1 +- Initial package @@ -0,0 +1 @@ +2327e705cf59a3ede694e00566db8aaf ws_lint-1.1.0.gem |