shflags.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Name: shflags
  2. Version: 1.0.3
  3. Release: 4%{?dist}
  4. Summary: Simple handling of command-line flags in Bourne based Unix scripts
  5. Group: Development/Languages
  6. License: LGPLv2
  7. URL: http://code.google.com/p/shflags/
  8. Source0: http://shflags.googlecode.com/files/shflags-1.0.3.tgz
  9. BuildArch: noarch
  10. Requires: util-linux
  11. %description
  12. Shell Flags (shFlags) is a library written to greatly simplify the handling of
  13. command-line flags in Bourne based Unix shell scripts (bash, dash, ksh, sh, zsh)
  14. on many Unix OSes (Linux, Solaris, Mac OS X, etc.).
  15. Most shell scripts use getopt for flags processing, but the different versions
  16. of getopt on various OSes make writing portable shell scripts difficult. shFlags
  17. instead provides an API that doesn't change across shell and OS versions so the
  18. script writer can be confident that the script will work.
  19. shFlags is a port of the google-gflags C++/Python library.
  20. %prep
  21. %setup -q
  22. # Make the examples non-executable.. we're putting them in /usr/share.
  23. chmod -x examples/*.sh
  24. %build
  25. # This section is empty because this package ccontains shell scripts
  26. # to be sourced: there's nothing to build
  27. %check
  28. pushd src
  29. sh shflags_test_defines.sh
  30. sh shflags_test_parsing.sh
  31. sh shflags_test_public.sh
  32. sh shflags_test_private.sh
  33. sh shflags_test.sh
  34. popd
  35. %install
  36. mkdir -p %{buildroot}/%{_datadir}/%{name}
  37. cp -p src/shflags %{buildroot}/%{_datadir}/%{name}/.
  38. %files
  39. %doc README.txt README.html doc/ examples/
  40. %{_datadir}/%{name}
  41. %changelog
  42. * Mon Dec 17 2012 Ralph Bean <rbean@redhat.com> - 1.0.3-4
  43. - Updated the license field to LGPLv2 after receiving feedback from upstream.
  44. * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
  45. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  46. * Fri Jul 06 2012 Ralph Bean <rbean@redhat.com> - 1.0.3-2
  47. - Updated the license field to LGPLv2+
  48. - Removed BuildRequires util-linux. Superfluous!
  49. - Ownership taken for %%{_datadir}/%%{name}
  50. - Copying with '-p' to preserve
  51. - Made examples non-exectuable.
  52. - Added %%check section.
  53. * Mon Jun 25 2012 Ralph Bean <rbean@redhat.com> - 1.0.3-1
  54. - Initial packaging for Fedora.