Blame ghc-bugzilla-redhat.spec

c19f74a
# generated by cabal-rpm-2.0.9
ab244d2
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
ab244d2
ab244d2
%global pkg_name bugzilla-redhat
ab244d2
%global pkgver %{pkg_name}-%{version}
ab244d2
d309a24
%bcond_without tests
d309a24
ab244d2
Name:           ghc-%{pkg_name}
656e318
Version:        1.0.1
656e318
Release:        1%{?dist}
ab244d2
Summary:        A Haskell interface to the Bugzilla native REST API
ab244d2
ab244d2
License:        BSD
ab244d2
Url:            https://hackage.haskell.org/package/%{pkg_name}
ab244d2
# Begin cabal-rpm sources:
ab244d2
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
ab244d2
# End cabal-rpm sources
ab244d2
ab244d2
# Begin cabal-rpm deps:
ab244d2
BuildRequires:  ghc-Cabal-devel
ab244d2
BuildRequires:  ghc-rpm-macros
ab244d2
BuildRequires:  ghc-aeson-prof
ab244d2
BuildRequires:  ghc-base-prof
ab244d2
BuildRequires:  ghc-blaze-builder-prof
ab244d2
BuildRequires:  ghc-bytestring-prof
ab244d2
BuildRequires:  ghc-connection-prof
ab244d2
BuildRequires:  ghc-containers-prof
ab244d2
BuildRequires:  ghc-http-conduit-prof
ab244d2
BuildRequires:  ghc-http-types-prof
ab244d2
BuildRequires:  ghc-iso8601-time-prof
ab244d2
BuildRequires:  ghc-resourcet-prof
ab244d2
BuildRequires:  ghc-text-prof
ab244d2
BuildRequires:  ghc-time-prof
ab244d2
BuildRequires:  ghc-transformers-prof
ab244d2
BuildRequires:  ghc-unordered-containers-prof
ab244d2
BuildRequires:  ghc-vector-prof
d309a24
%if %{with tests}
d309a24
BuildRequires:  ghc-hspec-devel
d309a24
%endif
ab244d2
# End cabal-rpm deps
ab244d2
ab244d2
%description
d309a24
This package is designed to provide an easy-to-use, type-safe interface to
ab244d2
querying Bugzilla from Haskell.
ab244d2
f3fda99
This is a friendly fork of Seth Fowler's library, with updates and API tweaks
f3fda99
needed for bugzilla.redhat.com.
ab244d2
ab244d2
ab244d2
%package devel
ab244d2
Summary:        Haskell %{pkg_name} library development files
ab244d2
Provides:       %{name}-static = %{version}-%{release}
ab244d2
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
ab244d2
%if %{defined ghc_version}
ab244d2
Requires:       ghc-compiler = %{ghc_version}
ab244d2
%endif
ab244d2
Requires:       %{name}%{?_isa} = %{version}-%{release}
ab244d2
ab244d2
%description devel
ab244d2
This package provides the Haskell %{pkg_name} library development
ab244d2
files.
ab244d2
ab244d2
ab244d2
%if %{with haddock}
ab244d2
%package doc
ab244d2
Summary:        Haskell %{pkg_name} library documentation
ab244d2
BuildArch:      noarch
c19f74a
Requires:       ghc-filesystem
ab244d2
ab244d2
%description doc
ab244d2
This package provides the Haskell %{pkg_name} library documentation.
ab244d2
%endif
ab244d2
ab244d2
ab244d2
%if %{with ghc_prof}
ab244d2
%package prof
ab244d2
Summary:        Haskell %{pkg_name} profiling library
ab244d2
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
ab244d2
Supplements:    (%{name}-devel and ghc-prof)
ab244d2
ab244d2
%description prof
ab244d2
This package provides the Haskell %{pkg_name} profiling library.
ab244d2
%endif
ab244d2
ab244d2
ab244d2
%prep
ab244d2
# Begin cabal-rpm setup:
ab244d2
%setup -q -n %{pkgver}
ab244d2
# End cabal-rpm setup
ab244d2
ab244d2
ab244d2
%build
ab244d2
# Begin cabal-rpm build:
ab244d2
%ghc_lib_build
ab244d2
# End cabal-rpm build
ab244d2
ab244d2
ab244d2
%install
ab244d2
# Begin cabal-rpm install
ab244d2
%ghc_lib_install
ab244d2
# End cabal-rpm install
ab244d2
ab244d2
d309a24
%check
d309a24
%if %{with tests}
d309a24
%cabal_test
d309a24
%endif
d309a24
d309a24
ab244d2
%files -f %{name}.files
ab244d2
# Begin cabal-rpm files:
ab244d2
%license LICENSE
ab244d2
# End cabal-rpm files
ab244d2
ab244d2
ab244d2
%files devel -f %{name}-devel.files
d309a24
%doc ChangeLog.md README.md TODO
ab244d2
ab244d2
ab244d2
%if %{with haddock}
ab244d2
%files doc -f %{name}-doc.files
ab244d2
%license LICENSE
ab244d2
%endif
ab244d2
ab244d2
ab244d2
%if %{with ghc_prof}
ab244d2
%files prof -f %{name}-prof.files
ab244d2
%endif
ab244d2
ab244d2
ab244d2
%changelog
656e318
* Wed Nov 23 2022 Jens Petersen <petersen@redhat.com> - 1.0.1-1
656e318
- Red Hat bugzilla bugs no longer have a 'see_also' field (#18)
656e318
49ad0c9
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
49ad0c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
49ad0c9
29ee66a
* Fri Jun 17 2022 Jens Petersen <petersen@redhat.com> - 1.0.0-2
29ee66a
- rebuild
29ee66a
f3fda99
* Mon Feb 21 2022 Jens Petersen <petersen@redhat.com> - 1.0.0-1
d23282b
- only bugzilla API key for authentication
d23282b
- https://hackage.haskell.org/package/bugzilla-redhat-1.0.0/changelog
f3fda99
8cea1c6
* Mon Feb 21 2022 Jens Petersen <petersen@redhat.com> - 0.3.3-1
8cea1c6
- update to 0.3.3
8cea1c6
ec81928
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-2
ec81928
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ec81928
d309a24
* Thu Aug  5 2021 Jens Petersen <petersen@redhat.com> - 0.3.2-1
d309a24
- update to 0.3.2
d309a24
1dd09aa
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
1dd09aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1dd09aa
ab244d2
* Sun Feb 07 2021 Jens Petersen <petersen@redhat.com> - 0.3.1-1
ab244d2
- spec file generated by cabal-rpm-2.0.7