ShellCheck/ShellCheck.spec

180 lines
4.9 KiB
RPMSpec
Raw Normal View History

2013-12-04 22:43:09 +00:00
%global pkg_name ShellCheck
%ifnarch %{arm}
2014-09-04 09:19:26 +00:00
%global with_tests 1
%endif
# no useful debuginfo for Haskell packages without C sources
%global debug_package %{nil}
2013-12-04 22:43:09 +00:00
Name: %{pkg_name}
2014-09-04 09:19:26 +00:00
Version: 0.3.4
Release: 1%{?dist}
2013-12-04 22:43:09 +00:00
Summary: Tool for checking common errors in POSIX shell scripts
License: AGPLv3+
URL: http://www.shellcheck.net/about.html
Source0: http://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0: ShellCheck-skip-TemplateHaskell-on-ARM.patch
2013-12-04 22:43:09 +00:00
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: chrpath
2014-09-04 09:19:26 +00:00
BuildRequires: ghc-QuickCheck-devel
2013-12-04 22:43:09 +00:00
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-json-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-regex-compat-devel
# End cabal-rpm deps
2014-02-05 06:26:05 +00:00
BuildRequires: pandoc
2013-12-04 22:43:09 +00:00
%description
The goals of ShellCheck are:
- To point out and clarify typical beginner's syntax issues,
that causes a shell to give cryptic error messages.
- To point out and clarify typical intermediate level semantic problems,
that causes a shell to behave strangely and counter-intuitively.
- To point out subtle caveats, corner cases and pitfalls, that may cause an
advanced user's otherwise working script to fail under future circumstances.
%package -n ghc-%{name}
Summary: Haskell %{name} library
%description -n ghc-%{name}
This package provides the Haskell %{name} shared library.
%package -n ghc-%{name}-devel
Summary: Haskell %{name} library development files
Provides: ghc-%{name}-static = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
%description -n ghc-%{name}-devel
This package provides the Haskell %{name} library development files.
%prep
2014-09-04 09:19:26 +00:00
%setup -q
%ifarch %{arm}
%patch0 -p1 -b .orig
%endif
2013-12-04 22:43:09 +00:00
%build
2014-09-04 09:19:26 +00:00
LANG=en_US.utf8
2013-12-04 22:43:09 +00:00
%ghc_lib_build
pandoc -s -t man shellcheck.1.md -o shellcheck.1
2014-02-05 06:26:05 +00:00
2013-12-04 22:43:09 +00:00
%install
%ghc_lib_install
install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
2014-02-05 06:26:05 +00:00
2014-09-04 09:19:26 +00:00
%ghc_fix_dynamic_rpath shellcheck
2014-03-16 15:21:57 +00:00
2013-12-04 22:43:09 +00:00
%check
%if %{with tests}
2014-09-04 09:19:26 +00:00
%cabal test
%endif
2014-03-16 15:21:57 +00:00
2013-12-04 22:43:09 +00:00
%post -n ghc-%{name}-devel
%ghc_pkg_recache
%postun -n ghc-%{name}-devel
%ghc_pkg_recache
%files
%doc LICENSE
2014-08-30 09:49:43 +00:00
%doc README.md
2013-12-04 22:43:09 +00:00
%{_bindir}/shellcheck
2014-02-05 06:26:05 +00:00
%{_mandir}/man1/shellcheck.1*
2013-12-04 22:43:09 +00:00
%files -n ghc-%{name} -f ghc-%{name}.files
%doc LICENSE
2013-12-04 22:43:09 +00:00
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
2014-08-30 09:49:43 +00:00
%doc README.md
2013-12-04 22:43:09 +00:00
%changelog
2014-09-04 09:19:26 +00:00
* Thu Sep 11 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.4-1
- bumped to version 0.3.4
- switched to hackage for the source tarball
- tests are now driven by cabal
- skip tests on ARM since TemplateHaskell fails
2014-09-04 09:19:26 +00:00
2014-09-05 05:59:58 +00:00
* Fri Sep 5 2014 Jens Petersen <petersen@redhat.com> - 0.3.3-2
- reenable pandoc on ARM
2014-09-04 17:15:53 +00:00
* Thu Sep 04 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.3-1
- rebuilt after a dependency upgrade
2014-08-30 09:49:43 +00:00
* Sat Aug 30 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.3-0
- bumped to version 0.3.3
- removed upstreamed patch
2014-08-28 15:11:16 +00:00
* Thu Aug 28 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-9
- rebuilt after a dependency upgrade
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon Mar 17 2014 Jens Petersen <petersen@redhat.com> - 0.3.1-6
- fix shellcheck rpath instead of using ld.so.conf.d
- simplify doc files
2014-03-16 15:25:34 +00:00
* Sun Mar 16 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-5
2014-03-16 15:21:57 +00:00
- added missing ld config
* Sat Mar 01 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-4
- executable dynamically linked to the library (bug #1069048)
* Sun Feb 09 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-3
- removed Setup.hs, now available upstream
- stop building the man page on ARM, no pandoc (bug #992430)
- simpler workaroudn for bug #1052117
2014-02-05 06:26:05 +00:00
* Wed Feb 05 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-2
- build and install the man page
* Tue Feb 04 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-1
- bumped to version 0.3.1
- added a workaround for the Fedora haskell toolchain (bug #1052117)
2013-12-04 22:43:09 +00:00
* Tue Dec 03 2013 Dridi <dridi.boukelmoune@gmail.com> - 0.2.0-3
- rebuilt
* Tue Dec 03 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 0.2.0-3
- s/shell/POSIX shell/ in summary
- LICENSE and README co-owned by sub-packages
* Sat Nov 30 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 0.2.0-2
- added a patch for "for arg do" loops (d4bc0f6)
* Sat Nov 23 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 0.2.0-1
- spec file generated by cabal-rpm-0.8.6
- added the description from the README
- fixed broken bits from the generated spec