Blame ghc-js-jquery.spec

2d1a8dc
# generated by cabal-rpm-2.0.6
2d1a8dc
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
2d1a8dc
2d1a8dc
%global pkg_name js-jquery
2d1a8dc
%global pkgver %{pkg_name}-%{version}
2d1a8dc
2d1a8dc
# requires network
2d1a8dc
%bcond_with tests
2d1a8dc
2d1a8dc
Name:           ghc-%{pkg_name}
2d1a8dc
Version:        3.3.1
8878f9d
Release:        2%{?dist}
2d1a8dc
Summary:        Obtain minified jQuery code
2d1a8dc
2d1a8dc
License:        MIT
2d1a8dc
Url:            https://hackage.haskell.org/package/%{pkg_name}
2d1a8dc
# Begin cabal-rpm sources:
2d1a8dc
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2d1a8dc
# End cabal-rpm sources
2d1a8dc
2d1a8dc
# Begin cabal-rpm deps:
2d1a8dc
BuildRequires:  ghc-Cabal-devel
2d1a8dc
BuildRequires:  ghc-rpm-macros
2d1a8dc
BuildRequires:  ghc-base-prof
2d1a8dc
%if %{with tests}
2d1a8dc
BuildRequires:  ghc-HTTP-devel
2d1a8dc
%endif
2d1a8dc
# End cabal-rpm deps
c6c4a9a
Provides: bundled(jquery) = %{version}
2d1a8dc
2d1a8dc
%description
2d1a8dc
This package bundles the minified <http://jquery.com/ jQuery> code into a
2d1a8dc
Haskell package, so it can be depended upon by Cabal packages. The first three
2d1a8dc
components of the version number match the upstream jQuery version.
2d1a8dc
The package is designed to meet the redistribution requirements of downstream
2d1a8dc
users (e.g. Debian).
2d1a8dc
2d1a8dc
2d1a8dc
%package devel
2d1a8dc
Summary:        Haskell %{pkg_name} library development files
2d1a8dc
Provides:       %{name}-static = %{version}-%{release}
2d1a8dc
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
2d1a8dc
%if %{defined ghc_version}
2d1a8dc
Requires:       ghc-compiler = %{ghc_version}
2d1a8dc
%endif
2d1a8dc
Requires:       %{name}%{?_isa} = %{version}-%{release}
2d1a8dc
2d1a8dc
%description devel
2d1a8dc
This package provides the Haskell %{pkg_name} library development files.
2d1a8dc
2d1a8dc
2d1a8dc
%if %{with haddock}
2d1a8dc
%package doc
2d1a8dc
Summary:        Haskell %{pkg_name} library documentation
2d1a8dc
BuildArch:      noarch
2d1a8dc
2d1a8dc
%description doc
2d1a8dc
This package provides the Haskell %{pkg_name} library documentation.
2d1a8dc
%endif
2d1a8dc
2d1a8dc
2d1a8dc
%if %{with ghc_prof}
2d1a8dc
%package prof
2d1a8dc
Summary:        Haskell %{pkg_name} profiling library
2d1a8dc
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
2d1a8dc
Supplements:    (%{name}-devel and ghc-prof)
2d1a8dc
2d1a8dc
%description prof
2d1a8dc
This package provides the Haskell %{pkg_name} profiling library.
2d1a8dc
%endif
2d1a8dc
2d1a8dc
2d1a8dc
%prep
2d1a8dc
# Begin cabal-rpm setup:
2d1a8dc
%setup -q -n %{pkgver}
2d1a8dc
# End cabal-rpm setup
2d1a8dc
2d1a8dc
2d1a8dc
%build
2d1a8dc
# Begin cabal-rpm build:
2d1a8dc
%ghc_lib_build
2d1a8dc
# End cabal-rpm build
2d1a8dc
2d1a8dc
2d1a8dc
%install
2d1a8dc
# Begin cabal-rpm install
2d1a8dc
%ghc_lib_install
2d1a8dc
# End cabal-rpm install
2d1a8dc
2d1a8dc
2d1a8dc
%check
2d1a8dc
%cabal_test
2d1a8dc
2d1a8dc
2d1a8dc
%files -f %{name}.files
2d1a8dc
# Begin cabal-rpm files:
2d1a8dc
%license LICENSE
2d1a8dc
%{_datadir}/%{pkgver}
2d1a8dc
# End cabal-rpm files
2d1a8dc
2d1a8dc
2d1a8dc
%files devel -f %{name}-devel.files
2d1a8dc
%doc CHANGES.txt README.md
2d1a8dc
2d1a8dc
2d1a8dc
%if %{with haddock}
2d1a8dc
%files doc -f %{name}-doc.files
2d1a8dc
%license LICENSE
2d1a8dc
%endif
2d1a8dc
2d1a8dc
2d1a8dc
%if %{with ghc_prof}
2d1a8dc
%files prof -f %{name}-prof.files
2d1a8dc
%endif
2d1a8dc
2d1a8dc
2d1a8dc
%changelog
8878f9d
* Fri Jul 17 2020 Jens Petersen <petersen@redhat.com> - 3.3.1-2
8878f9d
- refresh to cabal-rpm-2.0.6
8878f9d
2d1a8dc
* Tue Jun 23 2020 Jens Petersen <petersen@redhat.com> - 3.3.1-1
2d1a8dc
- spec file generated by cabal-rpm-2.0.6