7
0
forked from pool/ShellCheck
2016-01-12 09:43:38 +00:00
committed by Git OBS Bridge
parent 264469109f
commit f92697d916
4 changed files with 12 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package ShellCheck
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,17 +15,18 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global pkg_name ShellCheck
%bcond_with tests
Name: ShellCheck
Version: 0.4.1
Version: 0.4.2
Release: 0
Summary: Shell script analysis tool
License: GPL-3.0+
Group: Development/Languages/Other
License: GPL-3.0+
Url: https://hackage.haskell.org/package/%{name}
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -79,31 +80,25 @@ This package provides the Haskell %{name} library development files.
%prep
%setup -q
%build
%ghc_lib_build
%install
%ghc_lib_install
%ghc_fix_dynamic_rpath shellcheck
install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
%check
%if %{with tests}
%cabal test
%endif
%post -n ghc-%{name}-devel
%ghc_pkg_recache
%postun -n ghc-%{name}-devel
%ghc_pkg_recache
%files
%defattr(-,root,root,-)
%doc LICENSE
@@ -111,14 +106,11 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
%{_bindir}/shellcheck
%{_mandir}/man1/shellcheck.1*
%files -n ghc-%{name} -f ghc-%{name}.files
%defattr(-,root,root,-)
%doc LICENSE
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%defattr(-,root,root,-)
%changelog