536ae32
%global gem_name rugged
536ae32
536ae32
Summary:       Rugged is a Ruby binding to the libgit2 library
536ae32
Name:          rubygem-%{gem_name}
2740f02
Version:       1.1.0
df18853
Release:       3%{?dist}
536ae32
License:       MIT
3513793
URL:           https://github.com/libgit2/rugged
1e82eb9
Source0:       https://rubygems.org/gems/%{gem_name}-%{version}.gem
536ae32
# The test directory for this version is incomplete due to gemspec bug.
536ae32
# Upstream has removed test and Rakefile from gem in future versions.
536ae32
# https://github.com/libgit2/rugged/issues/262
536ae32
# https://github.com/libgit2/rugged/pull/263
536ae32
# This is how we are getting the tests (Source1)
99a385b
#  git clone https://github.com/libgit2/rugged
2740f02
#  git -C rugged archive --format=tar.gz -o $PWD/rugged-1.1.0-test.tgz v1.1.0 -- Rakefile test/
1e82eb9
Source1:       %{gem_name}-%{version}-test.tgz
536ae32
Requires:      ruby(rubygems)
d5eb88e
Requires:      ruby
687e128
BuildRequires:  gcc
d5eb88e
BuildRequires: ruby
544e566
BuildRequires: git-core
f191350
BuildRequires: cmake
536ae32
BuildRequires: libgit2-devel
536ae32
BuildRequires: ruby-devel
536ae32
BuildRequires: rubygem(minitest)
69cac04
BuildRequires: rubygems-devel
536ae32
Provides:      rubygem(%{gem_name}) = %{version}
536ae32
536ae32
%description
536ae32
Rugged is a Ruby bindings to the libgit2W C Git library. This is
536ae32
for testing and using the libgit2 library in a language that is awesome.
536ae32
536ae32
536ae32
%package doc
536ae32
Summary:       Documentation for %{name}
536ae32
Requires:      %{name} = %{version}-%{release}
536ae32
BuildArch:     noarch
536ae32
536ae32
%description doc
544e566
Documentation for %{name}.
536ae32
536ae32
%prep
544e566
%autosetup -n %{gem_name}-%{version} -a 1 -S git
536ae32
544e566
rm -vrf vendor
f23e2b0
# Remove the bundled libraries from gemspec
544e566
sed -i -e 's\, "vendor[^,]*"\\g' ../%{gem_name}-%{version}.gemspec
536ae32
6266d87
# The build system requres libgit2's version.h to be present, and defaults to
6266d87
# using the vendor'd copy. Use the system copy instead.
544e566
sed -i -e 's|LIBGIT2_DIR = .*|LIBGIT2_DIR = "%{_prefix}"|' ext/rugged/extconf.rb
6266d87
536ae32
%build
060ed9b
export CONFIGURE_ARGS="--with-cflags='%{optflags}' --use-system-libraries"
6266d87
544e566
gem build ../%{gem_name}-%{version}.gemspec
3513793
%gem_install
536ae32
536ae32
%install
536ae32
mkdir -p %{buildroot}%{gem_dir}
544e566
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
536ae32
536ae32
536ae32
# move C extensions to the extdir.
ee63891
mkdir -p %{buildroot}%{gem_extdir_mri}/
ee63891
cp -a .%{gem_extdir_mri}/{gem.build_complete,%{gem_name}/} %{buildroot}%{gem_extdir_mri}/
536ae32
536ae32
# We don't need those files anymore.
536ae32
rm -rf %{buildroot}%{gem_instdir}/ext/
536ae32
536ae32
%check
544e566
#export LANG="C.UTF-8"
544e566
#git config --global user.name John Doe
060ed9b
# Comment out the test until we get the minitest/autorun figured out
060ed9b
# testrb -Ilib test/*test.rb
536ae32
536ae32
%files
76d8654
%license %{gem_instdir}/LICENSE
536ae32
%doc %{gem_instdir}/README.md
536ae32
%dir %{gem_instdir}
536ae32
%{gem_libdir}
536ae32
%{gem_extdir_mri}
536ae32
%exclude %{gem_cache}
536ae32
%{gem_spec}
536ae32
536ae32
%files doc
536ae32
%doc %{gem_docdir}
536ae32
536ae32
%changelog
df18853
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
df18853
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
df18853
8a04126
* Wed Jan  6 2021 Vít Ondruch <vondruch@redhat.com> - 1.1.0-2
8a04126
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0
8a04126
2740f02
* Mon Dec 28 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.1.0-1
2740f02
- Update to 1.1.0
2740f02
35e1deb
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
35e1deb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
35e1deb
68314aa
* Wed Apr 15 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.0.0-1
68314aa
- Update to 1.0.0
68314aa
29597a2
* Tue Mar 10 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.99.0-1
29597a2
- Update to 0.99.0
29597a2
7fec1af
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.28.0-5
7fec1af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7fec1af
4f5e4ef
* Fri Jan 17 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.28.0-4
4f5e4ef
- F-32: rebuild against ruby27
4f5e4ef
ecc143f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.28.0-3
ecc143f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ecc143f
4ab27a5
* Tue Jul 16 2019 Vít Ondruch <vondruch@redhat.com> - 0.28.0-2
4ab27a5
- Remove useless %%{rubygems_default_filter} macro.
4ab27a5
359f77d
* Thu Jun 06 19:25:57 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.28.0-1
359f77d
- Update to 0.28.0
359f77d
5caf353
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.27.4-3
5caf353
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5caf353
9d1b94a
* Thu Jan 17 2019 Vít Ondruch <vondruch@redhat.com> - 0.27.4-2
9d1b94a
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6
9d1b94a
99a385b
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27.4-1
99a385b
- Update to 0.27.4
99a385b
31357ad
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 0.26.0-9
31357ad
- Rebuild with fixed binutils
31357ad
ca355ac
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-8
ca355ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ca355ac
544e566
* Sat Feb 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.26.0-7
544e566
- Cleanups and fixes
544e566
3e284ed
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-6
3e284ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3e284ed
428bfc6
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.26.0-5
428bfc6
- Rebuilt for switch to libxcrypt
428bfc6
78b1008
* Thu Jan 04 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.26.0-4
78b1008
- F-28: rebuild for ruby25
78b1008
56d395c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-3
56d395c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
56d395c
1cb299c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-2
1cb299c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1cb299c
545468a
* Sat Jul 08 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.26.0-1
545468a
- Update to 0.26.0
545468a
Igor Gnatenko 31e1e47
* Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.1.1-1
Igor Gnatenko 31e1e47
- Update to 0.25.1.1 (RHBZ #1410965)
Igor Gnatenko 31e1e47
1fd928d
* Wed Jan 11 2017 Vít Ondruch <vondruch@redhat.com> - 0.24.6-2
1fd928d
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
1fd928d
Igor Gnatenko fc62801
* Tue Jan 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.24.6-1
Igor Gnatenko fc62801
- Update to 0.24.6
Igor Gnatenko fc62801
0c6c114
* Sun Mar 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.0-1
0c6c114
- Update to 0.24.0 (RHBZ #1314950)
0c6c114
1e82eb9
* Thu Feb 18 2016 Jiri Popelka <jpopelka@redhat.com> - 0.23.3-1
b85e7f7
- Update to version 0.23.3 (rhbz#1252642)
76d8654
- Use %%license macro
1e82eb9
098fc79
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.0-0.20150733git233da19
098fc79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
098fc79
bd2c814
* Mon Jan 11 2016 Vít Ondruch <vondruch@redhat.com> - 0.23.0-0.20150732git233da19
bd2c814
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
bd2c814
ec84a95
* Fri Jul 31 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@Foobar.org> - 0.22.2-4.20150731git233da19
ec84a95
- Bump to latest git
ec84a95
547ad9c
* Fri Jul 31 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.22.2-3
547ad9c
- Rebuilt for libgit2-0.23.0 and libgit2-glib-0.23
547ad9c
fb72a14
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.2-2
fb72a14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fb72a14
3513793
* Mon May 25 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.22.2-1
3513793
- Update to 0.22.2 (rhbz#1222540)
3513793
- Use HTTPS urls
3513793
6266d87
* Tue May 05 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.22.1-0.1.b1
6266d87
- Update to version 0.22.1b1 (rhbz#1166414)
6266d87
911945c
* Fri Jan 16 2015 Vít Ondruch <vondruch@redhat.com> - 0.21.0-4
911945c
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2
911945c
bf4ffde
* Fri Dec 26 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.21.0-3
ee63891
- Install gem.build_complete on F-21 and move extension file to the
ee63891
  correct location (bug 1176450)
ee63891
06cb5b7
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.0-2
06cb5b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
06cb5b7
060ed9b
* Thu Jul 03 2014 Troy Dawson <tdawson@redhat.com> - 0.21.0-1
060ed9b
- Update to version 0.21.0
060ed9b
- Comment out the test until we get minitest/autorun figured out
060ed9b
c738742
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19.0-7
c738742
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c738742
d5eb88e
* Wed Feb 05 2014 Troy Dawson <tdawson@redhat.com> - 0.19.0-6
d5eb88e
- Misc packaging fixes (#1061552) Ken Dreyer
d5eb88e
69cac04
* Mon Jan 06 2014 Troy Dawson <tdawson@redhat.com> - 0.19.0-5
69cac04
- Misc spec file fixes (#1048958) Ken Dreyer
f23e2b0
- Change vendor patch to sed command
69cac04
536ae32
* Mon Sep 09 2013 Troy Dawson <tdawson@redhat.com> - 0.19.0-4
536ae32
- Update comments about test source
536ae32
- Fix zero length files in test
536ae32
536ae32
* Fri Sep 06 2013 Troy Dawson <tdawson@redhat.com> - 0.19.0-3
536ae32
- Added full test directory
536ae32
- use minitest for tests
536ae32
- Added .so file provides filter
536ae32
536ae32
* Thu Aug 22 2013 Troy Dawson <tdawson@redhat.com> - 0.19.0-2
536ae32
- remove vendor directory and patch gemspec to reflect that
536ae32
- export LIBGIT2_PATH before building to use system git2
536ae32
536ae32
* Mon Jul 22 2013 Troy Dawson <tdawson@redhat.com> - 0.19.0-1
536ae32
- Updated to latest release - 0.19.0
536ae32
- Cleaned up bad tests
536ae32
- Comment out check, due to bad exit code from successful tests
536ae32
536ae32
* Mon Jul 22 2013 Troy Dawson <tdawson@redhat.com> - 0.19.0-1
536ae32
- Updated to latest release - 0.19.0
536ae32
- Cleaned up bad tests
536ae32
536ae32
* Tue Jul 09 2013 Troy Dawson <tdawson@redhat.com> - 0.16.0-3
536ae32
- Change build section to use current ruby guidelines
536ae32
- move lib/rugged/rugged.so instead of ext/rugged/rugged.so
536ae32
- move rugged.so into the correct directory
536ae32
- cleanup test, now runs without problems
536ae32
536ae32
* Tue Jul 02 2013 Troy Dawson <tdawson@redhat.com> - 0.16.0-2
536ae32
- Make macro's more consistant
536ae32
- Remove extra rugged.so
536ae32
- Set correct permissions for rugged.so
536ae32
- Run test (thanks to Axilleas Pipinellis for this)
536ae32
- Add libgit2-devel to buildrequires - this causes the build to
536ae32
  use system libgit2 instead of bundled version.
536ae32
536ae32
* Mon Mar 18 2013 Troy Dawson <tdawson@redhat.com> - 0.16.0-1
536ae32
- Initial package