2010-02-20 01:56:14 +00:00
|
|
|
%global pkg_name hlint
|
|
|
|
|
|
|
|
%global common_summary Haskell Source code suggestions
|
|
|
|
|
|
|
|
%global common_description Hlint gives suggestions on how to improve your source code.
|
|
|
|
|
|
|
|
# Haskell library dependencies:
|
|
|
|
%global ghc_pkg_deps ghc-cpphs-devel, ghc-haskell-src-exts-devel, ghc-uniplate-devel, ghc-hscolour-devel
|
|
|
|
|
|
|
|
%bcond_without shared
|
2010-07-27 03:38:58 +00:00
|
|
|
%bcond_without hscolour
|
2010-02-20 01:56:14 +00:00
|
|
|
|
|
|
|
# debuginfo is not useful for ghc
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
Name: %{pkg_name}
|
2010-11-29 01:27:46 +00:00
|
|
|
Version: 1.8.3
|
2010-12-05 08:56:04 +00:00
|
|
|
Release: 2%{?dist}
|
2010-02-20 01:56:14 +00:00
|
|
|
Summary: %{common_summary}
|
|
|
|
|
|
|
|
Group: Development/Languages
|
|
|
|
License: GPLv2
|
2010-07-27 03:38:58 +00:00
|
|
|
URL: http://hackage.haskell.org/package/%{name}
|
2010-02-20 01:56:14 +00:00
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2010-06-26 13:44:34 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2010-02-20 01:56:14 +00:00
|
|
|
# fedora ghc archs:
|
|
|
|
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
2010-06-26 13:44:34 +00:00
|
|
|
BuildRequires: ghc, ghc-doc, ghc-prof
|
2010-07-27 03:38:58 +00:00
|
|
|
BuildRequires: ghc-rpm-macros >= 0.8.1
|
|
|
|
%if %{with hscolour}
|
|
|
|
BuildRequires: hscolour
|
|
|
|
%endif
|
2010-02-20 01:56:14 +00:00
|
|
|
%{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")}
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2010-06-26 13:44:34 +00:00
|
|
|
%ghc_lib_build
|
2010-02-20 01:56:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2010-06-26 13:44:34 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%ghc_lib_install
|
2010-02-20 01:56:14 +00:00
|
|
|
|
2010-07-31 12:18:32 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
mv $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/hlint.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
|
2010-02-20 01:56:14 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
2010-11-29 01:27:46 +00:00
|
|
|
%ghc_binlib_package
|
2010-07-27 03:38:58 +00:00
|
|
|
|
|
|
|
|
2010-02-20 01:56:14 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
|
|
|
%attr(755,root,root) %{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}-%{version}
|
2010-07-31 12:18:32 +00:00
|
|
|
%{_mandir}/man1/%{name}*
|
2010-02-20 01:56:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2010-12-05 08:56:04 +00:00
|
|
|
* Sun Dec 5 2010 Jens Petersen <petersen@redhat.com> - 1.8.3-2
|
|
|
|
- rebuild
|
|
|
|
|
2010-11-29 01:27:46 +00:00
|
|
|
* Mon Nov 29 2010 Jens Petersen <petersen@redhat.com> - 1.8.3-1
|
|
|
|
- update to 1.8.3
|
|
|
|
|
2010-07-31 12:18:32 +00:00
|
|
|
* Sat Jul 31 2010 Jens Petersen <petersen@redhat.com> - 1.7.3-2
|
|
|
|
- move manpage to mandir
|
|
|
|
|
2010-07-27 03:38:58 +00:00
|
|
|
* Tue Jul 27 2010 Jens Petersen <petersen@redhat.com> - 1.7.3-1
|
|
|
|
- update to 1.7.3
|
|
|
|
- update to cabal2spec-0.22.2 and obsolete doc subpackage
|
|
|
|
- use hscolour
|
|
|
|
|
2010-06-26 13:44:34 +00:00
|
|
|
* Sat Jun 26 2010 Jens Petersen <petersen@redhat.com> - 1.7.2-1
|
|
|
|
- update to 1.7.2
|
|
|
|
- sync with cabal2spec-0.22
|
|
|
|
|
2010-02-20 01:56:14 +00:00
|
|
|
* Mon Feb 15 2010 Conrad Meyer <konrad@tylerc.org> - 1.6.20-1
|
|
|
|
- Bump to 1.6.20
|
|
|
|
- Remove LicenseClarification
|
|
|
|
|
|
|
|
* Sun Jan 10 2010 Conrad Meyer <konrad@tylerc.org> - 1.6.14-1
|
|
|
|
- Bump to 1.6.14
|
|
|
|
|
|
|
|
* Sat Nov 14 2009 Conrad Meyer <konrad@tylerc.org> - 1.6.12-1
|
|
|
|
- Bump to 1.6.12
|
|
|
|
- Fix dep to ghc-cpphs-devel
|
|
|
|
|
|
|
|
* Sun Nov 8 2009 Conrad Meyer <konrad@tylerc.org> - 1.6.11-2
|
|
|
|
- Add license clarification from author (changed license back to GPLv2).
|
|
|
|
|
|
|
|
* Thu Oct 29 2009 Conrad Meyer <konrad@tylerc.org> - 1.6.11-1
|
|
|
|
- Bump version.
|
|
|
|
|
|
|
|
* Fri Sep 11 2009 Conrad Meyer <konrad@tylerc.org> - 1.6.8-1
|
|
|
|
- Bump version.
|
|
|
|
|
|
|
|
* Fri Jul 17 2009 Conrad Meyer <konrad@tylerc.org> - 1.4-1
|
|
|
|
- Fixed BR on ghc-hscolour (to ghc-hscolour-devel).
|
|
|
|
- Version bumped.
|
|
|
|
- Add missing BR on ghc-rpm-macros.
|
|
|
|
|
|
|
|
* Mon Jan 12 2009 Conrad Meyer <konrad@tylerc.org> - 1.2-1
|
|
|
|
- initial packaging for Fedora created by cabal2spec
|