Skip to content

Commit

Permalink
Build with .tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
akhila-guruju committed Jan 15, 2025
1 parent c8fd837 commit d3cbe10
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 47 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"Signatures": {
"flexmock-3.0.1-test-missing-files.tar.gz": "04903e871570e5543b8e3b1007c5527ade93f513c64771ad9046be293c84c930",
"flexmock-3.0.1.gem": "f58a82058eb7ca0c802a7f82c5f867adcd93c5f2bd9da8d57ef5d3b36513586f",
"flexmock-create-missing-test-files.sh": "d31d3126887e9c13e3cc0824e45483a1626ed2b74b4e7ee3eb3dfcb519f012f7"
"rubygem-flexmock-3.0.1.tar.gz": "6a151b5ddd1d7b88976c54ae6dc268511265c0a576e239368f869072f23a9e56"
}
}
17 changes: 6 additions & 11 deletions SPECS-EXTENDED/rubygem-flexmock/rubygem-flexmock.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ License: MIT
Vendor: Microsoft Corporation
Distribution: Azure Linux
URL: https://github.com/doudou/flexmock
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: %{gem_name}-%{version}-test-missing-files.tar.gz
# Source1 is created fron Source2
Source2: flexmock-create-missing-test-files.sh
Source0: https://github.com/doudou/%{gem_name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

Requires: ruby(release)
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest) >= 5
BuildRequires: rubygem(rspec) >= 3
BuildRequires: git
Requires: ruby(rubygems)
Provides: rubygem(%{gem_name}) = %{version}-%{release}
BuildArch: noarch
Expand All @@ -34,14 +32,10 @@ Requires: %{name} = %{version}-%{release}
This package contains documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version} -a 1
mv ../%{gem_name}-%{version}.gemspec .

find . -name \*.rb | xargs sed -i -e '\@/usr/bin/env@d'
find . -name \*.gem -or -name \*.rb -or -name \*.rdoc | xargs chmod 0644
%autosetup -S git -n %{gem_name}-%{version}

%build
gem build %{gem_name}-%{version}.gemspec
gem build %{gem_name}
%gem_install

%install
Expand Down Expand Up @@ -82,10 +76,11 @@ popd
%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.txt
%doc %{gem_instdir}/[A-CR-Z]*
%doc %{gem_instdir}/[A-Z]*

%{gem_libdir}
%{gem_instdir}/rakelib/
%exclude %{gem_cache}
%{gem_spec}

%files doc
Expand Down
2 changes: 1 addition & 1 deletion cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26295,7 +26295,7 @@
"other": {
"name": "rubygem-flexmock",
"version": "3.0.1",
"downloadUrl": "https://rubygems.org/downloads/flexmock-3.0.1.gem"
"downloadUrl": "https://github.com/doudou/flexmock/archive/refs/tags/v3.0.1.tar.gz"
}
}
},
Expand Down

0 comments on commit d3cbe10

Please sign in to comment.