File ghc-text-icu.spec of Package ghc-text-icu

#
# spec file for package ghc-text-icu
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2018 AArch64 Build Service Team <build@aarch64.opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%global pkg_name text-icu
Name:           ghc-%{pkg_name}
Version:        0.8.0.5
Release:        1.1
Summary:        Bindings to the ICU library
License:        BSD-3-Clause
URL:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1:        %{pkg_name}.cabal
BuildRequires:  gcc-c++
BuildRequires:  ghc-Cabal-devel
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-containers-devel
BuildRequires:  ghc-deepseq-devel
BuildRequires:  ghc-directory-devel
BuildRequires:  ghc-mtl-devel
BuildRequires:  ghc-process-devel
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-template-haskell-devel
BuildRequires:  ghc-text-devel
BuildRequires:  libicu-devel >= 4.8
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %{defined suse_version} && 0%{?suse_version} <= 1110
%{!?ghc_feature_BR:BuildRequires: ghc-feature-tests-devel}
%endif

%description
Bindings to the International Components for Unicode (ICU) libraries.
These libraries provide robust and full-featured Unicode services on a
wide variety of platforms.

%package devel
Summary:        Haskell %{pkg_name} library development files
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%prep
%setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal

%build
%ghc_lib_build

%install
%ghc_lib_install

%post devel
%ghc_pkg_recache

%postun devel
%ghc_pkg_recache

%files -f %{name}.files
%defattr(-,root,root,-)
%doc changelog.md README.markdown

%files devel -f %{name}-devel.files
%defattr(-,root,root,-)

%changelog
* Tue Sep 17 2025 lalala123 <lalala123@example.com> - 0.8.0.5-1.1
- Update to version 0.8.0.5

* Fri Mar 15 2019 psimons@suse.com
- Initial package for openSUSE.
openSUSE Build Service is sponsored by