OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Getopt-GUI-Long?expand=0&rev=4
81 lines
2.4 KiB
RPMSpec
81 lines
2.4 KiB
RPMSpec
# norootforbuild
|
|
|
|
Name: perl-Getopt-GUI-Long
|
|
Version: 0.91
|
|
Release: 0
|
|
Summary: Getopt::Long Replacement supporting an optional GUI
|
|
# http://search.cpan.org/CPAN/authors/id/H/HA/HARDAKER/Getopt-GUI-Long-%{version}.tar.gz
|
|
Source: Getopt-GUI-Long-%{version}.tar.bz2
|
|
URL: http://search.cpan.org/~hardaker/Getopt-GUI-Long-%{version}/Long.pm
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
Requires: perl
|
|
BuildRequires: make perl perl-macros
|
|
|
|
%description
|
|
This module is a wrapper around Getopt::Long that extends the value of the
|
|
original Getopt::Long module to:
|
|
|
|
1) add a simple graphical user interface option screen if no arguments are
|
|
passed to the program. Thus, the arguments to actually use are built based on
|
|
the results of the user interface. If arguments were passed to the program, the
|
|
user interface is not shown and the program executes as it normally would and
|
|
acts just as if Getopt::Long::GetOptions had been called instead.
|
|
|
|
2) provide an auto-help mechanism such that -h and --help are handled
|
|
automatically. In fact, calling your program with -h will default to showing
|
|
the user a list of short-style arguments when one exists for the option.
|
|
Similarly --help will show the user a list of long-style when possible.
|
|
--help-full will list all potential arguments for an option (short and long
|
|
both).
|
|
|
|
It's designed to make the creation of graphical shells trivial without the
|
|
programmer having to think about it much as well as providing automatic
|
|
good-looking usage output without the programmer needing to write usage()
|
|
functions.
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Wes Hardaker <hardaker@users.sourceforge.net>
|
|
|
|
%prep
|
|
%setup -q -n "Getopt-GUI-Long-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%clean
|
|
%__rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
%doc examples
|
|
%dir %{perl_vendorlib}/Getopt
|
|
%dir %{perl_vendorlib}/Getopt/GUI
|
|
%{perl_vendorlib}/Getopt/GUI/Long.pm
|
|
%dir %{perl_vendorarch}/auto/Getopt
|
|
%dir %{perl_vendorarch}/auto/Getopt/GUI
|
|
%{perl_vendorarch}/auto/Getopt/GUI/Long
|
|
%doc %{perl_man3dir}/Getopt::GUI::Long.%{perl_man3ext}*
|
|
|
|
%changelog
|
|
* Thu Sep 10 2009 Pascal Bleser <pascal.bleser@opensuse.org> 0.91
|
|
- new package
|
|
|
|
# vim: set sw=3 ts=3 noet:
|
|
# Local Variables:
|
|
# mode: rpm-spec
|
|
# tab-width: 3
|
|
# End:
|