Package gem-absolute-time: 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 | %define _unpackaged_files_terminate_build 1 %def_enable check %def_disable doc %def_enable devel %define gemname absolute_time Name: gem-absolute-time Version: 1.0.0.2 Release: alt0.1 Summary: Reliable monotonically increasing timer for measuring time intervals License: BSD Group: Development/Ruby Url: https://github.com/bwbuchanan/absolute_time Vcs: https://github.com/bwbuchanan/absolute_time.git Packager: Ruby Maintainers Team <ruby@packages.altlinux.org> Source: %name-%version.tar BuildRequires(pre): rpm-build-ruby %add_findreq_skiplist %ruby_gemslibdir/**/* %add_findprov_skiplist %ruby_gemslibdir/**/* %ruby_alias_names absolute_time,absolute-time Provides: gem(absolute_time) = 1.0.0.2 %ruby_use_gem_version absolute_time:1.0.0.2 %description This gem provides a monotonically increasing timer to permit safe measurement of time intervals. Using Time.now for measuring intervals is not reliable (and sometimes unsafe) because the system clock may be stepped forwards or backwards between the two measurements, or may be running slower or faster than real time in order to effect clock synchronization with UTC. The module uses OS-specific functions such as mach_absolute_time() and clock_gettime() to access the system tick counter. The time values returned by this module cannot be interpreted as real time clock values; they are only useful for comparison with another time value from this module. %if_enabled doc %package -n gem-absolute-time-doc Version: 1.0.0.2 Release: alt0.1 Summary: Reliable monotonically increasing timer for measuring time intervals documentation files Summary(ru_RU.UTF-8): Файлы сведений для самоцвета absolute_time Group: Development/Documentation BuildArch: noarch Requires: gem(absolute_time) = 1.0.0.2 %description -n gem-absolute-time-doc Reliable monotonically increasing timer for measuring time intervals documentation files. %description -n gem-absolute-time-doc -l ru_RU.UTF-8 Файлы сведений для самоцвета absolute_time. %endif %if_enabled devel %package -n gem-absolute-time-devel Version: 1.0.0.2 Release: alt0.1 Summary: Reliable monotonically increasing timer for measuring time intervals development package Summary(ru_RU.UTF-8): Файлы для разработки самоцвета absolute_time Group: Development/Ruby BuildArch: noarch Requires: gem(absolute_time) = 1.0.0.2 %description -n gem-absolute-time-devel Reliable monotonically increasing timer for measuring time intervals development package. %description -n gem-absolute-time-devel -l ru_RU.UTF-8 Файлы для разработки самоцвета absolute_time. %endif %prep %setup %build %ruby_build %install %ruby_install %check %ruby_test %files %doc README.md %ruby_gemspec %ruby_gemlibdir %ruby_gemextdir %if_enabled doc %files -n gem-absolute-time-doc %doc README.md %ruby_gemdocdir %endif %if_enabled devel %files -n gem-absolute-time-devel %doc README.md %endif %changelog * Tue Jul 23 2024 Pavel Skrylev <majioa@altlinux.org> 1.0.0.2-alt0.1 - ^ 1.0.0 -> 1.0.0p2 * Sun Feb 05 2023 Pavel Skrylev <majioa@altlinux.org> 1.0.0-alt1 - + packaged gem with Ruby Policy 2.0 |