17
0

10 Commits

Author SHA256 Message Date
e5a6287a36 Accepting request 1312102 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1312102
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-hslua-module-system?expand=0&rev=18
2025-10-18 12:36:34 +00:00
e55d976d91 osc copypac from project:devel:languages:haskell:ghc-9.12.x package:ghc-hslua-module-system revision:4, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua-module-system?expand=0&rev=46
2025-10-11 21:00:44 +00:00
15a0316d68 Accepting request 1299949 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1299949
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-hslua-module-system?expand=0&rev=17
2025-08-17 12:50:04 +00:00
7cab250064 osc copypac from project:devel:languages:haskell:ghc-9.12.x package:ghc-hslua-module-system revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua-module-system?expand=0&rev=44
2025-08-10 21:01:09 +00:00
1975319f7c Accepting request 1296440 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1296440
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-hslua-module-system?expand=0&rev=16
2025-07-31 15:45:34 +00:00
266a76cc09 osc copypac from project:devel:languages:haskell:ghc-9.12.x package:ghc-hslua-module-system revision:2, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua-module-system?expand=0&rev=42
2025-07-28 18:49:00 +00:00
1ca7a24eb2 Accepting request 1289421 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1289421
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-hslua-module-system?expand=0&rev=15
2025-07-02 10:08:52 +00:00
4420624157 osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-hslua-module-system revision:4, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua-module-system?expand=0&rev=40
2025-07-01 07:15:20 +00:00
efcefcb155 Accepting request 1279244 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1279244
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-hslua-module-system?expand=0&rev=14
2025-05-22 14:57:10 +00:00
ea121e0bf9 osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-hslua-module-system revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua-module-system?expand=0&rev=38
2025-05-22 10:58:58 +00:00
5 changed files with 186 additions and 6 deletions

View File

@@ -1,3 +1,88 @@
-------------------------------------------------------------------
Fri Oct 10 14:02:55 UTC 2025 - Peter Simons <psimons@suse.com>
- Update hslua-module-system to version 1.2.3 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Sat Aug 9 18:32:48 UTC 2025 - Peter Simons <psimons@suse.com>
- Update hslua-module-system to version 1.2.3.
## hslua-module-system-1.2.2
Released 2025-08-09.
- Fix compilation error.
## hslua-module-system-1.2.2
Released 2025-08-09.
- Lists of file paths now have a "FilePath list" metatable that
add list methods.
-------------------------------------------------------------------
Wed Jul 23 17:22:10 UTC 2025 - Peter Simons <psimons@suse.com>
- Update hslua-module-system to version 1.2.1.1.
## hslua-module-system-1.2.1.1
Released 2025-07-23.
- Fixed the docstring of `exists`.
## hslua-module-system-1.2.1
Released 2025-07-23.
- Add new function `exists`, which allows to check the existance
and, optionally, type of a filesystem object at the given
path.
-------------------------------------------------------------------
Mon Jun 23 10:16:38 UTC 2025 - Peter Simons <psimons@suse.com>
- Update hslua-module-system to version 1.2.0.
## hslua-module-system-1.2.0
Released 2025-06-23.
- Added new functions `read_file` and `write_file`: These are
convenience functions that makes it easier to work with UTF-8
encoded filenames. The functions in the Lua standard library
expect filenames encoded in the system's codepage, often
leading to subtle bugs.
- Added new functions `cp`, `rename`, and `rm`, which can be
used similar to the functions in the `os` standard library,
but expect paths to be given as UTF-8 instead of a file system
specific encoding.
- Added new function `times`: the function allows to obtain the
modification time and access time of a file or directory.
- Added new function `xdg`: this function gives easy access to
XDG directories and search paths.
- Fixed module export list: the function `cmd` was only added to
the Lua module, but not exported from the Haskell module.
Instead, `HsLua.Core.run` was erroneously reexported.
-------------------------------------------------------------------
Wed May 21 13:59:57 UTC 2025 - Peter Simons <psimons@suse.com>
- Update hslua-module-system to version 1.1.3.
## hslua-module-system-1.1.3
Released 2025-05-21.
- Improved docs for the `os` field.
- Added new function `cmd` that runs system commands.
- Moved `CHANGELOG.md` to the `extra-doc-files` field in the
cabal file and also added `README.md` to that field.
-------------------------------------------------------------------
Tue May 28 08:38:56 UTC 2024 - Peter Simons <psimons@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package ghc-hslua-module-system
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,30 +20,39 @@
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.1.2
Version: 1.2.3
Release: 0
Summary: Lua module wrapper around Haskell's System module
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-directory-devel
BuildRequires: ghc-directory-prof
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-exceptions-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-process-devel
BuildRequires: ghc-process-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-temporary-devel
BuildRequires: ghc-temporary-prof
BuildRequires: ghc-text-devel
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-devel
BuildRequires: ghc-time-prof
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-tasty-devel
@@ -90,6 +99,7 @@ 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
@@ -110,7 +120,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%license LICENSE
%files devel -f %{name}-devel.files
%doc CHANGELOG.md
%doc CHANGELOG.md README.md
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE

View File

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

View File

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

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

@@ -0,0 +1,85 @@
cabal-version: 2.2
name: hslua-module-system
version: 1.2.3
x-revision: 1
synopsis: Lua module wrapper around Haskell's System module.
description: Provides access to system information and
functionality to Lua scripts via Haskell's `System`
module.
.
This package is part of HsLua, a Haskell framework
built around the embeddable scripting language
<https://lua.org Lua>.
homepage: https://github.com/hslua/hslua
license: MIT
license-file: LICENSE
author: Albert Krewinkel
maintainer: tarleb@hslua.org
copyright: © 2019-2025 Albert Krewinkel <tarleb@hslua.org>
category: Foreign
extra-source-files: test/test-system.lua
extra-doc-files: CHANGELOG.md
, README.md
tested-with: GHC == 8.8.4
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.8
, GHC == 9.4.8
, GHC == 9.6.7
, GHC == 9.8.4
, GHC == 9.10.2
, GHC == 9.12.2
source-repository head
type: git
location: https://github.com/hslua/hslua.git
subdir: hslua-module-system
common common-options
default-language: Haskell2010
build-depends: base >= 4.11 && < 5
, hslua-core >= 2.1 && < 2.4
, hslua-packaging >= 2.3 && < 2.4
default-extensions: LambdaCase
, OverloadedStrings
ghc-options: -Wall
-Wcpp-undef
-Werror=missing-home-modules
-Widentities
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wnoncanonical-monad-instances
-Wpartial-fields
-Wredundant-constraints
-fhide-source-paths
if impl(ghc >= 8.10)
ghc-options: -Wunused-packages
if impl(ghc >= 9.0)
ghc-options: -Winvalid-haddock
library
import: common-options
build-depends: bytestring >= 0.10.2 && < 0.13
, directory >= 1.3.2 && < 1.4
, exceptions >= 0.8 && < 0.11
, hslua-list >= 1.1 && < 1.2
, hslua-marshalling >= 2.1 && < 2.4
, process >= 1.2.3 && < 1.7
, temporary >= 1.2 && < 1.4
, text >= 1.2 && < 2.2
, time >= 1.9 && < 1.16
exposed-modules: HsLua.Module.System
other-modules: HsLua.Module.SystemUtils
hs-source-dirs: src
test-suite test-hslua-module-system
import: common-options
type: exitcode-stdio-1.0
main-is: test-hslua-module-system.hs
hs-source-dirs: test
build-depends: hslua-module-system
, tasty >= 0.11
, tasty-hunit >= 0.9
, tasty-lua >= 1.0 && < 1.2