File checkbashisms.spec of Package checkbashisms

#
# spec file for package checkbashisms
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           checkbashisms
Version:        20120516git
Release:        0
Summary:        Tool for Checking /bin/sh Scripts for Possible Bashisms
License:        GPL-2.0+
Group:          Development/Tools/Other
Url:            http://git.debian.org/?p=devscripts/devscripts.git
Requires:       perl = %{perl_version}
Source:         checkbashisms-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildArch:      noarch

%description
checkbashisms performs basic checks on /bin/sh shell scripts for the possible
presence of bashisms.  It takes the names of the shell scripts on the command
line, and outputs warnings if possible bashisms are detected.

%prep
%setup -q

%build

%install
install -D -p -m 0755 checkbashisms.pl %{buildroot}%{_bindir}/checkbashisms
install -D -p -m 0644 checkbashisms.1 %{buildroot}%{_mandir}/man1/checkbashisms.1

%files
%defattr(-,root,root,-)
%doc %{_mandir}/man1/checkbashisms.1*
%{_bindir}/checkbashisms

%changelog
openSUSE Build Service is sponsored by