hlint/hlint.spec

472 lines
15 KiB
RPMSpec
Raw Permalink Normal View History

# generated by cabal-rpm-2.1.0 --subpackage
2020-06-04 11:29:24 +00:00
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
2012-01-05 04:04:23 +00:00
2010-02-20 01:56:14 +00:00
%global pkg_name hlint
2017-02-23 04:30:33 +00:00
%global pkgver %{pkg_name}-%{version}
%global ghclibparserex ghc-lib-parser-ex-9.2.0.4
%global derivingaeson deriving-aeson-0.2.9
%global subpkgs %{ghclibparserex} %{derivingaeson}
2020-02-22 05:42:53 +00:00
2010-02-20 01:56:14 +00:00
Name: %{pkg_name}
Version: 3.4.1
2020-02-22 05:42:53 +00:00
# can only be reset when all subpkgs bumped
Release: 1%{?dist}
Summary: Haskell source code suggestions
2010-02-20 01:56:14 +00:00
License: BSD-3-Clause
2015-04-03 04:09:51 +00:00
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
2017-02-23 04:30:33 +00:00
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2020-09-03 07:49:14 +00:00
Source1: https://hackage.haskell.org/package/%{ghclibparserex}/%{ghclibparserex}.tar.gz
Source2: https://hackage.haskell.org/package/%{derivingaeson}/%{derivingaeson}.tar.gz
Source3: https://hackage.haskell.org/package/%{pkgver}/%{name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
# ghc-lib-parser build fails on s390x
# https://bugzilla.redhat.com/show_bug.cgi?id=1806109
#ExcludeArch: s390x
2012-11-06 08:37:38 +00:00
# Begin cabal-rpm deps:
BuildRequires: dos2unix
2011-06-22 04:00:59 +00:00
BuildRequires: ghc-Cabal-devel
2020-02-22 05:42:53 +00:00
BuildRequires: ghc-rpm-macros-extra
BuildRequires: ghc-aeson-devel
BuildRequires: ghc-ansi-terminal-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-cmdargs-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-cpphs-devel
BuildRequires: ghc-data-default-devel
#BuildRequires: ghc-deriving-aeson-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-extra-devel
BuildRequires: ghc-file-embed-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-filepattern-devel
BuildRequires: ghc-ghc-devel
BuildRequires: ghc-ghc-boot-devel
BuildRequires: ghc-ghc-boot-th-devel
#BuildRequires: ghc-ghc-lib-parser-ex-devel
BuildRequires: ghc-hscolour-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-refact-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-uniplate-devel
BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-utf8-string-devel
BuildRequires: ghc-vector-devel
BuildRequires: ghc-yaml-devel
%if %{with ghc_prof}
BuildRequires: ghc-aeson-prof
BuildRequires: ghc-ansi-terminal-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-cmdargs-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-cpphs-prof
BuildRequires: ghc-data-default-prof
#BuildRequires: ghc-deriving-aeson-prof
BuildRequires: ghc-directory-prof
BuildRequires: ghc-extra-prof
2020-06-10 04:09:02 +00:00
BuildRequires: ghc-file-embed-prof
BuildRequires: ghc-filepath-prof
2020-06-10 04:09:02 +00:00
BuildRequires: ghc-filepattern-prof
BuildRequires: ghc-ghc-prof
BuildRequires: ghc-ghc-boot-prof
BuildRequires: ghc-ghc-boot-th-prof
2020-06-10 04:09:02 +00:00
#BuildRequires: ghc-ghc-lib-parser-ex-prof
BuildRequires: ghc-hscolour-prof
BuildRequires: ghc-process-prof
BuildRequires: ghc-refact-prof
BuildRequires: ghc-text-prof
BuildRequires: ghc-transformers-prof
BuildRequires: ghc-uniplate-prof
BuildRequires: ghc-unordered-containers-prof
2020-06-10 04:09:02 +00:00
BuildRequires: ghc-utf8-string-prof
BuildRequires: ghc-vector-prof
BuildRequires: ghc-yaml-prof
%endif
Requires: %{name}-common = %{version}-%{release}
2012-11-06 08:37:38 +00:00
# End cabal-rpm deps
2010-02-20 01:56:14 +00:00
%description
HLint gives suggestions on how to improve your source code.
%package common
Summary: %{name} common files
BuildArch: noarch
%description common
This package provides the %{name} common data files.
%package -n ghc-%{name}
Summary: Haskell %{name} library
Requires: %{name}-common = %{version}-%{release}
%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}
Provides: ghc-%{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
%endif
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
%description -n ghc-%{name}-devel
This package provides the Haskell %{name} library development files.
2010-02-20 01:56:14 +00:00
%if %{with haddock}
%package -n ghc-%{name}-doc
Summary: Haskell %{name} library documentation
2020-02-08 14:53:10 +00:00
BuildArch: noarch
2021-06-11 11:15:19 +00:00
Requires: ghc-filesystem
%description -n ghc-%{name}-doc
This package provides the Haskell %{name} library documentation.
%endif
%if %{with ghc_prof}
%package -n ghc-%{name}-prof
Summary: Haskell %{name} profiling library
Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release}
2020-02-08 14:53:10 +00:00
Supplements: (ghc-%{name}-devel and ghc-prof)
%description -n ghc-%{name}-prof
This package provides the Haskell %{name} profiling library.
%endif
2020-02-22 05:42:53 +00:00
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage -l BSD-3-Clause %{ghclibparserex}
%ghc_lib_subpackage -l BSD-3-Clause %{derivingaeson}
2020-02-22 05:42:53 +00:00
%endif
%global version %{main_version}
2010-02-20 01:56:14 +00:00
%prep
# Begin cabal-rpm setup:
%setup -q -a1 -a2
dos2unix -k -n %{SOURCE3} %{name}.cabal
# End cabal-rpm setup
2010-02-20 01:56:14 +00:00
%build
2020-07-20 08:05:33 +00:00
%ifarch armv7hl
# https://bugzilla.redhat.com/show_bug.cgi?id=1806116
%define cabal_configure_options --ghc-options="-O0"
%endif
# Begin cabal-rpm build:
2020-02-22 05:42:53 +00:00
%ghc_libs_build %{subpkgs}
%ghc_lib_build
# End cabal-rpm build
2010-02-20 01:56:14 +00:00
%install
# Begin cabal-rpm install
2020-02-22 05:42:53 +00:00
%ghc_libs_install %{subpkgs}
%ghc_lib_install
mv %{buildroot}%{_ghcdocdir}{,-common}
# End cabal-rpm install
2017-02-23 04:30:33 +00:00
2013-12-22 13:01:55 +00:00
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_datadir}/%{name}-%{version}/hlint.1 %{buildroot}%{_mandir}/man1
2010-07-31 12:18:32 +00:00
2010-02-20 01:56:14 +00:00
%files
# Begin cabal-rpm files:
2015-04-03 04:09:51 +00:00
%{_bindir}/%{name}
# End cabal-rpm files
2010-07-31 12:18:32 +00:00
%{_mandir}/man1/%{name}*
2010-02-20 01:56:14 +00:00
%files common
# Begin cabal-rpm files:
2016-09-28 09:32:27 +00:00
%license LICENSE
%doc CHANGES.txt README.md
%{_datadir}/%{pkgver}
# End cabal-rpm files
%files -n ghc-%{name} -f ghc-%{name}.files
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
2012-01-05 04:04:23 +00:00
%if %{with haddock}
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
2020-02-08 14:53:10 +00:00
%license LICENSE
%endif
%if %{with ghc_prof}
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
%endif
2010-02-20 01:56:14 +00:00
%changelog
* Sun Jan 22 2023 Jens Petersen <petersen@redhat.com> - 3.4.1-6
- https://hackage.haskell.org/package/hlint-3.4.1/changelog
- now depends on ghc instead of ghc-lib-parser
- refresh to cabal-rpm-2.1.0 with SPDX migration
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-06-07 07:40:54 +00:00
* Tue Jun 07 2022 Jens Petersen <petersen@redhat.com> - 3.2.8-4
- https://hackage.haskell.org/package/hlint-3.2.8/changelog
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Jan 08 2022 Miro Hrončok <mhroncok@redhat.com> - 3.2.7-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34
2021-08-05 05:05:40 +00:00
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 3.2.7-1
- update to 3.2.7
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-09-03 09:27:37 +00:00
* Thu Sep 3 2020 Jens Petersen <petersen@redhat.com> - 3.1.6-6
2020-09-03 07:49:14 +00:00
- ghc-lib-parser was packaged
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-07-20 08:05:33 +00:00
* Mon Jul 20 2020 Jens Petersen <petersen@redhat.com> - 3.1.6-4
- enable armv7hl with -O0
2020-07-16 12:10:59 +00:00
* Thu Jul 16 2020 Jens Petersen <petersen@redhat.com> - 3.1.6-3
- update to 3.1.6
2020-06-19 16:44:09 +00:00
* Fri Jun 19 2020 Jens Petersen <petersen@redhat.com> - 3.1.4-2
- update to 3.1.4
2020-06-10 04:09:02 +00:00
* Wed Jun 10 2020 Jens Petersen <petersen@redhat.com> - 2.2.11-1
- https://hackage.haskell.org/package/hlint-2.2.11/changelog
- depends on ghc-lib-parser-ex
2020-02-14 06:46:32 +00:00
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 2.1.26-1
- update to 2.1.26
- add ghc-lib-parser: exclude s390x (#1806109) and armv7hl (#1806116)
2020-02-14 06:46:32 +00:00
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Aug 02 2019 Jens Petersen <petersen@redhat.com> - 2.1.11-3
- add doc and prof subpackages (cabal-rpm-1.0.0)
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-02-21 07:11:36 +00:00
* Thu Feb 21 2019 Jens Petersen <petersen@redhat.com> - 2.1.11-1
- update to 2.1.11
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Oct 24 2018 Jens Petersen <petersen@redhat.com> - 2.1.8-2
- rebuild for static executable
2018-07-26 16:52:41 +00:00
* Thu Jul 26 2018 Jens Petersen <petersen@redhat.com> - 2.1.8-1
- update to 2.1.8
2018-07-22 14:42:16 +00:00
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 2.1.7-1
- update to 2.1.7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.11-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 1 2018 Jens Petersen <petersen@redhat.com> - 2.0.11-9
- refact is now packaged
* Tue Apr 10 2018 Jens Petersen <petersen@redhat.com> - 2.0.11-8
- datadir should be in ghc-hlint (#1564707)
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.11-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-24 13:53:13 +00:00
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 2.0.11-6
- update to 2.0.11
* Tue Jan 09 2018 Jens Petersen <petersen@redhat.com> - 2.0.9-5
- clock and extra packaged
* Tue Jan 2 2018 Jens Petersen <petersen@redhat.com> - 2.0.9-4
- update to 2.0.9
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.41-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.41-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-02-23 04:30:33 +00:00
* Thu Feb 23 2017 Jens Petersen <petersen@redhat.com> - 1.9.41-1
- update to 1.9.41
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.10-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jun 21 2016 Jens Petersen <petersen@redhat.com> - 1.9.10-4
- build fixes for newer ghc8 and newer hscolour
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-04-03 04:09:51 +00:00
* Fri Apr 3 2015 Jens Petersen <petersen@redhat.com> - 1.9.10-1
- update to 1.9.10
* Fri Aug 29 2014 Jens Petersen <petersen@redhat.com> - 1.9.4-1
- update to 1.9.4
- refresh to cblrpm-0.8.11
- update tag license to BSD
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.50-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.50-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-01-16 03:22:56 +00:00
* Thu Jan 16 2014 Jens Petersen <petersen@redhat.com> - 1.8.50-1
- update to 1.8.50
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.46-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Jun 11 2013 Jens Petersen <petersen@redhat.com> - 1.8.46-2
- update to new simplified Haskell Packaging Guidelines
* Tue Jun 11 2013 Jens Petersen <petersen@redhat.com> - 1.8.46-1
- update to 1.8.46
2013-03-12 16:07:50 +00:00
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 1.8.43-1
- update to 1.8.43
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.33-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-11-06 08:37:38 +00:00
* Tue Nov 06 2012 Jens Petersen <petersen@redhat.com> - 1.8.33-1
- update to 1.8.33 with cabal-rpm
2012-09-10 03:20:35 +00:00
* Mon Sep 10 2012 Jens Petersen <petersen@redhat.com> - 1.8.31-1
- 1.8.31
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.30-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-07-16 02:22:19 +00:00
* Mon Jul 16 2012 Jens Petersen <petersen@redhat.com> - 1.8.30-1
- update to 1.8.30
2012-07-16 02:16:58 +00:00
- change prof BRs to devel
2012-06-21 10:38:02 +00:00
* Thu Jun 21 2012 Jens Petersen <petersen@redhat.com> - 1.8.29-2
- rebuild
2012-06-09 14:27:35 +00:00
* Sat Jun 9 2012 Jens Petersen <petersen@redhat.com> - 1.8.29-1
- update to 1.8.29
2012-03-22 14:27:54 +00:00
* Thu Mar 22 2012 Jens Petersen <petersen@redhat.com> - 1.8.24-1
- update to 1.8.24
2012-02-07 16:55:38 +00:00
* Tue Feb 7 2012 Jens Petersen <petersen@redhat.com> - 1.8.23-1
- update to 1.8.23
2012-01-05 04:04:23 +00:00
* Thu Jan 5 2012 Jens Petersen <petersen@redhat.com> - 1.8.20-1
- update to 1.8.20 and cabal2spec-0.25.2
* Fri Oct 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.8.17-1.1
- rebuild with new gmp without compat lib
2011-10-15 09:22:44 +00:00
* Sat Oct 15 2011 Jens Petersen <petersen@redhat.com> - 1.8.17-1
- update to 1.8.17
2011-10-11 22:25:25 +00:00
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 1.8.13-1.1
- rebuild with new gmp
2011-07-22 05:40:41 +00:00
* Fri Jul 22 2011 Jens Petersen <petersen@redhat.com> - 1.8.13-1
- update to 1.8.13
2011-06-22 04:00:59 +00:00
* Wed Jun 22 2011 Jens Petersen <petersen@redhat.com> - 1.8.11-1
- update to 1.8.11
- BR ghc-Cabal-devel instead of ghc-prof and use ghc_arches (cabal2spec-0.23.2)
2011-03-11 13:02:57 +00:00
* Fri Mar 11 2011 Jens Petersen <petersen@redhat.com> - 1.8.7-1
- update to 1.8.7
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.8.3-6
- Enable build on sparcv9
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2011-01-22 15:19:29 +00:00
* Sun Jan 23 2011 Jens Petersen <petersen@redhat.com> - 1.8.3-4
- rebuild
2011-01-18 03:36:06 +00:00
* Tue Jan 18 2011 Jens Petersen <petersen@redhat.com> - 1.8.3-3
- update to cabal2spec-0.22.4
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
* 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
* 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