# generated by cabal-rpm-2.0.11 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name hasktags %global pkgver %{pkg_name}-%{version} %bcond_without tests Name: %{pkg_name} Version: 0.72.0 Release: 1%{?dist} Summary: Produces ctags "tags" and etags "TAGS" files for Haskell programs License: BSD Url: https://hackage.haskell.org/package/%{name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz Source1: https://hackage.haskell.org/package/%{pkgver}/%{name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: dos2unix BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-containers-prof BuildRequires: ghc-directory-prof BuildRequires: ghc-filepath-prof BuildRequires: ghc-json-prof BuildRequires: ghc-microlens-platform-prof BuildRequires: ghc-optparse-applicative-prof BuildRequires: ghc-utf8-string-prof %if %{with tests} BuildRequires: ghc-HUnit-devel %endif # End cabal-rpm deps %description Produces ctags "tags" and etags "TAGS" files for Haskell programs. %package -n ghc-%{name} Summary: Haskell %{name} library %description -n ghc-%{name} This package provides the Haskell %{name} shared library. %package -n ghc-%{name}-devel Summary: Haskell %{name} library development files Provides: ghc-%{name}-static = %{version}-%{release} Provides: ghc-%{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} %endif Requires: ghc-%{name}%{?_isa} = %{version}-%{release} %description -n ghc-%{name}-devel This package provides the Haskell %{name} library development files. %if %{with haddock} %package -n ghc-%{name}-doc Summary: Haskell %{name} library documentation BuildArch: noarch Requires: ghc-filesystem %description -n ghc-%{name}-doc This package provides the Haskell %{name} library documentation. %endif %if %{with ghc_prof} %package -n ghc-%{name}-prof Summary: Haskell %{name} profiling library Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release} Supplements: (ghc-%{name}-devel and ghc-prof) %description -n ghc-%{name}-prof This package provides the Haskell %{name} profiling library. %endif %prep # Begin cabal-rpm setup: %setup -q dos2unix -k -n %{SOURCE1} %{name}.cabal # End cabal-rpm setup %build # Begin cabal-rpm build: %ghc_lib_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_lib_install mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/ %{buildroot}%{_bindir}/%{name} --bash-completion-script %{name} | sed s/filenames/default/ > %{buildroot}%{_datadir}/bash-completion/completions/%{name} # End cabal-rpm install %check %if %{with tests} %cabal_test %endif %files # Begin cabal-rpm files: %license LICENSE %{_bindir}/%{name} %{_datadir}/bash-completion/completions/%{name} # End cabal-rpm files %files -n ghc-%{name} -f ghc-%{name}.files # Begin cabal-rpm files: %license LICENSE # End cabal-rpm files %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files %if %{with haddock} %files -n ghc-%{name}-doc -f ghc-%{name}-doc.files %license LICENSE %endif %if %{with ghc_prof} %files -n ghc-%{name}-prof -f ghc-%{name}-prof.files %endif %changelog * Sat Nov 20 2021 Jens Petersen - 0.72.0-1 - spec file generated by cabal-rpm-2.0.11