Package rpm-build-ruby: 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 | %def_disable check Name: rpm-build-ruby Epoch: 1 Version: 0.1.4.1 Release: alt1.M80P.1 Summary: RPM helper scripts to calculate Ruby dependencies License: GPLv2 Group: Development/Other Source: %name-%version.tar BuildArch: noarch Requires: ruby >= 1.9 Conflicts: rpm-build <= 4.0.4-alt24 AutoReq: yes,noruby Requires: ruby >= 1.9 Requires: ruby-stdlibs >= 1.9 Requires: %_bindir/rdoc Requires: %_bindir/testrb Requires: %_bindir/rake %{!?_disable_check:BuildRequires: ruby >= 1.9 ruby-stdlibs >= 1.9} %description These herlper scripts will look at ruby source files in your package, and will use this information to generate automatic Requires and Provides tags for the package. %prep %setup -q %install install -d -m 0755 %buildroot{%_rpmlibdir,%_rpmmacrosdir} install -p -m 0755 ruby.{req,prov}* %buildroot%_rpmlibdir/ install -p -m 0644 rubyreq.rb %buildroot%_rpmlibdir/ install -p -m 0644 ruby.macros %buildroot%_rpmmacrosdir/ruby install -p -m 0644 ruby.env %buildroot%_rpmmacrosdir/ %check ./test.sh %files %lang(ru) %doc README.ru %_rpmlibdir/ruby* %_rpmmacrosdir/* %changelog * Thu Oct 06 2016 Ivan Zakharyaschev <imz@altlinux.org> 1:0.1.4.1-alt1.M80P.1 - Set to catch any errors and notice them: %%_ruby_req_method strict. * Wed Sep 14 2016 Ivan Zakharyaschev <imz@altlinux.org> 1:0.1.4.1-alt1 - Tiny cleanup which is expected to have no noticeable effect: + more reliable failing in the shell scripts (set -o pipefail; set -eC). + .prov: normalize paths before any analysis (and not in the middle). * Mon Sep 12 2016 Ivan Zakharyaschev <imz@altlinux.org> 1:0.1.4-alt1 - ruby.prov: added a new case: std arch-independent gems (those included in the ruby package itself). * Thu Mar 13 2014 Led <led@altlinux.ru> 1:0.1.3-alt1 - 0.1.3: + ruby.macros: fix %%ruby_ri_sitedir macro * Wed Dec 12 2012 Led <led@altlinux.ru> 1:0.1.2-alt4 - removed temp symlink * Wed Dec 12 2012 Led <led@altlinux.ru> 1:0.1.2-alt3 - temporarily added symlink for rebuild ruby * Sun Dec 09 2012 Led <led@altlinux.ru> 1:0.1.2-alt2 - added requires of %%_bindir/testrb and %%_bindir/rake * Sat Dec 08 2012 Led <led@altlinux.ru> 1:0.1.2-alt1 - 0.1.2: + cleaned up + dropped ruby 1.8 support - cleaned up spec - updated Requires - added README.ru - disabled check * Fri Apr 08 2011 Timur Aitov <timonbl4@altlinux.org> 1:0.1.1-alt1 - Supported both 1.8.7 and 1.9.2 versions of ruby - Make difference between 1.8 and 1.9 * Wed Sep 09 2009 Alexey I. Froloff <raorn@altlinux.org> 1:0.1.0-alt2 - Tests moved to %%check section (bootstrap-friendly) * Mon Jul 06 2009 Alexey I. Froloff <raorn@altlinux.org> 1:0.1.0-alt1 - Updated for ruby 1.9 - Fixed typo in description (closes: #20624) - Stop processing on syntax error - Macros moved to %%_rpmmacrosdir * Sat Nov 01 2008 Sir Raorn <raorn@altlinux.ru> 1:0.0.4-alt1 - Parser rewritten without recursion (Kirill A. Shutemov) * Sun Aug 31 2008 Sir Raorn <raorn@altlinux.ru> 1:0.0.3-alt1 - Strip '.rb' extension from requires/provides to reduce apt cache size - Process "weak provides" for *.so modules too - Use files.req mechanism for directory requires (needs recent libruby) - New macros: + %%update_setup_rb: update setup.rb script from ruby-tool-setup package + %%ruby_test_unit: run tests with testrb script * Wed Apr 02 2008 Sir Raorn <raorn@altlinux.ru> 1:0.0.2-alt1 - "class << <var>" block support (kas@) * Fri Mar 28 2008 Sir Raorn <raorn@altlinux.ru> 1:0.0.1-alt1 - Initial build, based on rpm-build-perl |