diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-29 01:47:21 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-29 01:47:21 +0000 |
commit | 11a15ecdc3f05fe1b3f88f2f8ff45e66b182e8fd (patch) | |
tree | fd7f4b4f1bc2fe230509b91c6216043628f29641 | |
parent | e5a5079230f7a74512b6ff03359f742a97683f85 (diff) |
automatic import of ghc-colouropeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | ghc-colour.spec | 91 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 93 insertions, 0 deletions
@@ -0,0 +1 @@ +/colour-2.3.6.tar.gz diff --git a/ghc-colour.spec b/ghc-colour.spec new file mode 100644 index 0000000..2e665aa --- /dev/null +++ b/ghc-colour.spec @@ -0,0 +1,91 @@ +%global pkg_name colour +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 2.3.6 +Release: 1 +Summary: A model for human colour/color perception +License: MIT +URL: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-rpm-macros +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-random-devel +BuildRequires: ghc-random-prof +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-prof +BuildRequires: ghc-test-framework-quickcheck2-devel +BuildRequires: ghc-test-framework-quickcheck2-prof +%endif + +%description +This package provides a data type for colours and transparency. +Colours can be blended and composed. Various colour spaces are supported. +A module of colour names ("Data.Colour.Names") is provided. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + +%package -n ghc-%{pkg_name}-help +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch + +%description -n ghc-%{pkg_name}-help +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 +%autosetup -n %{pkg_name}-%{version} + +%build +%ghc_lib_build + +%install +%ghc_lib_install +rm %{buildroot}/%{_datadir}/%{pkg_name}-%{version}/README +rm %{buildroot}/%{_datadir}/%{pkg_name}-%{version}/CHANGELOG + +%check +%cabal_test + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files +%doc README + +%files -n ghc-%{pkg_name}-help -f ghc-%{pkg_name}-help.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog +* Thu Sep 28 2023 Lin Runze <lrzlin@163.com> 2.3.6-1 +- Initial packaging (Version 2.3.6) @@ -0,0 +1 @@ +b4bcf1f92cc0fd0c0166538a8b660900 colour-2.3.6.tar.gz |