File ghc-aeson-pretty.spec of Package ghc-aeson-pretty
#
# spec file for package ghc-aeson-pretty
#
# Copyright (c) 2025 Your Company
#
# All modifications and additions to the file contributed back to the
# project as per the openSUSE policy.
#
Name: ghc-aeson-pretty
Version: 0.8.10
Release: 1.1
Summary: JSON pretty-printing library
License: MIT
Group: Development/Libraries/Haskell
URL: https://github.com/informatikr/aeson-pretty
Source: %{name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-aeson-devel
BuildRequires: ghc-rpm-macros
ExcludeArch: %{ix86}
%description
aeson-pretty is a JSON pretty-printing library.
%prep
%setup -q
%build
ghc --make -package Cabal -no-user-package-db -dynamic Setup
./Setup configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}/%{name}-%{version} --libsubdir=%{name} --datasubdir=%{name} --libexecsubdir=%{name} --ghc --dynlibdir=%{_libdir}/ghc-$(ghc --numeric-version)/lib --global --enable-library-profiling --enable-shared --htmldir=%{_docdir}/ghc/html/libraries/%{name}-%{version} --global
./Setup build
%install
./Setup install --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir} --docdir=%{buildroot}%{_docdir}/%{name}-%{version} --libsubdir=%{name} --datasubdir=%{name} --libexecsubdir=%{name}
%files
%license LICENSE
%doc CHANGELOG.markdown README.markdown
%{_libdir}/ghc-*/lib/%{name}-%{version}/
%{_docdir}/%{name}-%{version}/
%changelog
* Mon Sep 22 2025 Your Name <your.email@company.com>
- Update to version 0.8.10
- Remove unsupported ghc option -fobject-determinism