## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # generated by cabal-rpm-2.3.0 --subpackage # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name zip %global pkgver %{pkg_name}-%{version} %{?haskell_setup} %global conduitzstd conduit-zstd-0.0.2.0 %global bzlibconduit bzlib-conduit-0.3.0.4 %global subpkgs %{conduitzstd} %{bzlibconduit} # testsuite missing deps: QuickCheck hspec temporary Name: ghc-%{pkg_name} Version: 2.0.1 # can only be reset when all subpkgs bumped Release: %{autorelease} Summary: Operations on zip archives License: BSD-3-Clause URL: https://hackage.haskell.org/package/zip # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz Source1: https://hackage.haskell.org/package/%{conduitzstd}/%{conduitzstd}.tar.gz Source2: https://hackage.haskell.org/package/%{bzlibconduit}/%{bzlibconduit}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros-extra BuildRequires: ghc-base-devel BuildRequires: ghc-bytestring-devel #BuildRequires: ghc-bzlib-conduit-devel BuildRequires: ghc-case-insensitive-devel BuildRequires: ghc-cereal-devel BuildRequires: ghc-conduit-devel BuildRequires: ghc-conduit-extra-devel #BuildRequires: ghc-conduit-zstd-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-digest-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-dlist-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-monad-control-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-resourcet-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-transformers-base-devel BuildRequires: ghc-unix-devel %if %{with ghc_prof} BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof #BuildRequires: ghc-bzlib-conduit-prof BuildRequires: ghc-case-insensitive-prof BuildRequires: ghc-cereal-prof BuildRequires: ghc-conduit-prof BuildRequires: ghc-conduit-extra-prof #BuildRequires: ghc-conduit-zstd-prof BuildRequires: ghc-containers-prof BuildRequires: ghc-digest-prof BuildRequires: ghc-directory-prof BuildRequires: ghc-dlist-prof BuildRequires: ghc-exceptions-prof BuildRequires: ghc-filepath-prof BuildRequires: ghc-monad-control-prof BuildRequires: ghc-mtl-prof BuildRequires: ghc-resourcet-prof BuildRequires: ghc-text-prof BuildRequires: ghc-time-prof BuildRequires: ghc-transformers-prof BuildRequires: ghc-transformers-base-prof BuildRequires: ghc-unix-prof %endif # for missing dep 'conduit-zstd': BuildRequires: ghc-zstd-devel %if %{with ghc_prof} BuildRequires: ghc-zstd-prof %endif # End cabal-rpm deps # for missing dep 'bzlib-conduit': BuildRequires: ghc-bindings-DSL-devel BuildRequires: ghc-data-default-class-devel %if %{with ghc_prof} BuildRequires: ghc-bindings-DSL-prof BuildRequires: ghc-data-default-class-prof %endif BuildRequires: gcc-c++ BuildRequires: bzip2-devel %description Operations on zip archives. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Provides: %{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. %if %{with haddock} %package doc Summary: Haskell %{pkg_name} library documentation BuildArch: noarch Requires: ghc-filesystem %description doc This package provides the Haskell %{pkg_name} library documentation. %endif %if %{with ghc_prof} %package prof Summary: Haskell %{pkg_name} profiling library Requires: %{name}-devel%{?_isa} = %{version}-%{release} Supplements: (%{name}-devel and ghc-prof) %description prof This package provides the Haskell %{pkg_name} profiling library. %endif %global main_version %{version} %if %{defined ghclibdir} %ghc_lib_subpackage -l MIT %{conduitzstd} %ghc_lib_subpackage -l BSD-3-Clause %{bzlibconduit} %endif %global version %{main_version} %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -a1 -a2 # End cabal-rpm setup %build # Begin cabal-rpm build: %ghc_libs_build %{subpkgs} %ghc_lib_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_libs_install %{subpkgs} %ghc_lib_install # End cabal-rpm install # Remove bzlib-conduit samples rm -rf %{buildroot}%{_datadir}/%{bzlibconduit}/test %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE.md # End cabal-rpm files %files devel -f %{name}-devel.files %doc CHANGELOG.md README.md %{_bindir}/haskell-zip-app %if %{with haddock} %files doc -f %{name}-doc.files %license LICENSE.md %endif %if %{with ghc_prof} %files prof -f %{name}-prof.files %endif %changelog ## START: Generated by rpmautospec * Wed Aug 13 2025 Luca Magrone - 2.0.1-4 - Unbundle dependencies available in repositories * Wed Aug 13 2025 Luca Magrone - 2.0.1-3 - Unbundle ghc-dlist * Wed Aug 13 2025 Luca Magrone - 2.0.1-2 - Fix compatibility with fedora 43+ * Wed Aug 13 2025 Luca Magrone - 2.0.1-1 - Initial package ## END: Generated by rpmautospec