Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > by-pkgid > b7845494c29db47ce350db0be8c47870 > files > 1

shflags-1.2.3-3.mga9.src.rpm

Name:       shflags
Version:    1.2.3
Release:    %mkrel 3
Summary:    Simple handling of command-line flags in Bourne based Unix scripts

Group:      Development/Other
License:    ASL 2.0
URL:        https://github.com/kward/shflags
Source0:    https://github.com/kward/shflags/archive/v%{version}.tar.gz

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 mostly empty because this package ccontains shell scripts
# to be sourced: there's nothing to build
rm -f doc/LGPL-2.1 doc/LICENSE.shunit2

%check
pushd .
sh shflags_defines_test.sh
sh shflags_parsing_test.sh
sh shflags_public_test.sh
sh shflags_private_test.sh
popd

%install
mkdir -p %{buildroot}/%{_datadir}/%{name}
cp -p shflags %{buildroot}/%{_datadir}/%{name}/.

%files
%doc README.md doc/ examples/
%{_datadir}/%{name}



%changelog
* Mon Mar 21 2022 umeabot <umeabot> 1.2.3-3.mga9
+ Revision: 1811120
- Mageia 9 Mass Rebuild

* Fri Feb 14 2020 umeabot <umeabot> 1.2.3-2.mga8
+ Revision: 1520463
- Mageia 8 Mass Rebuild

* Thu Nov 22 2018 shlomif <shlomif> 1.2.3-1.mga7
+ Revision: 1333309
- New version 1.2.3

* Wed Sep 19 2018 umeabot <umeabot> 1.0.3-10.mga7
+ Revision: 1275419
- Mageia 7 Mass Rebuild

* Sat Feb 06 2016 umeabot <umeabot> 1.0.3-9.mga6
+ Revision: 940691
- Mageia 6 Mass Rebuild

* Wed Oct 15 2014 umeabot <umeabot> 1.0.3-8.mga5
+ Revision: 746383
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1.0.3-7.mga5
+ Revision: 689137
- Mageia 5 Mass Rebuild

* Tue Feb 04 2014 shlomif <shlomif> 1.0.3-6.mga5
+ Revision: 580609
- Remove the licensing files - rpmlint did not like them
- Importing, based on the Fedora package


* Thu Jan 09 2014 Shlomi Fish <shlomif@cpan.org> - 1.0.3-6.mga4
- Adapted for Mageia

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Mon Dec 17 2012 Ralph Bean <rbean@redhat.com> - 1.0.3-4
- Updated the license field to LGPLv2 after receiving feedback from upstream.

* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jul 06 2012 Ralph Bean <rbean@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@redhat.com> - 1.0.3-1
- Initial packaging for Fedora.