Summary: Parse command-line parameters Name: getopt Version: 1.1.4 Release: 2 License: GPLv2 Group: System Environment/Base URL: http://software.frodo.looijaard.name/getopt/ Source0: http://software.frodo.looijaard.name/getopt/files/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: coreutils, make, gettext Requires: gettext %description Getopt(1) is a program to help shell scripts parse command-line parameters. %prep %setup -q %patch0 %build gmake %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} gmake DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/linux/bin cd usr/linux/bin ln -sf ../../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc README %doc getopt-parse.bash getopt-parse.tcsh %doc getopt-test.bash getopt-test.tcsh %{_bindir}/* %{_mandir}/man1/* /usr/linux/bin/* %changelog * Mon Jul 05 2010 Michael Perzl - 1.1.4-2 - removed dependency on gettext >= 0.17 * Thu Sep 04 2008 Michael Perzl - 1.1.4-1 - first version for AIX V5.1 and higher