4
0
forked from pool/ShellCheck
2016-07-16 21:50:04 +00:00
committed by Git OBS Bridge
parent 502080723b
commit 8f2079d00a
2 changed files with 17 additions and 13 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 10 17:33:18 UTC 2016 - psimons@suse.com
- Update to version 0.4.4 revision 0 with cabal2obs.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat May 21 15:40:14 UTC 2016 - mimi.vx@gmail.com Sat May 21 15:40:14 UTC 2016 - mimi.vx@gmail.com

View File

@@ -17,24 +17,18 @@
%global pkg_name ShellCheck %global pkg_name ShellCheck
%bcond_with tests %bcond_with tests
Name: %{pkg_name}
Name: ShellCheck
Version: 0.4.4 Version: 0.4.4
Release: 0 Release: 0
Summary: Shell script analysis tool Summary: Shell script analysis tool
License: GPL-3.0+ License: GPL-3.0+
Group: Development/Languages/Other Group: Development/Languages/Other
Url: https://hackage.haskell.org/package/%{name} Url: https://hackage.haskell.org/package/%{name}
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps: # Begin cabal-rpm deps:
BuildRequires: chrpath BuildRequires: chrpath
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-containers-devel BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel BuildRequires: ghc-directory-devel
@@ -43,6 +37,8 @@ BuildRequires: ghc-mtl-devel
BuildRequires: ghc-parsec-devel BuildRequires: ghc-parsec-devel
BuildRequires: ghc-process-devel BuildRequires: ghc-process-devel
BuildRequires: ghc-regex-tdfa-devel BuildRequires: ghc-regex-tdfa-devel
BuildRequires: ghc-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# End cabal-rpm deps # End cabal-rpm deps
%description %description
@@ -57,7 +53,6 @@ causes a shell to behave strangely and counter-intuitively.
* To point out subtle caveats, corner cases and pitfalls, that may cause an * To point out subtle caveats, corner cases and pitfalls, that may cause an
advanced user's otherwise working script to fail under future circumstances. advanced user's otherwise working script to fail under future circumstances.
%package -n ghc-%{name} %package -n ghc-%{name}
Summary: Haskell %{name} library Summary: Haskell %{name} library
Group: System/Libraries Group: System/Libraries
@@ -65,35 +60,38 @@ Group: System/Libraries
%description -n ghc-%{name} %description -n ghc-%{name}
This package provides the Haskell %{name} shared library. This package provides the Haskell %{name} shared library.
%package -n ghc-%{name}-devel %package -n ghc-%{name}-devel
Summary: Haskell %{name} library development files Summary: Haskell %{name} library development files
Group: Development/Libraries/Other Group: Development/Libraries/Other
Requires: ghc-%{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version} Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version}
Requires: ghc-%{name} = %{version}-%{release}
%description -n ghc-%{name}-devel %description -n ghc-%{name}-devel
This package provides the Haskell %{name} library development files. This package provides the Haskell %{name} library development files.
%prep %prep
%setup -q %setup -q
%build %build
%ghc_lib_build %ghc_lib_build
%install %install
%ghc_lib_install %ghc_lib_install
%ghc_fix_dynamic_rpath shellcheck %ghc_fix_dynamic_rpath shellcheck
install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1 install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
%check %check
%if %{with tests} %if %{with tests}
%cabal test %{cabal} test
%endif %endif
%post -n ghc-%{name}-devel %post -n ghc-%{name}-devel
%ghc_pkg_recache %ghc_pkg_recache
@@ -113,5 +111,6 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.md
%changelog %changelog