## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 caseinsensitive case-insensitive-1.2.1.0 %global cereal cereal-0.5.8.3 %global resourcet resourcet-1.3.0 %global conduit conduit-1.3.6.1 %global conduitextra conduit-extra-1.3.7 %global conduitzstd conduit-zstd-0.0.2.0 %global digest digest-0.0.2.1 %global dlist dlist-1.0 %global monadcontrol monad-control-1.0.3.1 %global bzlibconduit bzlib-conduit-0.3.0.4 %global subpkgs %{caseinsensitive} %{cereal} %{resourcet} %{conduit} %{conduitextra} %{conduitzstd} %{digest} %{dlist} %{monadcontrol} %{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/%{caseinsensitive}/%{caseinsensitive}.tar.gz Source2: https://hackage.haskell.org/package/%{cereal}/%{cereal}.tar.gz Source3: https://hackage.haskell.org/package/%{conduit}/%{conduit}.tar.gz Source4: https://hackage.haskell.org/package/%{conduitextra}/%{conduitextra}.tar.gz Source5: https://hackage.haskell.org/package/%{conduitzstd}/%{conduitzstd}.tar.gz Source6: https://hackage.haskell.org/package/%{digest}/%{digest}.tar.gz Source7: https://hackage.haskell.org/package/%{dlist}/%{dlist}.tar.gz Source8: https://hackage.haskell.org/package/%{monadcontrol}/%{monadcontrol}.tar.gz Source9: https://hackage.haskell.org/package/%{resourcet}/%{resourcet}.tar.gz Source10: 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 'case-insensitive': BuildRequires: ghc-deepseq-devel BuildRequires: ghc-hashable-devel %if %{with ghc_prof} BuildRequires: ghc-deepseq-prof BuildRequires: ghc-hashable-prof %endif # for missing dep 'cereal': BuildRequires: ghc-array-devel %if %{with ghc_prof} BuildRequires: ghc-array-prof %endif # for missing dep 'conduit': BuildRequires: ghc-mono-traversable-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-unliftio-core-devel BuildRequires: ghc-vector-devel %if %{with ghc_prof} BuildRequires: ghc-mono-traversable-prof BuildRequires: ghc-primitive-prof BuildRequires: ghc-unliftio-core-prof BuildRequires: ghc-vector-prof %endif # for missing dep 'conduit-extra': BuildRequires: ghc-async-devel BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-network-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-process-devel BuildRequires: ghc-stm-devel BuildRequires: ghc-streaming-commons-devel BuildRequires: ghc-typed-process-devel #BuildRequires: ghc-unliftio-core-devel %if %{with ghc_prof} BuildRequires: ghc-async-prof BuildRequires: ghc-attoparsec-prof BuildRequires: ghc-network-prof BuildRequires: ghc-primitive-prof BuildRequires: ghc-process-prof BuildRequires: ghc-stm-prof BuildRequires: ghc-streaming-commons-prof BuildRequires: ghc-typed-process-prof #BuildRequires: ghc-unliftio-core-prof %endif # for missing dep 'conduit-zstd': BuildRequires: ghc-zstd-devel %if %{with ghc_prof} BuildRequires: ghc-zstd-prof %endif # for missing dep 'dlist': BuildRequires: ghc-deepseq-devel %if %{with ghc_prof} BuildRequires: ghc-deepseq-prof %endif # for missing dep 'monad-control': BuildRequires: ghc-stm-devel BuildRequires: ghc-transformers-compat-devel %if %{with ghc_prof} BuildRequires: ghc-stm-prof BuildRequires: ghc-transformers-compat-prof %endif # for missing dep 'resourcet': #BuildRequires: ghc-primitive-devel #BuildRequires: ghc-unliftio-core-devel %if %{with ghc_prof} #BuildRequires: ghc-primitive-prof #BuildRequires: ghc-unliftio-core-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 BSD-3-Clause %{caseinsensitive} %ghc_lib_subpackage -l BSD-3-Clause %{cereal} %ghc_lib_subpackage -l BSD-3-Clause %{resourcet} %ghc_lib_subpackage -l MIT %{conduit} %ghc_lib_subpackage -l MIT %{conduitextra} %ghc_lib_subpackage -l MIT %{conduitzstd} %ghc_lib_subpackage -l BSD-2-Clause %{digest} %ghc_lib_subpackage -l BSD-3-Clause %{dlist} %ghc_lib_subpackage -l BSD-3-Clause %{monadcontrol} %ghc_lib_subpackage -l BSD-3-Clause %{bzlibconduit} %endif %global version %{main_version} %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 # End cabal-rpm setup pushd %{conduitextra} cabal-tweak-dep-ver streaming-commons '>= 0.2.3.0' '>= 0.2.2.0' popd %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-1 - Initial package ## END: Generated by rpmautospec