%define ver 1.0.3 %define rel 1 Name: shflags Version: %{ver} Release: %{rel}%{?_dist_release} Summary: Simple handling of command-line flags in Bourne based Unix scripts Group: Development/Languages License: LGPLv2 URL: http://code.google.com/p/shflags/ Source0: http://shflags.googlecode.com/files/shflags-1.0.3.tgz BuildArch: noarch Requires: util-linux Vendor: Project Vine Distribution: Vine Linux Packager: iwaim %description Shell Flags (shFlags) is a library written to greatly simplify the handling of command-line flags in Bourne based Unix shell scripts (bash, dash, ksh, sh, zsh) on many Unix OSes (Linux, Solaris, Mac OS X, etc.). Most shell scripts use getopt for flags processing, but the different versions of getopt on various OSes make writing portable shell scripts difficult. shFlags instead provides an API that doesn't change across shell and OS versions so the script writer can be confident that the script will work. shFlags is a port of the google-gflags C++/Python library. %prep %setup -q # Make the examples non-executable.. we're putting them in /usr/share. chmod -x examples/*.sh %build # This section is empty because this package ccontains shell scripts # to be sourced: there's nothing to build %check pushd src sh shflags_test_defines.sh sh shflags_test_parsing.sh sh shflags_test_public.sh sh shflags_test_private.sh sh shflags_test.sh popd %install mkdir -p %{buildroot}/%{_datadir}/%{name} cp -p src/shflags %{buildroot}/%{_datadir}/%{name}/. %files %doc README.txt README.html doc/ examples/ %{_datadir}/%{name} %changelog * Fri Jan 18 2013 IWAI, Masaharu 1.0.3-1 - initial build for Vine Linux * Mon Dec 17 2012 Ralph Bean - 1.0.3-4 - Updated the license field to LGPLv2 after receiving feedback from upstream. * Sat Jul 21 2012 Fedora Release Engineering - 1.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jul 06 2012 Ralph Bean - 1.0.3-2 - Updated the license field to LGPLv2+ - Removed BuildRequires util-linux. Superfluous! - Ownership taken for %%{_datadir}/%%{name} - Copying with '-p' to preserve - Made examples non-exectuable. - Added %%check section. * Mon Jun 25 2012 Ralph Bean - 1.0.3-1 - Initial packaging for Fedora.