# Generated from apipie-rails-0.0.13.gem by gem2rpm -*- rpm-spec -*- %global gem_name apipie-rails Name: rubygem-%{gem_name} Version: 0.8.1 Release: 3%{?dist} Summary: Rails REST API documentation tool # The project itself is MIT # For ASL 2.0, see https://github.com/Apipie/apipie-rails/issues/66 # (bundled JS files under app/public) License: MIT AND Apache-2.0 URL: http://github.com/Apipie/apipie-rails Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Patch0, Patch1 were committed in https://github.com/Apipie/apipie-rails/pull/807 # and will be included in the next release # Ruby 3.2 removes Fixnum, use Integer Patch0: apipie-rails-0.8.1-ruby32-Fixnum-removal.patch # Ruby 3.2 removes File.exists? , use File.exist? Patch1: apipie-rails-0.8.1-ruby32-File_exist-removal.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: %{_bindir}/rspec BuildRequires: rubygem(railties) BuildRequires: rubygem(rails-controller-testing) BuildRequires: rubygem(rspec-rails) # app/public/apipie/javascripts/bundled/jquery.js Provides: bundled(js-jquery1) = 1.12.4 BuildArch: noarch %description Apipie-rails is a DSL and Rails engine for documenting your RESTful API. Instead of traditional use of #comments, Apipie lets you describe the code, through the code. This brings advantages like: * No need to learn yet another syntax, you already know Ruby, right? * Possibility of reusing the docs for other purposes (such as validation) * Easier to extend and maintain (no string parsing involved) * Possibility of reusing other sources for documentation purposes (such as routes etc.) The documentation is available from within your app (by default under the /apipie path.) In development mode, you can see the changes as you go. It's markup language agnostic, and even provides an API for reusing the documentation data in JSON. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %patch0 -p1 %patch1 -p1 %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}/ # Remove empty .gitkeep files, that rpmlint complains about, we don't need # them in RPMs. find %{buildroot}%{gem_instdir}/spec -type f -name '.gitkeep' -exec rm {} \; %check pushd .%{gem_instdir} # Don't use Bundler. sed -i "/require 'bundler\/setup'/ s/^/#/" spec/spec_helper.rb sed -i "/Bundler.require/ s/^/#/" spec/dummy/config/application.rb # We don't have json-schema in Fedora ATM :/ # https://bugzilla.redhat.com/show_bug.cgi?id=1675932 for f in \ spec/controllers/apipies_controller_spec.rb \ spec/lib/swagger/rake_swagger_spec.rb do sed -i "/json-schema/ s/^/#/" $f sed -i "/JSON::Validator/ s/^/#/" $f done mv spec/lib/swagger/response_validation_spec.rb{,.disable} rspec -Ispec/dummy/components/test_engine/lib -rrails-controller-testing spec popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.* %license %{gem_instdir}/APACHE-LICENSE-2.0 %license %{gem_instdir}/MIT-LICENSE %{gem_instdir}/app %{gem_instdir}/config %{gem_libdir} # exclude useless rel-eng directory %exclude %{gem_instdir}/rel-eng %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/NOTICE %doc %{gem_instdir}/PROPOSAL_FOR_RESPONSE_DESCRIPTIONS.md %doc %{gem_instdir}/README.rst %{gem_instdir}/Rakefile %{gem_instdir}/apipie-rails.gemspec %{gem_instdir}/gemfiles %{gem_instdir}/images %{gem_instdir}/spec %changelog * Fri Jan 20 2023 Fedora Release Engineering - 0.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Jan 16 2023 Mamoru TASAKA - 0.8.1-2 - Fix for ruby3.2 Fixnum removal in favor of Integer - Fix for ruby3.2 File.exists? removal in favor of File.exist? * Wed Aug 24 2022 Vít Ondruch - 0.8.1-1 - Update to apipie-rails 0.8.1. Resolves: rhbz#1985794 Resolves: rhbz#2113687 * Sat Jul 23 2022 Fedora Release Engineering - 0.5.18-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.5.18-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.5.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 11 2021 Vít Ondruch - 0.5.18-3 - Fix Rails 6.1 compatibility. * Thu Jan 28 2021 Vít Ondruch - 0.5.18-2 - Fix Ruby 3.0 compatibility. * Wed Jan 27 2021 Fedora Release Engineering - 0.5.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Aug 13 2020 Vít Ondruch - 0.5.18-1 - Update to apipie-rails 0.5.18. Resolves: rhbz#1560983 * Thu Aug 13 2020 Vít Ondruch - 0.5.5-8 - Bundle js-jquery1, because the package was dropped from Fedora. Resolves: rhbz#1866730 Related: rhbz#1799550 * Wed Jul 29 2020 Fedora Release Engineering - 0.5.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.5.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.5.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.5.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.5.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.5.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Nov 14 2017 Vít Ondruch - 0.5.5-1 - Update to apipie-rails 0.5.5. * Thu Jul 27 2017 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue May 02 2017 Dominic Cleal - 0.5.1-1 - Update to apipie-rails 0.5.1. * Mon Feb 20 2017 Vít Ondruch - 0.4.0-1 - Update to apipie-rails 0.4.0. * Sat Feb 11 2017 Fedora Release Engineering - 0.3.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Apr 01 2016 Jun Aruga - 0.3.6-1 - Update version to 0.3.6 to test suite for Ruby 2.3 compatibility. (rhbz#1308005) * Thu Feb 04 2016 Fedora Release Engineering - 0.3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jul 01 2015 Vít Ondruch - 0.3.4-1 - Update to apipie-rails 0.3.4. * Thu Jun 18 2015 Fedora Release Engineering - 0.0.22-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 0.0.22-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Aug 26 2013 Vít Ondruch - 0.0.22-1 - Update to apipie-rails 0.0.22. * Sun Aug 04 2013 Fedora Release Engineering - 0.0.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Mar 28 2013 Vít Ondruch - 0.0.21-1 - Update to apipie-rails 0.0.21. * Thu Mar 28 2013 Vít Ondruch - 0.0.13-4 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 0.0.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 20 2012 Bohuslav Kabrda - 0.0.13-2 - Fixed some file permission issues. - Keep the specs in -doc subpackage. - Run the tests without git. - Add runtime dependency on rubygem(rails). * Tue Nov 20 2012 Bohuslav Kabrda - 0.0.13-1 - Initial package