# generated by cabal-rpm-2.0.9 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name network-bsd %global pkgver %{pkg_name}-%{version} Name: ghc-%{pkg_name} Version: 2.8.1.0 Release: 10%{?dist} Summary: POSIX network database () API License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof BuildRequires: ghc-deepseq-prof BuildRequires: ghc-network-prof # End cabal-rpm deps %description This package provides Haskell bindings to the the [POSIX network database () API](http://pubs.opengroup.org/onlinepubs/009696699/basedefs/netdb.h.html). === Relationship to the 'network' package The 'network' package version 2.* series provides "Network.BSD" but it is removed starting with 'network' version 3.0. This package provides the "Network.BSD" module split off from the . If in addition to the 'network''s modules also "Network.BSD" is necessary, add 'network-bsd' to your dependencies like so: > library > build-depends: network >= 2.7 && < 3.1 > , network-bsd >= 2.7 && < 2.9 I.e. you can control the version of the 'network' package independently. __NOTE__: Starting with 'network-bsd-2.8.1.0' the APIs of 'network' and 'network-bsd' evolve differently, and consequently the versioning doesn't match up anymore! Moreover, also starting with version 'network-bsd-2.8.1.0' this package requires 'network >= 3' in order to avoid module name clashes with 'network < 3''s "Network.BSD" module. However, 'network-bsd-2.7.0.0' and 'network-bsd-2.8.0.0' passes thru the "Network.BSD" module from 'network-2.7.*' and 'network-2.8.*' respectively in a non-clashing way via Cabal's feature while ensuring a well-defined of the observable API of 'network-bsd'. This is why the example above supporting a wide range of 'network' versions works by including version 2.7.0.0 in the required version range of 'network-bsd'. %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 %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} cp -bp %{SOURCE1} %{pkg_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 # End cabal-rpm install %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE # End cabal-rpm files %files devel -f %{name}-devel.files %doc CHANGELOG.md %if %{with haddock} %files doc -f %{name}-doc.files %license LICENSE %endif %if %{with ghc_prof} %files prof -f %{name}-prof.files %endif %changelog * Thu Jul 21 2022 Fedora Release Engineering - 2.8.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Jens Petersen - 2.8.1.0-9 - rebuild * Thu Mar 10 2022 Jens Petersen - 2.8.1.0-8 - rebuild * Thu Jan 20 2022 Fedora Release Engineering - 2.8.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Aug 06 2021 Jens Petersen - 2.8.1.0-6 - rebuild * Thu Jul 22 2021 Fedora Release Engineering - 2.8.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 2.8.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 2.8.1.0-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 2.8.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jun 27 2020 Jens Petersen - 2.8.1.0-1 - update to 2.8.1.0 * Thu Jun 18 2020 Jens Petersen - 2.8.0.0-1 - spec file generated by cabal-rpm-2.0.6