|
|
271413 |
# generated by cabal-rpm-0.12.1
|
|
|
271413 |
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
271413 |
|
|
|
271413 |
%global pkg_name hslua
|
|
|
271413 |
%global pkgver %{pkg_name}-%{version}
|
|
|
271413 |
|
|
|
271413 |
%bcond_with tests
|
|
|
271413 |
|
|
|
271413 |
Name: ghc-%{pkg_name}
|
|
|
271413 |
Version: 0.9.5
|
|
|
271413 |
Release: 2%{?dist}
|
|
|
271413 |
Summary: A Lua language interpreter embedding in Haskell
|
|
|
271413 |
|
|
|
271413 |
License: MIT
|
|
|
271413 |
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
271413 |
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
271413 |
Patch0: hslua-system-lua.patch
|
|
|
271413 |
|
|
|
271413 |
BuildRequires: ghc-Cabal-devel
|
|
|
271413 |
BuildRequires: ghc-rpm-macros
|
|
|
271413 |
# Begin cabal-rpm deps:
|
|
|
271413 |
BuildRequires: ghc-bytestring-devel
|
|
|
271413 |
BuildRequires: ghc-containers-devel
|
|
|
271413 |
BuildRequires: ghc-exceptions-devel
|
|
|
271413 |
BuildRequires: ghc-mtl-devel
|
|
|
271413 |
BuildRequires: ghc-text-devel
|
|
|
271413 |
BuildRequires: pkgconfig(lua)
|
|
|
271413 |
%if %{with tests}
|
|
|
271413 |
BuildRequires: ghc-QuickCheck-devel
|
|
|
271413 |
BuildRequires: ghc-quickcheck-instances-devel
|
|
|
271413 |
BuildRequires: ghc-tasty-devel
|
|
|
271413 |
BuildRequires: ghc-tasty-expected-failure-devel
|
|
|
271413 |
BuildRequires: ghc-tasty-hunit-devel
|
|
|
271413 |
BuildRequires: ghc-tasty-quickcheck-devel
|
|
|
271413 |
%endif
|
|
|
271413 |
# End cabal-rpm deps
|
|
|
271413 |
|
|
|
271413 |
%description
|
|
|
271413 |
The Scripting.Lua module is a wrapper of the Lua language interpreter described
|
|
|
271413 |
in www.lua.org.
|
|
|
271413 |
|
|
|
271413 |
|
|
|
271413 |
%package devel
|
|
|
271413 |
Summary: Haskell %{pkg_name} library development files
|
|
|
271413 |
Provides: %{name}-static = %{version}-%{release}
|
|
|
271413 |
Provides: %{name}-doc = %{version}-%{release}
|
|
|
271413 |
%if %{defined ghc_version}
|
|
|
271413 |
Requires: ghc-compiler = %{ghc_version}
|
|
|
271413 |
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
271413 |
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
271413 |
%endif
|
|
|
271413 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
271413 |
# Begin cabal-rpm deps:
|
|
|
271413 |
Requires: pkgconfig(lua)
|
|
|
271413 |
# End cabal-rpm deps
|
|
|
271413 |
|
|
|
271413 |
%description devel
|
|
|
271413 |
This package provides the Haskell %{pkg_name} library development files.
|
|
|
271413 |
|
|
|
271413 |
|
|
|
271413 |
%prep
|
|
|
271413 |
%setup -q -n %{pkgver}
|
|
|
271413 |
%patch0 -p1 -b .orig
|
|
|
271413 |
sed -i "/fail /d" hslua.cabal
|
|
|
271413 |
#cabal-tweak-drop-dep '\", fail >= 4.9 && < 5\"'
|
|
|
271413 |
rm -r lua-5.3.4
|
|
|
271413 |
|
|
|
271413 |
|
|
|
271413 |
%build
|
|
|
271413 |
%define cabal_configure_options -f -luajit -f use-pkgconfig
|
|
|
271413 |
%ghc_lib_build
|
|
|
271413 |
|
|
|
271413 |
|
|
|
271413 |
%install
|
|
|
271413 |
%ghc_lib_install
|
|
|
271413 |
|
|
|
271413 |
|
|
|
271413 |
%check
|
|
|
271413 |
%cabal_test
|
|
|
271413 |
|
|
|
271413 |
|
|
|
271413 |
%post devel
|
|
|
271413 |
%ghc_pkg_recache
|
|
|
271413 |
|
|
|
271413 |
|
|
|
271413 |
%postun devel
|
|
|
271413 |
%ghc_pkg_recache
|
|
|
271413 |
|
|
|
271413 |
|
|
|
271413 |
%files -f %{name}.files
|
|
|
271413 |
%license COPYRIGHT
|
|
|
271413 |
|
|
|
271413 |
|
|
|
271413 |
%files devel -f %{name}-devel.files
|
|
|
271413 |
%doc CHANGELOG.md README.md
|
|
|
271413 |
|
|
|
271413 |
|
|
|
271413 |
%changelog
|
|
|
271413 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-2
|
|
|
271413 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
271413 |
|
|
|
271413 |
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 0.9.5-1
|
|
|
271413 |
- update to 0.9.5
|
|
|
271413 |
|
|
|
271413 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-5
|
|
|
271413 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
271413 |
|
|
|
271413 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-4
|
|
|
271413 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
271413 |
|
|
|
271413 |
* Fri Feb 24 2017 Jens Petersen <petersen@redhat.com> - 0.4.1-3
|
|
|
271413 |
- refresh to cabal-rpm-0.11.1
|
|
|
271413 |
|
|
|
271413 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
|
|
|
271413 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
271413 |
|
|
|
271413 |
* Thu Jun 23 2016 Jens Petersen <petersen@redhat.com> - 0.4.1-1
|
|
|
271413 |
- update to 0.4.1
|
|
|
271413 |
|
|
|
271413 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.13-3
|
|
|
271413 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
271413 |
|
|
|
271413 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.13-2
|
|
|
271413 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
271413 |
|
|
|
271413 |
* Mon Jan 19 2015 Jens Petersen <petersen@redhat.com> - 0.3.13-1
|
|
|
271413 |
- update to 0.3.13
|
|
|
271413 |
|
|
|
271413 |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.10-4
|
|
|
271413 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
271413 |
|
|
|
271413 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.10-3
|
|
|
271413 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
271413 |
|
|
|
271413 |
* Wed Jan 22 2014 Jens Petersen <petersen@redhat.com> - 0.3.10-2
|
|
|
271413 |
- hslua needs lua-5.1 so build with compat-lua
|
|
|
271413 |
|
|
|
271413 |
* Wed Jan 22 2014 Jens Petersen <petersen@redhat.com> - 0.3.10-1
|
|
|
271413 |
- update to 0.3.10 (#1009375)
|
|
|
271413 |
- update license to MIT (#1009375)
|
|
|
271413 |
see https://github.com/osa1/hslua/issues/14
|
|
|
271413 |
- system-lua patch is now upstream
|
|
|
271413 |
- tweak summary and description
|
|
|
271413 |
|
|
|
271413 |
* Wed Oct 16 2013 Jens Petersen <petersen@redhat.com> - 0.3.6.1-2
|
|
|
271413 |
- add static provides to devel
|
|
|
271413 |
|
|
|
271413 |
* Wed Sep 18 2013 Jens Petersen <petersen@redhat.com> - 0.3.6.1-1
|
|
|
271413 |
- summary and description
|
|
|
271413 |
- patch to use system lua
|
|
|
271413 |
|
|
|
271413 |
* Wed Sep 18 2013 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.3.6.1-0
|
|
|
271413 |
- spec file generated by cabal-rpm-0.8.3
|