# Generated from http_parser.rb-0.6.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name http_parser.rb Name: rubygem-%{gem_name} Version: 0.6.0 Release: 25%{?dist} Summary: Simple callback-based HTTP request/response parser License: MIT URL: https://github.com/tmm1/http_parser.rb Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Fedora ships with RSpec 3.0 and the Expectations have a different # name. Patch aims to update them to the newer Expectations. Patch0: http_parser.rb-0.6.0-rspec3.patch Patch1: http_parser.rb-0.6.0-usr_bin_ruby.patch BuildRequires: gcc BuildRequires: rubygems-devel BuildRequires: ruby-devel BuildRequires: rubygem-rspec %if 0%{?fedora} <= 20 || 0%{?el7} Provides: rubygem(%{gem_name}) = %{version} %endif %description Ruby bindings to http://github.com/joylent/http-parser and http://github.com/a2800276/http-parser.java. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %autosetup -n %{gem_name}-%{version} -p1 %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %if 0%{?fedora} || 0%{?rhel} >= 8 mkdir -p %{buildroot}%{gem_extdir_mri} cp -ar .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/ %else mkdir -p %{buildroot}%{gem_extdir_mri}/lib cp -ar .%{gem_instdir}/lib/ruby_http_parser.so %{buildroot}%{gem_extdir_mri}/lib %endif # Prevent dangling symlink in -debuginfo (rhbz#878863). rm -rf %{buildroot}%{gem_instdir}/ext/ rm -f %{buildroot}%{gem_instdir}/{.gitignore,.gitmodules,Gemfile.lock} # Run the test suite %check pushd .%{gem_instdir} # Workaround for issue https://github.com/tmm1/http_parser.rb/issues/27 export LC_ALL=en_US.UTF-8 rspec -Ilib -I%{buildroot}%{gem_extdir_mri} spec popd %files %dir %{gem_instdir} %{gem_libdir} %{gem_extdir_mri} %{gem_extdir_mri}/gem.build_complete %exclude %{gem_cache} %{gem_spec} %doc %{gem_instdir}/README.md %license %{gem_instdir}/LICENSE-MIT %doc %{gem_instdir}/Gemfile %files doc %doc %{gem_docdir} %{gem_instdir}/%{gem_name}.gemspec %{gem_instdir}/Rakefile %{gem_instdir}/spec %{gem_instdir}/bench %{gem_instdir}/tasks %changelog * Sat Jul 23 2022 Fedora Release Engineering - 0.6.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 27 2022 Mamoru TASAKA - 0.6.0-24 - F-36: rebuild against ruby31 - modernize spec file, especially move %%gem_install to %%build to fix FTBFS with package_notes * Fri Jan 21 2022 Fedora Release Engineering - 0.6.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.6.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.6.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 6 2021 Vít Ondruch - 0.6.0-20 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0 * Wed Aug 05 2020 Merlin Mathesius - 0.6.0-19 - Minor conditional fixes for ELN * Wed Jul 29 2020 Fedora Release Engineering - 0.6.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.6.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jan 18 2020 Mamoru TASAKA - 0.6.0-17 - F-32: rebuild against ruby27 * Fri Jul 26 2019 Fedora Release Engineering - 0.6.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.6.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jan 17 2019 Vít Ondruch - 0.6.0-14 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6 * Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 0.6.0-13 - Use C.UTF-8 locale See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot * Sat Jul 14 2018 Fedora Release Engineering - 0.6.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.6.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 20 2018 Björn Esser - 0.6.0-10 - Rebuilt for switch to libxcrypt * Thu Jan 11 2018 Vít Ondruch - 0.6.0-9 - Keep the 'gem.build_complete', otherwise RubyGems tries to recompile the binary extension. * Thu Jan 11 2018 Mamoru TASAKA - 0.6.0-8 - Enable rdoc generation again (fixed by ruby side) * Fri Jan 05 2018 Mamoru TASAKA - 0.6.0-7 - F-28: rebuild for ruby25 - Disabling rdoc generation for now to avoid segfault * Thu Aug 03 2017 Fedora Release Engineering - 0.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 10 2017 Vít Ondruch - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4 * Fri Sep 02 2016 Yanis Guenane - 0.6.0-2 - Patch the spec file to match key words in RSpec 3 * Mon Jan 05 2015 Graeme Gillies - 0.6.0-1 - Initial package