|
|
|
@ -1,33 +1,47 @@
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
# generated by cabal-rpm-2.1.0 --subpackage
|
|
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
|
|
|
|
|
|
|
|
|
%global pkg_name shake
|
|
|
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
%endif
|
|
|
|
|
%global heaps heaps-0.4
|
|
|
|
|
%global jsdgtable js-dgtable-0.5.2
|
|
|
|
|
%global subpkgs %{heaps} %{jsdgtable}
|
|
|
|
|
|
|
|
|
|
# no useful debuginfo for Haskell packages without C sources
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
# failing to build
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
Name: %{pkg_name}
|
|
|
|
|
Version: 0.13.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Make-like build system
|
|
|
|
|
Version: 0.19.7
|
|
|
|
|
# can only be reset when all subpkgs bumped
|
|
|
|
|
Release: 25%{?dist}
|
|
|
|
|
Summary: Build system library, like Make, but more accurate dependencies
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: http://hackage.haskell.org/package/%{name}
|
|
|
|
|
Source0: http://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
Url: https://hackage.haskell.org/package/%{name}
|
|
|
|
|
# Begin cabal-rpm sources:
|
|
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
|
|
Source1: https://hackage.haskell.org/package/%{heaps}/%{heaps}.tar.gz
|
|
|
|
|
Source2: https://hackage.haskell.org/package/%{jsdgtable}/%{jsdgtable}.tar.gz
|
|
|
|
|
# End cabal-rpm sources
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
|
BuildRequires: ghc-rpm-macros-extra
|
|
|
|
|
BuildRequires: ghc-base-devel
|
|
|
|
|
BuildRequires: ghc-binary-devel
|
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
|
BuildRequires: ghc-deepseq-devel
|
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
|
BuildRequires: ghc-extra-devel
|
|
|
|
|
BuildRequires: ghc-filepath-devel
|
|
|
|
|
BuildRequires: ghc-filepattern-devel
|
|
|
|
|
BuildRequires: ghc-hashable-devel
|
|
|
|
|
BuildRequires: ghc-old-time-devel
|
|
|
|
|
#BuildRequires: ghc-heaps-devel
|
|
|
|
|
#BuildRequires: ghc-js-dgtable-devel
|
|
|
|
|
BuildRequires: ghc-js-flot-devel
|
|
|
|
|
BuildRequires: ghc-js-jquery-devel
|
|
|
|
|
BuildRequires: ghc-primitive-devel
|
|
|
|
|
BuildRequires: ghc-process-devel
|
|
|
|
|
BuildRequires: ghc-random-devel
|
|
|
|
|
BuildRequires: ghc-time-devel
|
|
|
|
@ -35,39 +49,41 @@ BuildRequires: ghc-transformers-devel
|
|
|
|
|
BuildRequires: ghc-unix-devel
|
|
|
|
|
BuildRequires: ghc-unordered-containers-devel
|
|
|
|
|
BuildRequires: ghc-utf8-string-devel
|
|
|
|
|
%if %{with ghc_prof}
|
|
|
|
|
BuildRequires: ghc-base-prof
|
|
|
|
|
BuildRequires: ghc-binary-prof
|
|
|
|
|
BuildRequires: ghc-bytestring-prof
|
|
|
|
|
BuildRequires: ghc-deepseq-prof
|
|
|
|
|
BuildRequires: ghc-directory-prof
|
|
|
|
|
BuildRequires: ghc-extra-prof
|
|
|
|
|
BuildRequires: ghc-filepath-prof
|
|
|
|
|
BuildRequires: ghc-filepattern-prof
|
|
|
|
|
BuildRequires: ghc-hashable-prof
|
|
|
|
|
#BuildRequires: ghc-heaps-prof
|
|
|
|
|
#BuildRequires: ghc-js-dgtable-prof
|
|
|
|
|
BuildRequires: ghc-js-flot-prof
|
|
|
|
|
BuildRequires: ghc-js-jquery-prof
|
|
|
|
|
BuildRequires: ghc-primitive-prof
|
|
|
|
|
BuildRequires: ghc-process-prof
|
|
|
|
|
BuildRequires: ghc-random-prof
|
|
|
|
|
BuildRequires: ghc-template-haskell-prof
|
|
|
|
|
BuildRequires: ghc-time-prof
|
|
|
|
|
BuildRequires: ghc-transformers-prof
|
|
|
|
|
BuildRequires: ghc-unix-prof
|
|
|
|
|
BuildRequires: ghc-unordered-containers-prof
|
|
|
|
|
BuildRequires: ghc-utf8-string-prof
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
|
%endif
|
|
|
|
|
Requires: %{name}-common = %{version}-%{release}
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Shake is a Haskell library for writing build systems - designed as a
|
|
|
|
|
replacement for 'make'. See "Development.Shake" for an introduction, including
|
|
|
|
|
an example. Further examples are included in the Cabal tarball, under the
|
|
|
|
|
'Examples' directory. The homepage contains links to a user manual, an academic
|
|
|
|
|
paper and further information: <https://github.com/ndmitchell/shake>
|
|
|
|
|
|
|
|
|
|
This package provides the shake tool which can handle most ninja files
|
|
|
|
|
faster than ninja and simple makefiles.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
an example. The homepage contains links to a user manual, an academic paper and
|
|
|
|
|
further information: <https://shakebuild.com>
|
|
|
|
|
|
|
|
|
|
To use Shake the user writes a Haskell program that imports
|
|
|
|
|
"Development.Shake", defines some build rules, and calls the
|
|
|
|
@ -82,57 +98,222 @@ including seamless support for generated files, and dependencies on system
|
|
|
|
|
information (e.g. compiler version).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%package common
|
|
|
|
|
Summary: %{name} common files
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
cd Test/Ninja
|
|
|
|
|
for i in test4 test3-win test3-sub test3-inc test5 test3 lint test2 test3-unix; do
|
|
|
|
|
sed -i 's/\r$//' $i.ninja
|
|
|
|
|
done
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with haddock}
|
|
|
|
|
%package -n ghc-%{name}-doc
|
|
|
|
|
Summary: Haskell %{name} library documentation
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
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}
|
|
|
|
|
Supplements: (ghc-%{name}-devel and ghc-prof)
|
|
|
|
|
|
|
|
|
|
%description -n ghc-%{name}-prof
|
|
|
|
|
This package provides the Haskell %{name} profiling library.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global main_version %{version}
|
|
|
|
|
|
|
|
|
|
%if %{defined ghclibdir}
|
|
|
|
|
%ghc_lib_subpackage %{heaps}
|
|
|
|
|
%ghc_lib_subpackage %{jsdgtable}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global version %{main_version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
# Begin cabal-rpm setup:
|
|
|
|
|
%setup -q -a1 -a2
|
|
|
|
|
# End cabal-rpm setup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Begin cabal-rpm build:
|
|
|
|
|
%ghc_libs_build %{subpkgs}
|
|
|
|
|
%ghc_lib_build
|
|
|
|
|
# End cabal-rpm build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# Begin cabal-rpm install
|
|
|
|
|
%ghc_libs_install %{subpkgs}
|
|
|
|
|
%ghc_lib_install
|
|
|
|
|
mv %{buildroot}%{_ghcdocdir}{,-common}
|
|
|
|
|
# End cabal-rpm install
|
|
|
|
|
|
|
|
|
|
# remove bundled jquery*.js, report.html, *.js
|
|
|
|
|
# (this breaks report generation)
|
|
|
|
|
rm %{buildroot}%{_datadir}/%{name}-%{version}/html/*
|
|
|
|
|
rm %{buildroot}%{_datadir}/%{name}-%{version}/docs/manual/*
|
|
|
|
|
echo "%{_datadir}/%{jsdgtable}/" >> %{jsdgtable}/ghc-js-dgtable.files
|
|
|
|
|
|
|
|
|
|
rm %{buildroot}%{_datadir}/%{pkgver}/docs/manual/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%cabal test
|
|
|
|
|
%cabal_test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -n ghc-%{name}-devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n ghc-%{name}-devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
# Begin cabal-rpm files:
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
# End cabal-rpm files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files common
|
|
|
|
|
# Begin cabal-rpm files:
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc CHANGES.txt README.md
|
|
|
|
|
%{_datadir}/%{pkgver}
|
|
|
|
|
# End cabal-rpm files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
|
|
|
|
%doc README.md
|
|
|
|
|
%doc docs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with haddock}
|
|
|
|
|
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with ghc_prof}
|
|
|
|
|
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Jan 22 2023 Jens Petersen <petersen@redhat.com> - 0.19.7-25
|
|
|
|
|
- https://hackage.haskell.org/package/shake-0.19.7/changelog
|
|
|
|
|
- refresh to cabal-rpm-2.1.0 with SPDX migration
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.6-24
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 07 2022 Jens Petersen <petersen@redhat.com> - 0.19.6-23
|
|
|
|
|
- https://hackage.haskell.org/package/shake-0.19.6/changelog
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.5-22
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 08 2022 Miro Hrončok <mhroncok@redhat.com> - 0.19.5-21
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34
|
|
|
|
|
|
|
|
|
|
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 0.19.5-20
|
|
|
|
|
- update to 0.19.5
|
|
|
|
|
|
|
|
|
|
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 0.19.4-19
|
|
|
|
|
- update to 0.19.4
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.1-18
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.1-17
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.1-16
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 19 2020 Jens Petersen <petersen@redhat.com> - 0.19.1-15
|
|
|
|
|
- update to 0.19.1
|
|
|
|
|
- disable js embedding
|
|
|
|
|
- filepattern, js-flot, and js-jquery were packaged
|
|
|
|
|
|
|
|
|
|
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 0.18.5-14
|
|
|
|
|
- update to 0.18.5
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.9-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Jens Petersen <petersen@redhat.com>
|
|
|
|
|
- update to 0.17.9
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.4-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.16.4-10
|
|
|
|
|
- refresh to cabal-rpm-0.13
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.4-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 0.16.4-8
|
|
|
|
|
- update to 0.16.4
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 0.16-5
|
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 09 2018 Jens Petersen <petersen@redhat.com> - 0.16-4
|
|
|
|
|
- update to 0.16
|
|
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.11-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.11-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Feb 23 2017 Jens Petersen <petersen@redhat.com> - 0.13.4-1
|
|
|
|
|
- update to 0.15.11
|
|
|
|
|
- subpackage js-flot and js-jquery
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 11 2016 Jens Petersen <petersen@redhat.com> - 0.13.4-4
|
|
|
|
|
- patch for ghc8 Prelude.(*>)
|
|
|
|
|
- disable tests due to -Wall -Werror
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Sep 25 2014 Jens Petersen <petersen@redhat.com> - 0.13.4-1
|
|
|
|
|
- update to 0.13.4
|
|
|
|
|
|
|
|
|
|