Blame ghc-cborg-json.spec

8b497e1
# generated by cabal-rpm-2.0.9
c1506eb
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
c1506eb
c1506eb
%global pkg_name cborg-json
c1506eb
%global pkgver %{pkg_name}-%{version}
c1506eb
c1506eb
Name:           ghc-%{pkg_name}
c1506eb
Version:        0.2.2.0
50d2b2b
Release:        5%{?dist}
c1506eb
Summary:        A library for encoding JSON as CBOR
c1506eb
c1506eb
License:        BSD
c1506eb
Url:            https://hackage.haskell.org/package/%{pkg_name}
c1506eb
# Begin cabal-rpm sources:
c1506eb
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
c1506eb
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
c1506eb
# End cabal-rpm sources
c1506eb
c1506eb
# Begin cabal-rpm deps:
c1506eb
BuildRequires:  ghc-Cabal-devel
c1506eb
BuildRequires:  ghc-rpm-macros
c1506eb
BuildRequires:  ghc-aeson-prof
c1506eb
BuildRequires:  ghc-aeson-pretty-prof
c1506eb
BuildRequires:  ghc-base-prof
c1506eb
BuildRequires:  ghc-cborg-prof
c1506eb
BuildRequires:  ghc-scientific-prof
c1506eb
BuildRequires:  ghc-text-prof
c1506eb
BuildRequires:  ghc-unordered-containers-prof
c1506eb
BuildRequires:  ghc-vector-prof
c1506eb
# End cabal-rpm deps
c1506eb
c1506eb
%description
c1506eb
This package implements the bijection between JSON and CBOR defined in the CBOR
c1506eb
specification, RFC 7049.
c1506eb
c1506eb
c1506eb
%package devel
c1506eb
Summary:        Haskell %{pkg_name} library development files
c1506eb
Provides:       %{name}-static = %{version}-%{release}
c1506eb
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
c1506eb
%if %{defined ghc_version}
c1506eb
Requires:       ghc-compiler = %{ghc_version}
c1506eb
%endif
c1506eb
Requires:       %{name}%{?_isa} = %{version}-%{release}
c1506eb
c1506eb
%description devel
c1506eb
This package provides the Haskell %{pkg_name} library development files.
c1506eb
c1506eb
c1506eb
%if %{with haddock}
c1506eb
%package doc
c1506eb
Summary:        Haskell %{pkg_name} library documentation
c1506eb
BuildArch:      noarch
8b497e1
Requires:       ghc-filesystem
c1506eb
c1506eb
%description doc
c1506eb
This package provides the Haskell %{pkg_name} library documentation.
c1506eb
%endif
c1506eb
c1506eb
c1506eb
%if %{with ghc_prof}
c1506eb
%package prof
c1506eb
Summary:        Haskell %{pkg_name} profiling library
c1506eb
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
c1506eb
Supplements:    (%{name}-devel and ghc-prof)
c1506eb
c1506eb
%description prof
c1506eb
This package provides the Haskell %{pkg_name} profiling library.
c1506eb
%endif
c1506eb
c1506eb
c1506eb
%prep
c1506eb
# Begin cabal-rpm setup:
c1506eb
%setup -q -n %{pkgver}
c1506eb
cp -bp %{SOURCE1} %{pkg_name}.cabal
c1506eb
# End cabal-rpm setup
c1506eb
c1506eb
c1506eb
%build
c1506eb
# Begin cabal-rpm build:
c1506eb
%ghc_lib_build
c1506eb
# End cabal-rpm build
c1506eb
c1506eb
c1506eb
%install
c1506eb
# Begin cabal-rpm install
c1506eb
%ghc_lib_install
c1506eb
# End cabal-rpm install
c1506eb
c1506eb
c1506eb
%files -f %{name}.files
c1506eb
# Begin cabal-rpm files:
c1506eb
%license LICENSE.txt
c1506eb
# End cabal-rpm files
c1506eb
c1506eb
c1506eb
%files devel -f %{name}-devel.files
c1506eb
%doc ChangeLog.md
c1506eb
c1506eb
c1506eb
%if %{with haddock}
c1506eb
%files doc -f %{name}-doc.files
c1506eb
%license LICENSE.txt
c1506eb
%endif
c1506eb
c1506eb
c1506eb
%if %{with ghc_prof}
c1506eb
%files prof -f %{name}-prof.files
c1506eb
%endif
c1506eb
c1506eb
c1506eb
%changelog
50d2b2b
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2.0-5
50d2b2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
50d2b2b
ad2afca
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2.0-4
ad2afca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ad2afca
7b4a9e6
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2.0-3
7b4a9e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7b4a9e6
d60a549
* Fri Jul 17 2020 Jens Petersen <petersen@redhat.com> - 0.2.2.0-2
d60a549
- refresh to cabal-rpm-2.0.6
d60a549
c1506eb
* Sat May 30 2020 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.2.2.0-1
c1506eb
- spec file generated by cabal-rpm-2.0.5