Package libshell: 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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 | %def_enable man Name: libshell Version: 0.4.13 Release: alt1 Summary: A library of shell functions License: GPL-2.0-or-later Group: Development/Other BuildArch: noarch Packager: Alexey Gladkov <legion@altlinux.ru> Url: https://github.com/legionus/libshell.git Source: %name-%version.tar %if_enabled man BuildRequires: scdoc %endif %description This package contains common functions for shell projects to increase code reuse. %package single Summary: A library of shell functions (single file) Group: Development/Other %description single This package contains common functions for shell projects to increase code reuse as single file. %package -n cgrep Epoch: 1 Summary: Simple program output colorifer Group: Text tools %description -n cgrep This package contains simple wrapper to colorize output from any programs. %prep %setup -q sed -i -e 's,^#!/bin/ash,#!/bin/sh,' \ utils/cgrep.in %build %make \ %{?_disable_man:SCDOC=} %install %make_install \ %{?_disable_man:SCDOC=} \ DESTDIR=%buildroot \ install %make_install \ %{?_disable_man:SCDOC=} \ DESTDIR=%buildroot \ install-single %check %make check %files /bin/* %exclude /bin/shell-lib %_datadir/%name %doc COPYING %if_enabled man %_man3dir/* %endif %files single /bin/shell-lib %files -n cgrep %_bindir/* %if_enabled man %_man1dir/* %endif %changelog * Wed Feb 08 2023 Alexey Gladkov <legion@altlinux.ru> 0.4.13-alt1 - More manpages fixes. * Wed Feb 07 2023 Alexey Gladkov <legion@altlinux.ru> 0.4.12-alt1 - Migrate cgrep manpage from help2man to scdoc (ALT#49315). - Add functions for operating with file locks (shell-locks). * Mon Jun 06 2022 Alexey Gladkov <legion@altlinux.ru> 0.4.11-alt1 - shell-version: + Fix version. * Thu Jun 02 2022 Alexey Gladkov <legion@altlinux.ru> 0.4.10-alt1 - shell-getopt: + Shellcheck fixes (thx Andrey Limachko). - shell-ini-config changes: + Improve ini-file parse (thx Andrey Limachko). - Other changes: + Add json parser. * Thu Mar 18 2021 Alexey Gladkov <legion@altlinux.ru> 0.4.9-alt1 - shell-args: + Properly handle an argument starting with a dash. * Mon Mar 16 2020 Alexey Gladkov <legion@altlinux.ru> 0.4.8-alt1 - shell-unittest changes: + Add option to hide successful tests - shell-run changes: + Improve compatibility with mksh - shell-cmdline changes: + Add another argument to cmdline_foreach() to indicate the difference between a flag and a parameter with an argument - shell-git-config changes: + Add git_config_foreach to list values for env parser - Other changes: + Add Travis CI + Add compatibility with ksh + Run tests with few shells + Enforce documentation of all public functions + Add verification by shellcheck + Use scdoc instead of md2man * Tue May 14 2019 Alexey Gladkov <legion@altlinux.org> 0.4.7-alt1 - Other changes: + shell-temp: Add docs + shell-git-config: Add functions to store values in memory + shell-temp: Turn off verbose * Thu Apr 04 2019 Alexey Gladkov <legion@altlinux.ru> 0.4.6-alt1 - New utilities: + shell-temp: New library to simplify creation of temporary directories - shell-signal changes: + Restore $? for every signal handler * Fri Dec 21 2018 Alexey Gladkov <legion@altlinux.ru> 0.4.5-alt1 - New version (0.4.5). - Make tests bash4 compatible. * Fri Oct 12 2018 Nikita Ermakov <arei@altlinux.org> 0.4.4-alt2 - Fixed color_message_test1, color_text_test1, and getopt_test001 tests. * Tue Apr 03 2018 Alexey Gladkov <legion@altlinux.ru> 0.4.4-alt1 - New version (0.4.4). - Make git_config_handler, git_config_parser public. * Thu Aug 03 2017 Alexey Gladkov <legion@altlinux.ru> 0.4.3-alt1 - New version (0.4.3). - shell-ini-config changes: + Do not add new line after deletion (ALT#33714). + Preserve spaces in comments. - shell-git-config changes: + Add includeIf support. - shell-var changes: + Add shell_var_is_number. * Fri Nov 18 2016 Alexey Gladkov <legion@altlinux.ru> 0.4.2-alt1 - New version (0.4.2). - Add more docs (ALT#17927). - New utilities: + shell-terminfo to simplify work with terminfo. + cgrep utility. - shell-getopt changes: + Fix encoding in comment. * Thu Jun 30 2016 Alexey Gladkov <legion@altlinux.ru> 0.4.1-alt2 - shell-ini-config changes: + Preserve file permissions (ALT#32139). * Tue Nov 24 2015 Alexey Gladkov <legion@altlinux.ru> 0.4.1-alt1 - New version (0.4.1). - shell-ini-config changes: + Return error if config file does not exist (ALT#31151). - shell-getopt changes: + Fix getopt option completion (ALT#31480). * Sat May 30 2015 Alexey Gladkov <legion@altlinux.ru> 0.4.0-alt1 - New version (0.4.0). - New utilities: + shell-git-config: New functions to read/write git-config-like config files. - shell-getopt changes: + Detect ambiguous long options properly (break compatibility). * Tue Feb 24 2015 Alexey Gladkov <legion@altlinux.ru> 0.3.0-alt1 - New version (0.3.0). - Fix bootstrap (ALT#29584). - shell-ini-config changes: + Add ini_config_is_set() function. + Take care about lines without values (ALT#30713). - shell-unittest changes: + Add TESTCASES variable to list individual testcases (ALT#27059). + Add TESTTRACE variable to run testcase in debug mode (ALT#27059). * Fri Nov 08 2013 Alexey Gladkov <legion@altlinux.ru> 0.2.0-alt1 - shell_var_trim: Check for empty string (ALT#29562). - Add missing sources. * Thu Nov 07 2013 Alexey Gladkov <legion@altlinux.ru> 0.1.9-alt1 - Add functions to daemonize process. - Add logger support. - Reimplement shell_var_trim function (ALT#29557). * Wed Nov 14 2012 Alexey Gladkov <legion@altlinux.ru> 0.1.8-alt1 - shell-ini-config changes: + Fix empty lines at EOF (ALT#27974). + Indentation in the ini-file can be configured by shell_ini_config_prefix (ALT#27915). * Sun Apr 01 2012 Alexey Gladkov <legion@altlinux.ru> 0.1.7-alt1 - Packaged -single subpackage with all libshell functions bundled into the single shell-lib file. - New utilities: + shell-cmdline: New functions to parse /proc/cmdline. - shell-error changes: + Add optional timestamp to messages. - shell-run changes: + Add SCRIPT_ERROR_FATAL var to control execution interrupt on error (thx Ildar Mulyukov). + Fix execution order of scripts in run_scripts() (thx Ildar Mulyukov). - shell-args changes: + Add opt_check_exec(). - Other changes: + Generate SYMS and DEPS files. * Wed Jul 27 2011 Alexey Gladkov <legion@altlinux.org> 0.1.6-alt1 - shell-ini-config changes (ALT#25946): + Fix comment formatting (thx Vladislav Zavjalov); + Add section if it is not exists (thx Vladislav Zavjalov); + Fix error at adding values to the last section (thx Vladislav Zavjalov); + Fix error of adding values into incorrect sections (thx Vladislav Zavjalov). * Sun May 15 2011 Alexey Gladkov <legion@altlinux.ru> 0.1.5-alt1 - shell-quote changes: + Fix depends. - shell-var changes: + Fix depends. + Fix shell_var_unquote function. - shell-ini-config changes: + Rewrite all functions in shell. - Other changes: + Update tests. - Spec: + Add check section. * Wed Nov 03 2010 Alexey Gladkov <legion@altlinux.org> 0.1.4-alt1 - shell-signal changes: + Fix return status and rewrite tests. - shell-source changes: + Remove bashisms. + Reduce size of internal function. - Other changes: + contrib: CRC32 implementation. * Thu Apr 29 2010 Alexey Gladkov <legion@altlinux.ru> 0.1.3-alt1 - shell-signal: Reimplement signal_handler function. - shell-ip-address: Add ipv4_ip_subnet, ipv4_mask2prefix and ipv4_prefix2mask functions. * Tue Nov 17 2009 Alexey Gladkov <legion@altlinux.ru> 0.1.2-alt1 - shell-unittest: Increase performance. - shell-unittest: Allow to set unittest_show_condition variable prior to executing test-running - shell-ip-address: Fix unbound variable. - shell-mail-address: .travel TLD is lost when shell_mail_address_strict is unset. - shell-getopt: Fix for FreeBSD-7.2. * Thu Oct 08 2009 Alexey Gladkov <legion@altlinux.ru> 0.1.1-alt1 - New utilities: + shell-run: New functions to scripts from directory. + shell-source: New functions to source shell code under some conditions. - shell-quote changes: + Allow \t as delimiter. - Other changes: + Protect IFS variable when 'set --' executing. * Fri Apr 24 2009 Alexey Gladkov <legion@altlinux.org> 0.1.0-alt2 - Fix shell-var installation. * Wed Apr 15 2009 Alexey Gladkov <legion@altlinux.org> 0.1.0-alt1 - New utilities: + shell-var: New functions to handle shell parameters. - shell-quote changes: + Major changes in quote_shell_args(). + Rewrite quote_shell_args() from scratch, to avoid the dangerous shell constructions. + Fix Usage for quote_shell_args. + Add quote_shell_args(). - shell-unittest changes: + Add default comment initialization. - shell-args changes: + parse_common_option(): Option --quiet cancels option --verbose. - Other changes: + Update COPYING. + UnitTest: Add tests for quote_shell_args() function. + shell_var_unquote(), string_quote_remove(): Fix "'" unquote for bash. * Fri Feb 27 2009 Alexey Gladkov <legion@altlinux.org> 0.0.9-alt2 - shell*-config changes: + Fix dependency. * Thu Feb 19 2009 Alexey Gladkov <legion@altlinux.org> 0.0.9-alt1 - shell-getopt changes: + preserves the options order. - Other changes: + Add .gear/changelog file. + contrib/shell-sort: Implementation of sorting the array. + contrib/shell-array: Reimplement arrays. * Wed Dec 03 2008 Alexey Gladkov <legion@altlinux.ru> 0.0.8-alt1 - shell-getopt changes: + Fix regression. - Other changes: + shell-quote: *_variable(): Fix internal namespace. + Add tests for quote_sed_regexp_variable() and quote_shell_variable(). * Sun Nov 30 2008 Alexey Gladkov <legion@altlinux.ru> 0.0.7-alt1 - shell-getopt changes: + getopt(): OPTIND should be local. + Fix messages compatibility with getopt(1). - shell-signal changes: + signal_handler(): Fix SIG_DFL special action. + signal_handler(): Remove SIG prefix from a signal symbolic name. + signal_handler(): Fix quoting. + module is no longer a experimental. - shell-quote changes: + Add quote_shell_variable() and quote_sed_regexp_variable() functions. + Use an internal quoting function to avoid unnecessary subshells. - Documentation changes: + libshell.man: Add shell-error. + shell-error.man: Add man-page for shell-error. + libshell.man: Add libshell man-page. - Other changes: + Add makefile. + Add unit tests for shell-signal. * Mon Sep 29 2008 Alexey Gladkov <legion@altlinux.ru> 0.0.6-alt1 - New utilities: + shell-ini-config: New functions to read/write ini-like config files. + shell-signal: Add signal handling functions (experimental). - shell-getopt changes: + Add env variables desciption. - shell-unittest changes: + registerTests argument is optional. + assertTrue() and assertFalse() should always display message if test failed. + Add new function to able register test functions automatically. + appendTests(): test function could be registered only once. + Add unittest_show_condition parameter. + runUnitTests should return 1 if some tests has failed. - shell-ip-address changes: + Add regular expression to IP address validation. * Thu Jun 05 2008 Alexey Gladkov <legion@altlinux.ru> 0.0.5-alt1 - Add shell-unittest for writing Unit tests. * Wed May 28 2008 Alexey Gladkov <legion@altlinux.ru> 0.0.4-alt1 - Add shell-ip-address to IP address validation; - Add shell-mail-address to mail address validation; - shell-getopt: + Handle first '-' in short options; + Fix POSIXLY_CORRECT mode. * Thu Mar 13 2008 Alexey Gladkov <legion@altlinux.ru> 0.0.3-alt1 - shell-getopt: getopt(): + Add --alternative handle; + Allow empty arguments; + Improve getopt(1) compatibility; + Ignore first '-' in options. - shell-config: + Add shell_config_del() and shell_config_comment() functions. * Sun Mar 09 2008 Alexey Gladkov <legion@altlinux.ru> 0.0.2-alt4 - shell-getopt: Move getopt(), getsubopt(), getopts() and getoptex() from experimental state. - shell-quote: Move string_quote_remove() from experimental state. * Wed Feb 27 2008 Alexey Gladkov <legion@altlinux.ru> 0.0.2-alt2 - shell-config: shell_config_set(): + Fix value quoting. - shell-getopt: getopt(): + Fix GETOPT_ALLOW_UNKNOWN=1; + Fix return codes; + Fix params handling. * Fri Feb 22 2008 Alexey Gladkov <legion@altlinux.ru> 0.0.2-alt1 - Add shell-version to trac API changes. - Add shell-getopt. This is getopts(1), getopt(1) and getsubopt(3) shell implementation (if __libshell_experimental is set). - Rename shell-regexp to shell-quote. - shell-quote: + Add string_quote_remove() to remove ' or " symbols from start and end of string (if __libshell_experimental is set). + Remove unquote_sed_regexp(), unquote_shell() functions. * Mon Jan 28 2008 Alexey Gladkov <legion@altlinux.ru> 0.0.1-alt4 - Add shell-config to read and write shell-like config files: + shell-config: shell_config_get() read value from config file; + shell-config: shell_config_set() change or write value to config file; - shell-args: + opt_check_read(), opt_check_dir() Fix error message. - shell-regexp: + Add new functions: unquote_sed_regexp(), unquote_shell(). * Thu Sep 20 2007 Alexey Gladkov <legion@altlinux.ru> 0.0.1-alt3 - Workaround quoting for ash. * Fri Jul 06 2007 Alexey Gladkov <legion@altlinux.ru> 0.0.1-alt2 - shell-error: Rename info() to message(). * Thu Feb 22 2007 Alexey Gladkov <legion@altlinux.ru> 0.0.1-alt1 - Initial revision. |