|
|
40ca149 |
# generated by cabal-rpm-0.12.1
|
|
|
7952117 |
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
7952117 |
|
|
|
cc8eee5 |
%global pkg_name shake
|
|
|
6867e94 |
%global pkgver %{pkg_name}-%{version}
|
|
|
cc8eee5 |
|
|
|
6867e94 |
%global jsflot js-flot-0.8.3
|
|
|
c8cbec9 |
%global jsjquery js-jquery-3.2.1
|
|
|
6867e94 |
%global subpkgs %{jsflot} %{jsjquery}
|
|
|
7952117 |
|
|
|
a9f7049 |
%bcond_with tests
|
|
|
7952117 |
|
|
|
7952117 |
Name: %{pkg_name}
|
|
|
c8cbec9 |
Version: 0.16
|
|
|
6867e94 |
# can only be reset when all subpkgs bumped
|
|
|
a80ef81 |
Release: 5%{?dist}
|
|
|
7952117 |
Summary: Make-like build system
|
|
|
7952117 |
|
|
|
7952117 |
License: BSD
|
|
|
6867e94 |
Url: https://hackage.haskell.org/package/%{name}
|
|
|
6867e94 |
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
6867e94 |
Source1: https://hackage.haskell.org/package/%{jsflot}/%{jsflot}.tar.gz
|
|
|
6867e94 |
Source2: https://hackage.haskell.org/package/%{jsjquery}/%{jsjquery}.tar.gz
|
|
|
7952117 |
|
|
|
7952117 |
BuildRequires: ghc-Cabal-devel
|
|
|
6867e94 |
BuildRequires: ghc-rpm-macros-extra
|
|
|
7952117 |
# Begin cabal-rpm deps:
|
|
|
7952117 |
BuildRequires: ghc-binary-devel
|
|
|
7952117 |
BuildRequires: ghc-bytestring-devel
|
|
|
7952117 |
BuildRequires: ghc-deepseq-devel
|
|
|
7952117 |
BuildRequires: ghc-directory-devel
|
|
|
6867e94 |
BuildRequires: ghc-extra-devel
|
|
|
7952117 |
BuildRequires: ghc-filepath-devel
|
|
|
7952117 |
BuildRequires: ghc-hashable-devel
|
|
|
6867e94 |
#BuildRequires: ghc-js-flot-devel
|
|
|
6867e94 |
#BuildRequires: ghc-js-jquery-devel
|
|
|
6867e94 |
BuildRequires: ghc-primitive-devel
|
|
|
7952117 |
BuildRequires: ghc-process-devel
|
|
|
7952117 |
BuildRequires: ghc-random-devel
|
|
|
7952117 |
BuildRequires: ghc-time-devel
|
|
|
7952117 |
BuildRequires: ghc-transformers-devel
|
|
|
7952117 |
BuildRequires: ghc-unix-devel
|
|
|
7952117 |
BuildRequires: ghc-unordered-containers-devel
|
|
|
7952117 |
BuildRequires: ghc-utf8-string-devel
|
|
|
cc8eee5 |
%if %{with tests}
|
|
|
7952117 |
BuildRequires: ghc-QuickCheck-devel
|
|
|
7952117 |
%endif
|
|
|
cc8eee5 |
# End cabal-rpm deps
|
|
|
f1bae6d |
# for js-flot
|
|
|
f1bae6d |
BuildRequires: ghc-HTTP-devel
|
|
|
7952117 |
|
|
|
7952117 |
%description
|
|
|
7952117 |
Shake is a Haskell library for writing build systems - designed as a
|
|
|
4674e3e |
replacement for 'make'. See "Development.Shake" for an introduction, including
|
|
|
7952117 |
an example. Further examples are included in the Cabal tarball, under the
|
|
|
4674e3e |
'Examples' directory. The homepage contains links to a user manual, an academic
|
|
|
6867e94 |
paper and further information: <http://shakebuild.com>
|
|
|
7952117 |
|
|
|
7952117 |
This package provides the shake tool which can handle most ninja files
|
|
|
7952117 |
faster than ninja and simple makefiles.
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
7952117 |
%package -n ghc-%{name}
|
|
|
7952117 |
Summary: Haskell %{name} library
|
|
|
7952117 |
|
|
|
7952117 |
%description -n ghc-%{name}
|
|
|
7952117 |
This package provides the Haskell %{name} shared library.
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
7952117 |
%package -n ghc-%{name}-devel
|
|
|
7952117 |
Summary: Haskell %{name} library development files
|
|
|
7952117 |
Provides: ghc-%{name}-static = %{version}-%{release}
|
|
|
c8cbec9 |
Provides: ghc-%{name}-doc = %{version}-%{release}
|
|
|
c8cbec9 |
%if %{defined ghc_version}
|
|
|
7952117 |
Requires: ghc-compiler = %{ghc_version}
|
|
|
7952117 |
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
7952117 |
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
c8cbec9 |
%endif
|
|
|
7952117 |
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
|
|
|
7952117 |
|
|
|
7952117 |
%description -n ghc-%{name}-devel
|
|
|
7952117 |
This package provides the Haskell %{name} library development files.
|
|
|
7952117 |
|
|
|
7952117 |
To use Shake the user writes a Haskell program that imports
|
|
|
7952117 |
"Development.Shake", defines some build rules, and calls the
|
|
|
7952117 |
'Development.Shake.shakeArgs' function. Thanks to do notation and infix
|
|
|
7952117 |
operators, a simple Shake build system is not too dissimilar from a simple
|
|
|
7952117 |
Makefile. However, as build systems get more complex, Shake is able to take
|
|
|
7952117 |
advantage of the excellent abstraction facilities offered by Haskell and easily
|
|
|
7952117 |
support much larger projects. The Shake library provides all the standard
|
|
|
7952117 |
features available in other build systems, including automatic parallelism and
|
|
|
7952117 |
minimal rebuilds. Shake also provides more accurate dependency tracking,
|
|
|
7952117 |
including seamless support for generated files, and dependencies on system
|
|
|
7952117 |
information (e.g. compiler version).
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
6867e94 |
%global main_version %{version}
|
|
|
6867e94 |
|
|
|
6867e94 |
%if %{defined ghclibdir}
|
|
|
6867e94 |
%ghc_lib_subpackage %{jsflot}
|
|
|
6867e94 |
%ghc_lib_subpackage %{jsjquery}
|
|
|
6867e94 |
%endif
|
|
|
6867e94 |
|
|
|
6867e94 |
%global version %{main_version}
|
|
|
6867e94 |
|
|
|
6867e94 |
|
|
|
7952117 |
%prep
|
|
|
6867e94 |
%setup -q -a1 -a2
|
|
|
7952117 |
|
|
|
6867e94 |
#cd src/Test/Ninja
|
|
|
6867e94 |
#for i in test4 test3-win test3-sub test3-inc test5 test3 lint test2 test3-unix; do
|
|
|
6867e94 |
# sed -i 's/\r$//' $i.ninja
|
|
|
6867e94 |
#done
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
7952117 |
%build
|
|
|
6867e94 |
%ghc_libs_build %{subpkgs}
|
|
|
7952117 |
%ghc_lib_build
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
7952117 |
%install
|
|
|
6867e94 |
%ghc_libs_install %{subpkgs}
|
|
|
7952117 |
%ghc_lib_install
|
|
|
7952117 |
|
|
|
6867e94 |
echo "%{_datadir}/%{jsflot}/" >> %{jsflot}/ghc-js-flot.files
|
|
|
6867e94 |
echo "%{_datadir}/%{jsjquery}/" >> %{jsjquery}/ghc-js-jquery.files
|
|
|
6867e94 |
|
|
|
55e291b |
rm %{buildroot}%{_datadir}/%{pkgver}/docs/manual/*
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
7952117 |
%check
|
|
|
31b0fc5 |
%cabal_test
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
40ca149 |
%post -n ghc-%{name} -p /sbin/ldconfig
|
|
|
40ca149 |
|
|
|
40ca149 |
|
|
|
40ca149 |
%postun -n ghc-%{name} -p /sbin/ldconfig
|
|
|
40ca149 |
|
|
|
40ca149 |
|
|
|
7952117 |
%post -n ghc-%{name}-devel
|
|
|
7952117 |
%ghc_pkg_recache
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
7952117 |
%postun -n ghc-%{name}-devel
|
|
|
7952117 |
%ghc_pkg_recache
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
7952117 |
%files
|
|
|
33195cf |
%license LICENSE
|
|
|
7952117 |
%{_bindir}/%{name}
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
7952117 |
%files -n ghc-%{name} -f ghc-%{name}.files
|
|
|
33195cf |
%license LICENSE
|
|
|
55e291b |
%{_datadir}/%{pkgver}
|
|
|
7952117 |
|
|
|
7952117 |
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
|
|
6867e94 |
%doc CHANGES.txt README.md docs
|
|
|
7952117 |
|
|
|
7952117 |
|
|
|
7952117 |
%changelog
|
|
|
a80ef81 |
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 0.16-5
|
|
|
a80ef81 |
- rebuild
|
|
|
a80ef81 |
|
|
|
c8cbec9 |
* Tue Jan 09 2018 Jens Petersen <petersen@redhat.com> - 0.16-4
|
|
|
c8cbec9 |
- update to 0.16
|
|
|
c8cbec9 |
|
|
|
28c4c68 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.11-3
|
|
|
28c4c68 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
28c4c68 |
|
|
|
79191f2 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.11-2
|
|
|
79191f2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
79191f2 |
|
|
|
6867e94 |
* Thu Feb 23 2017 Jens Petersen <petersen@redhat.com> - 0.13.4-1
|
|
|
6867e94 |
- update to 0.15.11
|
|
|
6867e94 |
- subpackage js-flot and js-jquery
|
|
|
6867e94 |
|
|
|
556ab40 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-5
|
|
|
556ab40 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
556ab40 |
|
|
|
6084918 |
* Mon Jul 11 2016 Jens Petersen <petersen@redhat.com> - 0.13.4-4
|
|
|
6084918 |
- patch for ghc8 Prelude.(*>)
|
|
|
6084918 |
- disable tests due to -Wall -Werror
|
|
|
6084918 |
|
|
|
7796631 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-3
|
|
|
7796631 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
7796631 |
|
|
|
6df1584 |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.4-2
|
|
|
6df1584 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
6df1584 |
|
|
|
4674e3e |
* Thu Sep 25 2014 Jens Petersen <petersen@redhat.com> - 0.13.4-1
|
|
|
4674e3e |
- update to 0.13.4
|
|
|
41c8d8b |
|
|
|
5ffa1ac |
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.4-6
|
|
|
5ffa1ac |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
5ffa1ac |
|
|
|
8b9157d |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.4-5
|
|
|
8b9157d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
8b9157d |
|
|
|
996dc37 |
* Sat May 17 2014 Jens Petersen <petersen@redhat.com> - 0.11.4-4
|
|
|
cc8eee5 |
- adapt to new tests bcond in ghc-rpm-macros
|
|
|
cc8eee5 |
|
|
|
ad3dbe2 |
* Mon Apr 14 2014 Jens Petersen <petersen@redhat.com> - 0.11.4-3
|
|
|
ad3dbe2 |
- use global to define cabal_configure_options (#1082515)
|
|
|
ad3dbe2 |
|
|
|
7952117 |
* Mon Mar 31 2014 Jens Petersen <petersen@redhat.com> - 0.11.4-2
|
|
|
7952117 |
- testsuite uses TemplateHaskell so only run it on Intel archs for now
|
|
|
7952117 |
|
|
|
7952117 |
* Mon Mar 31 2014 Jens Petersen <petersen@redhat.com> - 0.11.4-1
|
|
|
7952117 |
- update to 0.11.4
|
|
|
7952117 |
- bcond enable testsuite
|
|
|
7952117 |
|
|
|
7952117 |
* Sun Jan 5 2014 Jens Petersen <petersen@redhat.com> - 0.11-1
|
|
|
7952117 |
- update to 0.11
|
|
|
7952117 |
|
|
|
7952117 |
* Sat Jan 4 2014 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.10.10
|
|
|
7952117 |
- spec file generated by cabal-rpm-0.8.7
|