osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-hslua-module-zip revision:4, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua-module-zip?expand=0&rev=13
This commit is contained in:
Peter Simons 2024-09-01 21:00:47 +00:00 committed by Git OBS Bridge
commit 119f441f29
6 changed files with 295 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,56 @@
-------------------------------------------------------------------
Sat Aug 31 20:11:55 UTC 2024 - Peter Simons <psimons@suse.com>
- Update hslua-module-zip to version 1.1.3 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Sun May 5 19:11:49 UTC 2024 - Peter Simons <psimons@suse.com>
- Update hslua-module-zip to version 1.1.3.
## hslua-module-zip-1.1.3
Released 2024-05-05.
- Fix build on Windows. There are no symlinks on Windows;
functions dealing with symlinks are missing from zip-archive
and need a placeholder function.
## hslua-module-zip-1.1.2
Released 2024-05-05.
- Added a `symlink` method to Entry objects. This allows to
check whether an entry represents a symbolic link, and where
it links.
-------------------------------------------------------------------
Thu Jan 18 17:35:35 UTC 2024 - Peter Simons <psimons@suse.com>
- Update hslua-module-zip to version 1.1.1.
## hslua-module-zip-1.1.1
Released 2024-01-18.
- Relaxed upper bound for text, and filepath,
allowing text-2.1, filepath-1.5.
-------------------------------------------------------------------
Thu Apr 13 12:06:24 UTC 2023 - Peter Simons <psimons@suse.com>
- Update hslua-module-zip to version 1.1.0.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/hslua-module-zip-1.1.0/src/CHANGELOG.md
-------------------------------------------------------------------
Thu Mar 30 17:07:05 UTC 2023 - Peter Simons <psimons@suse.com>
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
-------------------------------------------------------------------
Thu Oct 20 12:35:28 UTC 2022 - Peter Simons <psimons@suse.com>
- Add hslua-module-zip at version 1.0.0.

127
ghc-hslua-module-zip.spec Normal file
View File

@ -0,0 +1,127 @@
#
# spec file for package ghc-hslua-module-zip
#
# 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 hslua-module-zip
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.1.3
Release: 0
Summary: Lua module to work with file zips
License: MIT
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-hslua-core-devel
BuildRequires: ghc-hslua-core-prof
BuildRequires: ghc-hslua-list-devel
BuildRequires: ghc-hslua-list-prof
BuildRequires: ghc-hslua-marshalling-devel
BuildRequires: ghc-hslua-marshalling-prof
BuildRequires: ghc-hslua-packaging-devel
BuildRequires: ghc-hslua-packaging-prof
BuildRequires: ghc-hslua-typing-devel
BuildRequires: ghc-hslua-typing-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-text-devel
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-devel
BuildRequires: ghc-time-prof
BuildRequires: ghc-zip-archive-devel
BuildRequires: ghc-zip-archive-prof
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-hslua-module-system-devel
BuildRequires: ghc-hslua-module-system-prof
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-hunit-prof
BuildRequires: ghc-tasty-lua-devel
BuildRequires: ghc-tasty-lua-prof
BuildRequires: ghc-tasty-prof
%endif
%description
Module with function for creating, modifying, and extracting files from zip
archives.
%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}-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}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
%install
%ghc_lib_install
%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 CHANGELOG.md README.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

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d84f70c3b395a1e7a01d44d276a57d7eabfeb847c217501f8d98ffe0b82c9abb
size 8155

85
hslua-module-zip.cabal Normal file
View File

@ -0,0 +1,85 @@
cabal-version: 2.2
name: hslua-module-zip
version: 1.1.3
x-revision: 1
synopsis: Lua module to work with file zips.
description: Module with function for creating, modifying, and
extracting files from zip archives.
homepage: https://hslua.org/
bug-reports: https://github.com/hslua/hslua/issues
license: MIT
license-file: LICENSE
author: Albert Krewinkel
maintainer: Albert Krewinkel <tarleb@hslua.org>
copyright: © 2020-2024 Albert Krewinkel
category: Foreign
build-type: Simple
extra-doc-files: README.md
CHANGELOG.md
extra-source-files: test/test-zip.lua
tested-with: GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.8
, GHC == 9.4.8
, GHC == 9.6.3
, GHC == 9.8.1
source-repository head
type: git
location: https://github.com/hslua/hslua
subdir: hslua-module-zip
common common-options
build-depends: base >= 4.11 && < 5
, bytestring
, filepath >= 1.4 && < 1.6
, hslua-core >= 2.3 && < 2.4
, hslua-list >= 1.1 && < 1.2
, hslua-marshalling >= 2.3 && < 2.4
, hslua-packaging >= 2.3 && < 2.4
, hslua-typing >= 0.1 && < 0.2
, text >= 1.2 && < 2.2
, time >= 1.5 && < 1.15
, zip-archive >= 0.4 && < 0.5
ghc-options: -Wall
-Wcompat
-Widentities
-Wincomplete-uni-patterns
-Wincomplete-record-updates
if impl(ghc >= 8.0)
ghc-options: -Wredundant-constraints
if impl(ghc >= 8.2)
ghc-options: -fhide-source-paths
if impl(ghc >= 8.4)
ghc-options: -Wmissing-export-lists
-Wpartial-fields
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
default-language: Haskell2010
library
import: common-options
hs-source-dirs: src
exposed-modules: HsLua.Module.Zip
if os(windows)
cpp-options: -D_WINDOWS
test-suite hslua-module-zip-test
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: test-hslua-module-zip.hs
build-depends: hslua-module-zip
, hslua-module-system
, tasty
, tasty-hunit
, tasty-lua >= 1.0 && < 1.2
, text
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N