# generated by cabal-rpm-2.1.5 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name sdl2 %global pkgver %{pkg_name}-%{version} # testsuite missing deps: weigh Name: ghc-%{pkg_name} Version: 2.5.5.0 Release: 1%{?dist} Summary: Both high- and low-level bindings to the SDL library (version 2.0.6+) License: BSD-3-Clause Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-StateVar-devel BuildRequires: ghc-base-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-linear-devel BuildRequires: ghc-text-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-vector-devel %if %{with ghc_prof} BuildRequires: ghc-StateVar-prof BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-exceptions-prof BuildRequires: ghc-linear-prof BuildRequires: ghc-text-prof BuildRequires: ghc-transformers-prof BuildRequires: ghc-vector-prof %endif #BuildRequires: SDL2-devel BuildRequires: pkgconfig(sdl2) # End cabal-rpm deps BuildRequires: dos2unix %description This package contains bindings to the SDL 2 library, in both high- and low-level forms: The 'SDL' namespace contains high-level bindings, where enumerations are split into sum types, and we perform automatic error-checking. The 'SDL.Raw' namespace contains an almost 1-1 translation of the C API into Haskell FFI calls. As such, this does not contain sum types nor error checking. Thus this namespace is suitable for building your own abstraction over SDL, but is not recommended for day-to-day programming. Read "SDL" for a getting started guide. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Provides: %{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} # Begin cabal-rpm deps: Requires: SDL2-devel%{?_isa} Requires: pkgconfig(sdl2) # End cabal-rpm deps %description devel This package provides the Haskell %{pkg_name} library development files. %if %{with haddock} %package doc Summary: Haskell %{pkg_name} library documentation BuildArch: noarch Requires: ghc-filesystem %description doc This package provides the Haskell %{pkg_name} library documentation. %endif %if %{with ghc_prof} %package prof Summary: Haskell %{pkg_name} profiling library Requires: %{name}-devel%{?_isa} = %{version}-%{release} Supplements: (%{name}-devel and ghc-prof) %description prof This package provides the Haskell %{pkg_name} profiling library. %endif %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup dos2unix examples/lazyfoo/Lesson13.hs chmod a-x examples/lazyfoo/rumble.bmp %build # Begin cabal-rpm build: %ghc_lib_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_lib_install # End cabal-rpm install %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE %{_datadir}/%{pkgver} # End cabal-rpm files %files devel -f %{name}-devel.files %doc ChangeLog.md examples %if %{with haddock} %files doc -f %{name}-doc.files %license LICENSE %endif %if %{with ghc_prof} %files prof -f %{name}-prof.files %endif %changelog * Mon Jan 15 2024 Jens Petersen - 2.5.5.0-1 - spec file generated by cabal-rpm-2.1.5