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