ghc-dbus/ghc-dbus.spec

177 lines
4.4 KiB
RPMSpec
Raw Normal View History

2023-01-22 14:31:23 +00:00
# generated by cabal-rpm-2.1.0
2020-06-04 11:26:03 +00:00
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name dbus
2017-02-24 08:48:12 +00:00
%global pkgver %{pkg_name}-%{version}
# requires network
%bcond_with tests
2014-06-10 04:45:30 +00:00
Name: ghc-%{pkg_name}
2023-01-22 14:31:23 +00:00
Version: 1.2.27
Release: %autorelease
2019-02-21 02:15:20 +00:00
Summary: A client library for the D-Bus IPC system
2023-01-22 14:31:23 +00:00
License: Apache-2.0
2015-01-27 14:36:24 +00:00
Url: https://hackage.haskell.org/package/%{pkg_name}
2019-02-17 14:44:20 +00:00
# Begin cabal-rpm sources:
2017-02-24 08:48:12 +00:00
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2019-02-17 14:44:20 +00:00
# End cabal-rpm sources
Patch0: dbus-disable-test_ListenUnix_InvalidBind.patch
2019-02-17 14:44:20 +00:00
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
2023-01-22 14:31:23 +00:00
BuildRequires: ghc-base-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-cereal-devel
BuildRequires: ghc-conduit-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-lens-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-random-devel
BuildRequires: ghc-split-devel
BuildRequires: ghc-template-haskell-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-th-lift-devel
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-vector-devel
BuildRequires: ghc-xml-conduit-devel
BuildRequires: ghc-xml-types-devel
%if %{with ghc_prof}
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-cereal-prof
BuildRequires: ghc-conduit-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-exceptions-prof
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-lens-prof
BuildRequires: ghc-network-prof
BuildRequires: ghc-parsec-prof
BuildRequires: ghc-random-prof
BuildRequires: ghc-split-prof
BuildRequires: ghc-template-haskell-prof
BuildRequires: ghc-text-prof
BuildRequires: ghc-th-lift-prof
BuildRequires: ghc-transformers-prof
BuildRequires: ghc-unix-prof
BuildRequires: ghc-vector-prof
BuildRequires: ghc-xml-conduit-prof
BuildRequires: ghc-xml-types-prof
2023-01-22 14:31:23 +00:00
%endif
2014-06-10 04:45:30 +00:00
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-directory-devel
2018-01-24 14:27:42 +00:00
BuildRequires: ghc-extra-devel
2014-06-10 04:45:30 +00:00
BuildRequires: ghc-process-devel
2018-01-24 14:27:42 +00:00
BuildRequires: ghc-resourcet-devel
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-quickcheck-devel
2014-06-10 04:45:30 +00:00
%endif
# End cabal-rpm deps
2019-03-05 08:19:45 +00:00
%if %{with tests}
BuildRequires: dbus-daemon
%endif
%description
D-Bus is a simple, message-based protocol for inter-process communication,
which allows applications to interact with other parts of the machine and the
user's session using remote procedure calls.
This library is an implementation of the D-Bus protocol in Haskell. It can be
used to add D-Bus support to Haskell applications, without the awkward
interfaces common to foreign bindings.
%package devel
Summary: Haskell %{pkg_name} library development files
2014-06-10 04:45:30 +00:00
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
2018-01-24 13:10:58 +00:00
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
2018-01-24 13:10:58 +00:00
%endif
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
2014-06-10 04:45:30 +00:00
This package provides the Haskell %{pkg_name} library development files.
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
2020-02-08 14:49:51 +00:00
BuildArch: noarch
2021-07-07 16:30:10 +00:00
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}
2020-02-08 14:49:51 +00:00
Supplements: (%{name}-devel and ghc-prof)
%description prof
This package provides the Haskell %{pkg_name} profiling library.
%endif
%prep
2019-02-17 14:44:20 +00:00
# Begin cabal-rpm setup:
2017-02-24 08:48:12 +00:00
%setup -q -n %{pkgver}
2019-02-17 14:44:20 +00:00
# End cabal-rpm setup
%patch0 -p1 -b .orig
%build
2019-02-17 14:44:20 +00:00
# Begin cabal-rpm build:
%ghc_lib_build
2019-02-17 14:44:20 +00:00
# End cabal-rpm build
%install
2019-02-17 14:44:20 +00:00
# Begin cabal-rpm install
%ghc_lib_install
2019-02-17 14:44:20 +00:00
# End cabal-rpm install
2014-06-10 04:45:30 +00:00
%check
2021-07-07 16:30:10 +00:00
%if %{with tests}
2016-09-27 10:15:30 +00:00
%cabal_test
2021-07-07 16:30:10 +00:00
%endif
2014-06-10 04:45:30 +00:00
%files -f %{name}.files
2019-02-17 14:44:20 +00:00
# Begin cabal-rpm files:
2016-09-28 09:32:22 +00:00
%license license.txt
2019-02-17 14:44:20 +00:00
# End cabal-rpm files
%files devel -f %{name}-devel.files
%doc examples
%if %{with haddock}
%files doc -f %{name}-doc.files
2020-02-08 14:49:51 +00:00
%license license.txt
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
%endif
%changelog
%autochangelog