forked from pool/ghc-cairo
osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-cairo revision:4, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-cairo?expand=0&rev=15
This commit is contained in:
commit
709301b3b9
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
cairo-0.13.10.0.tar.gz
Normal file
3
cairo-0.13.10.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ae0218c827c83d419dd01851aa55efd904fb1a879b5d3cee6f62e2871e96bc99
|
||||
size 53346
|
3
cairo-0.13.11.0.tar.gz
Normal file
3
cairo-0.13.11.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:859a2299f902ea113edaf055a139a65955f51d95efd6a79a2c26bb18f724f3f3
|
||||
size 53375
|
100
cairo.cabal
Normal file
100
cairo.cabal
Normal file
@ -0,0 +1,100 @@
|
||||
cabal-version: 3.0
|
||||
Name: cairo
|
||||
Version: 0.13.10.0
|
||||
x-revision: 2
|
||||
License: BSD-3-Clause
|
||||
License-file: COPYRIGHT
|
||||
Copyright: (c) 2001-2010 The Gtk2Hs Team, (c) Paolo Martini 2005, (c) Abraham Egnor 2003, 2004, (c) Aetion Technologies LLC 2004
|
||||
Author: Axel Simon, Duncan Coutts
|
||||
Maintainer: gtk2hs-users@lists.sourceforge.net
|
||||
Build-Type: Custom
|
||||
Stability: stable
|
||||
homepage: http://projects.haskell.org/gtk2hs/
|
||||
bug-reports: https://github.com/gtk2hs/gtk2hs/issues
|
||||
Synopsis: Binding to the Cairo library.
|
||||
Description: Cairo is a library to render high quality vector graphics. There
|
||||
exist various backends that allows rendering to Gtk windows, PDF,
|
||||
PS, PNG and SVG documents, amongst others.
|
||||
Category: Graphics
|
||||
Tested-With: GHC == 7.0.4, GHC == 7.2.2, GHC == 7.4.1
|
||||
extra-source-files: cairo-gtk2hs.h
|
||||
|
||||
Data-Dir: demo
|
||||
Data-Files: cairo-clock-icon.png
|
||||
gtk2/CairoGhci.hs
|
||||
gtk2/Clock.hs
|
||||
gtk2/Drawing2.hs
|
||||
gtk2/Drawing.hs
|
||||
gtk2/Graph.hs
|
||||
gtk2/Makefile
|
||||
gtk2/StarAndRing.hs
|
||||
gtk2/Text.hs
|
||||
gtk3/CairoGhci.hs
|
||||
gtk3/Clock.hs
|
||||
gtk3/Drawing2.hs
|
||||
gtk3/Drawing.hs
|
||||
gtk3/Graph.hs
|
||||
gtk3/Makefile
|
||||
gtk3/StarAndRing.hs
|
||||
gtk3/Text.hs
|
||||
|
||||
Source-Repository head
|
||||
type: git
|
||||
location: https://github.com/gtk2hs/gtk2hs
|
||||
subdir: cairo
|
||||
|
||||
Flag cairo_pdf
|
||||
Description: Build the PDF backend of Cairo.
|
||||
|
||||
Flag cairo_ps
|
||||
Description: Build the PostScript backend of Cairo.
|
||||
|
||||
Flag cairo_svg
|
||||
Description: Build the Scalable Vector Graphics (SVG) backend of Cairo.
|
||||
|
||||
custom-setup
|
||||
setup-depends: base >= 4.6 && <5,
|
||||
Cabal >= 3.0 && < 3.11,
|
||||
gtk2hs-buildtools >= 0.13.2.0 && < 0.14
|
||||
|
||||
Library
|
||||
build-depends: base >= 4.8 && < 5,
|
||||
utf8-string >= 0.2 && < 1.1,
|
||||
text >= 1.0.0.0 && < 2.2,
|
||||
array < 0.6,
|
||||
bytestring < 0.13,
|
||||
mtl < 2.4
|
||||
exposed-modules: Graphics.Rendering.Cairo
|
||||
Graphics.Rendering.Cairo.Matrix
|
||||
Graphics.Rendering.Cairo.Types
|
||||
-- this module is only meant to be used by other
|
||||
-- modules implementing a Cairo interface
|
||||
Graphics.Rendering.Cairo.Internal
|
||||
other-modules:
|
||||
Graphics.Rendering.Cairo.Internal.Drawing.Cairo
|
||||
Graphics.Rendering.Cairo.Internal.Drawing.Paths
|
||||
Graphics.Rendering.Cairo.Internal.Drawing.Patterns
|
||||
Graphics.Rendering.Cairo.Internal.Drawing.Text
|
||||
Graphics.Rendering.Cairo.Internal.Drawing.Transformations
|
||||
Graphics.Rendering.Cairo.Internal.Fonts.FontOptions
|
||||
Graphics.Rendering.Cairo.Internal.Surfaces.Image
|
||||
Graphics.Rendering.Cairo.Internal.Surfaces.PNG
|
||||
Graphics.Rendering.Cairo.Internal.Surfaces.Surface
|
||||
Graphics.Rendering.Cairo.Internal.Utilities
|
||||
Graphics.Rendering.Cairo.Internal.Surfaces.PDF
|
||||
Graphics.Rendering.Cairo.Internal.Surfaces.PS
|
||||
Graphics.Rendering.Cairo.Internal.Surfaces.SVG
|
||||
Graphics.Rendering.Cairo.Internal.Region
|
||||
default-language: Haskell98
|
||||
default-extensions: ForeignFunctionInterface
|
||||
Include-dirs: .
|
||||
x-c2hs-Header: cairo-gtk2hs.h
|
||||
pkgconfig-depends: cairo >= 1.2.0
|
||||
if flag(cairo_pdf)
|
||||
pkgconfig-depends: cairo-pdf
|
||||
if flag(cairo_ps)
|
||||
pkgconfig-depends: cairo-ps
|
||||
if flag(cairo_svg)
|
||||
pkgconfig-depends: cairo-svg
|
||||
if os(darwin) || os(freebsd)
|
||||
cpp-options: -D__attribute__(A)= -D_Nullable= -D_Nonnull= -D_Noreturn=
|
34
ghc-cairo.changes
Normal file
34
ghc-cairo.changes
Normal file
@ -0,0 +1,34 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 13 13:00:01 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update cairo to version 0.13.11.0.
|
||||
Upstream does not provide a change log file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 20 12:04:02 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update cairo to version 0.13.10.0 revision 2.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 6 17:17:04 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update cairo to version 0.13.10.0 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 12 14:29:48 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update cairo to version 0.13.10.0.
|
||||
Upstream does not provide a change log file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 30 17:06:07 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 24 09:06:48 UTC 2022 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Add cairo at version 0.13.8.2.
|
||||
|
133
ghc-cairo.spec
Normal file
133
ghc-cairo.spec
Normal file
@ -0,0 +1,133 @@
|
||||
#
|
||||
# spec file for package ghc-cairo
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global pkg_name cairo
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.13.11.0
|
||||
Release: 0
|
||||
Summary: Binding to the Cairo library
|
||||
License: BSD-3-Clause
|
||||
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-Cabal-prof
|
||||
BuildRequires: ghc-array-devel
|
||||
BuildRequires: ghc-array-prof
|
||||
BuildRequires: ghc-base-devel
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-bytestring-prof
|
||||
BuildRequires: ghc-gtk2hs-buildtools-devel
|
||||
BuildRequires: ghc-gtk2hs-buildtools-prof
|
||||
BuildRequires: ghc-mtl-devel
|
||||
BuildRequires: ghc-mtl-prof
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-text-prof
|
||||
BuildRequires: ghc-utf8-string-devel
|
||||
BuildRequires: ghc-utf8-string-prof
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(cairo)
|
||||
BuildRequires: pkgconfig(cairo-pdf)
|
||||
BuildRequires: pkgconfig(cairo-ps)
|
||||
BuildRequires: pkgconfig(cairo-svg)
|
||||
ExcludeArch: %{ix86}
|
||||
|
||||
%description
|
||||
Cairo is a library to render high quality vector graphics. There exist various
|
||||
backends that allows rendering to Gtk windows, PDF, PS, PNG and SVG documents,
|
||||
amongst others.
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
Requires: pkgconfig
|
||||
Requires: pkgconfig(cairo)
|
||||
Requires: pkgconfig(cairo-pdf)
|
||||
Requires: pkgconfig(cairo-ps)
|
||||
Requires: pkgconfig(cairo-svg)
|
||||
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}-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
|
||||
%autosetup -n %{pkg_name}-%{version}
|
||||
|
||||
%build
|
||||
%ghc_lib_build
|
||||
|
||||
%install
|
||||
%ghc_lib_install
|
||||
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
%files -f %{name}.files
|
||||
%license COPYRIGHT
|
||||
%dir %{_datadir}/%{pkg_name}-%{version}
|
||||
%dir %{_datadir}/%{pkg_name}-%{version}/gtk2
|
||||
%dir %{_datadir}/%{pkg_name}-%{version}/gtk3
|
||||
%{_datadir}/%{pkg_name}-%{version}/cairo-clock-icon.png
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk2/CairoGhci.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk2/Clock.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk2/Drawing.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk2/Drawing2.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk2/Graph.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk2/Makefile
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk2/StarAndRing.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk2/Text.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk3/CairoGhci.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk3/Clock.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk3/Drawing.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk3/Drawing2.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk3/Graph.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk3/Makefile
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk3/StarAndRing.hs
|
||||
%{_datadir}/%{pkg_name}-%{version}/gtk3/Text.hs
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
|
||||
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
||||
%license COPYRIGHT
|
||||
|
||||
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user