[shflags] Initial import (#835275)

Ralph Bean ralph at fedoraproject.org
Sat Jul 7 13:59:51 UTC 2012


commit 1d481739bee61ff2957a11bf9d85e44063c9848f
Author: Ralph Bean <rbean at redhat.com>
Date:   Sat Jul 7 09:59:45 2012 -0400

    Initial import (#835275)

 .gitignore   |    1 +
 shflags.spec |   64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources      |    1 +
 3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d1749ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/shflags-1.0.3.tgz
diff --git a/shflags.spec b/shflags.spec
new file mode 100644
index 0000000..91de3c6
--- /dev/null
+++ b/shflags.spec
@@ -0,0 +1,64 @@
+Name:       shflags
+Version:    1.0.3
+Release:    2%{?dist}
+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
+
+%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 Jul 06 2012 Ralph Bean <rbean at redhat.com> - 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 <rbean at redhat.com> - 1.0.3-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..5fb4a0c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b4d7133696ec05b71b27d8df5e278f0f  shflags-1.0.3.tgz


More information about the scm-commits mailing list