Пакет ruby-sinatra: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | %define pkgname sinatra %define sdir %ruby_sitelibdir/%pkgname Name: ruby-%pkgname Version: 1.4.8 Release: alt0.M80C.1 Epoch: 1 Summary: Classy web-development dressed in a DSL License: MIT/Ruby Group: Development/Ruby Url: https://github.com/sinatra/sinatra Packager: Ruby Maintainers Team <ruby@packages.altlinux.org> BuildArch: noarch Source: %pkgname-%version.tar Source1: rack-protection.tar Source2: sinatra-contrib.tar BuildRequires(pre): rpm-build-ruby BuildRequires: ruby-tool-setup Requires: ruby-rack >= 1.6.8 %filter_from_requires \,^ruby(rack/show_exceptions)$,d %description %summary %package -n ruby-rack-protection Summary: This gem protects against typical web attacks Group: Development/Ruby %description -n ruby-rack-protection This gem protects against typical web attacks. Should work for all Rack apps, including Rails. %package contrib Summary: Collection of common Sinatra extensions, semi-officially supported Group: Development/Ruby %description contrib Collection of common Sinatra extensions, semi-officially supported: - sinatra/capture: Let's you capture the content of blocks in templates. - sinatra/config_file: Allows loading configuration from yaml files. - sinatra/content_for: Adds Rails-style content_for helpers to Haml, Erb, Erubis and Slim. - sinatra/cookies: A cookies helper for reading and writing cookies. - sinatra/engine_tracking: Adds methods like haml? that allow helper methods to check whether they are called from within a template. - sinatra/json: Adds a #json helper method to return JSON documents. - sinatra/link_header: Helpers for generating link HTML tags and corresponding Link HTTP headers. Adds link, stylesheet and prefetch helper methods. - sinatra/multi_route: Adds ability to define one route block for multiple routes and multiple or custom HTTP verbs. - sinatra/namespace: Adds namespace support to Sinatra. - sinatra/respond_with: Choose action and/or template automatically depending on the incoming request. Adds helpers respond_to and respond_with. - sinatra/custom_logger: This extension allows you to define your own logger instance using +logger+ setting. That logger then will be available as #logger helper method in your routes and views. - sinatra/required_params: Ensure if required query parameters exist %package doc Summary: Documentation files for %name Group: Documentation BuildArch: noarch %description doc Documentation files for %{name}. %prep %setup -n %pkgname-%version tar xf %SOURCE1 tar xf %SOURCE2 for dir in . rack-protection sinatra-contrib; do pushd "$dir" %update_setup_rb popd done %build for dir in . rack-protection sinatra-contrib; do pushd "$dir" %ruby_config %ruby_build popd done %install for dir in . rack-protection sinatra-contrib; do pushd "$dir" %ruby_install %rdoc lib/ popd done # Remove unnecessary files rm -f %buildroot%ruby_ri_sitedir/{Rack/cdesc-Rack.ri,Rack/Builder/cdesc-Builder.ri,Object/cdesc-Object.ri,cache.ri,created.rid} %check %ruby_test_unit -Ilib:test test %files %doc README* %sdir.rb %sdir %exclude %sdir/capture* %exclude %sdir/config_file* %exclude %sdir/content_for* %exclude %sdir/cookies* %exclude %sdir/engine_tracking* %exclude %sdir/json* #exclude %sdir/link_header* #exclude %sdir/multi_route* #exclude %sdir/namespace* #exclude %sdir/respond_with* #exclude %sdir/custom_logger* #exclude %sdir/required_params* %files -n ruby-rack-protection %doc rack-protection/*.md %ruby_sitelibdir/rack-protection.rb %ruby_sitelibdir/rack/protection* %files contrib %doc sinatra-contrib/*.md %sdir/capture* %sdir/config_file* %sdir/content_for* %sdir/cookies* %sdir/engine_tracking* %sdir/json* #sdir/link_header* #sdir/multi_route* #sdir/namespace* #sdir/respond_with* #sdir/custom_logger* #sdir/required_params* %files doc %ruby_ri_sitedir/* %changelog * Fri Aug 23 2019 Andrey Cherepanov <cas@altlinux.org> 1:1.4.8-alt0.M80C.1 - Backport new version to c8 branch. * Tue Jun 20 2017 Andrey Cherepanov <cas@altlinux.org> 1:1.4.8-alt1 - Downgrade version to work with old ruby-rack * Mon Jun 19 2017 Andrey Cherepanov <cas@altlinux.org> 2.0.0-alt2 - Build with ruby-rack 1.x * Tue Jun 13 2017 Andrey Cherepanov <cas@altlinux.org> 2.0.0-alt1 - Initial build for Sisyphus |