osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-persistent-sqlite revision:5, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-persistent-sqlite?expand=0&rev=26
This commit is contained in:
Peter Simons 2023-03-30 08:26:29 +00:00 committed by Git OBS Bridge
parent 390294a9a2
commit 77dcb1f0c5

View File

@ -17,6 +17,7 @@
%global pkg_name persistent-sqlite %global pkg_name persistent-sqlite
%global pkgver %{pkg_name}-%{version}
%bcond_with tests %bcond_with tests
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 2.13.1.1 Version: 2.13.1.1
@ -27,35 +28,62 @@ URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-aeson-devel BuildRequires: ghc-aeson-devel
BuildRequires: ghc-aeson-prof
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-conduit-devel BuildRequires: ghc-conduit-devel
BuildRequires: ghc-conduit-prof
BuildRequires: ghc-containers-devel BuildRequires: ghc-containers-devel
BuildRequires: ghc-containers-prof
BuildRequires: ghc-microlens-th-devel BuildRequires: ghc-microlens-th-devel
BuildRequires: ghc-microlens-th-prof
BuildRequires: ghc-monad-logger-devel BuildRequires: ghc-monad-logger-devel
BuildRequires: ghc-monad-logger-prof
BuildRequires: ghc-mtl-devel BuildRequires: ghc-mtl-devel
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-persistent-devel BuildRequires: ghc-persistent-devel
BuildRequires: ghc-persistent-prof
BuildRequires: ghc-resource-pool-devel BuildRequires: ghc-resource-pool-devel
BuildRequires: ghc-resource-pool-prof
BuildRequires: ghc-resourcet-devel BuildRequires: ghc-resourcet-devel
BuildRequires: ghc-resourcet-prof
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
BuildRequires: ghc-text-devel BuildRequires: ghc-text-devel
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-devel BuildRequires: ghc-time-devel
BuildRequires: ghc-time-prof
BuildRequires: ghc-transformers-devel BuildRequires: ghc-transformers-devel
BuildRequires: ghc-transformers-prof
BuildRequires: ghc-unliftio-core-devel BuildRequires: ghc-unliftio-core-devel
BuildRequires: ghc-unliftio-core-prof
BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-unordered-containers-prof
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: sqlite3-devel BuildRequires: sqlite3-devel
ExcludeArch: %{ix86} ExcludeArch: %{ix86}
%if %{with tests} %if %{with tests}
BuildRequires: ghc-HUnit-devel BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-HUnit-prof
BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-QuickCheck-prof
BuildRequires: ghc-exceptions-devel BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-exceptions-prof
BuildRequires: ghc-fast-logger-devel BuildRequires: ghc-fast-logger-devel
BuildRequires: ghc-fast-logger-prof
BuildRequires: ghc-hspec-devel BuildRequires: ghc-hspec-devel
BuildRequires: ghc-hspec-prof
BuildRequires: ghc-microlens-devel BuildRequires: ghc-microlens-devel
BuildRequires: ghc-microlens-prof
BuildRequires: ghc-persistent-test-devel BuildRequires: ghc-persistent-test-devel
BuildRequires: ghc-persistent-test-prof
BuildRequires: ghc-system-fileio-devel BuildRequires: ghc-system-fileio-devel
BuildRequires: ghc-system-fileio-prof
BuildRequires: ghc-system-filepath-devel BuildRequires: ghc-system-filepath-devel
BuildRequires: ghc-system-filepath-prof
BuildRequires: ghc-temporary-devel BuildRequires: ghc-temporary-devel
BuildRequires: ghc-temporary-prof
%endif %endif
%description %description
@ -75,6 +103,22 @@ Requires(postun): ghc-compiler = %{ghc_version}
This package provides the Haskell %{pkg_name} library development This package provides the Haskell %{pkg_name} library development
files. files.
%package -n ghc-%{pkg_name}-doc
Summary: Haskell %{pkg_name} library documentation
Requires: ghc-filesystem
BuildArch: noarch
%description -n ghc-%{pkg_name}-doc
This package provides the Haskell %{pkg_name} library documentation.
%package -n ghc-%{pkg_name}-prof
Summary: Haskell %{pkg_name} profiling library
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
%description -n ghc-%{pkg_name}-prof
This package provides the Haskell %{pkg_name} profiling library.
%prep %prep
%autosetup -n %{pkg_name}-%{version} %autosetup -n %{pkg_name}-%{version}
@ -100,4 +144,9 @@ files.
%files devel -f %{name}-devel.files %files devel -f %{name}-devel.files
%doc ChangeLog.md %doc ChangeLog.md
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
%changelog %changelog