From 007f79186f75180c35d0a7c985dbd337fb42f106070d2b56ccd9857f97144b9b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Jan 2025 10:11:51 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-unix-compat revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-unix-compat?expand=0&rev=87 --- .gitattributes | 23 +++++ .gitignore | 1 + ghc-unix-compat.changes | 189 +++++++++++++++++++++++++++++++++++++++ ghc-unix-compat.spec | 113 +++++++++++++++++++++++ unix-compat-0.7.1.tar.gz | 3 + unix-compat-0.7.2.tar.gz | 3 + unix-compat-0.7.3.tar.gz | 3 + unix-compat.cabal | 145 ++++++++++++++++++++++++++++++ 8 files changed, 480 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-unix-compat.changes create mode 100644 ghc-unix-compat.spec create mode 100644 unix-compat-0.7.1.tar.gz create mode 100644 unix-compat-0.7.2.tar.gz create mode 100644 unix-compat-0.7.3.tar.gz create mode 100644 unix-compat.cabal diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-unix-compat.changes b/ghc-unix-compat.changes new file mode 100644 index 0000000..504d5c3 --- /dev/null +++ b/ghc-unix-compat.changes @@ -0,0 +1,189 @@ +------------------------------------------------------------------- +Fri Jan 17 15:02:57 UTC 2025 - Peter Simons + +- Update unix-compat to version 0.7.3 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Fri Oct 11 16:49:31 UTC 2024 - Peter Simons + +- Update unix-compat to version 0.7.3. + ## Version 0.7.3 (2024-10-11) + + - Fix `sysmacros.h` include for GNU/Hurd + ([PR #12](https://github.com/haskell-pkg-janitors/unix-compat/pull/12)). + - Tested with GHC 8.0 - 9.10. + +------------------------------------------------------------------- +Tue Jun 25 13:44:12 UTC 2024 - Peter Simons + +- Update unix-compat to version 0.7.2. + 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/unix-compat-0.7.2/src/CHANGELOG.md + +------------------------------------------------------------------- +Wed Dec 6 12:31:37 UTC 2023 - Peter Simons + +- Update unix-compat to version 0.7.1. + 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/unix-compat-0.7.1/src/CHANGELOG.md + +------------------------------------------------------------------- +Wed Mar 30 19:44:09 UTC 2023 - Peter Simons + +- Update unix-compat to version 0.7. + ## Version 0.7 (2023-03-15) + + - Remote `System.PosixCompat.User` module + +------------------------------------------------------------------- +Thu Mar 30 17:08:48 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Thu Sep 29 23:12:17 UTC 2022 - Peter Simons + +- Update unix-compat to version 0.6 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Sun May 22 09:02:51 UTC 2022 - Peter Simons + +- Update unix-compat to version 0.6. + Upstream added a new change log file in this release. With no + previous version to compare against, the automatic updater cannot + reliable determine the relevante entries for this release. + +------------------------------------------------------------------- +Thu Mar 24 18:58:45 UTC 2022 - Peter Simons + +- Update unix-compat to version 0.5.4 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Tue Jan 11 22:05:45 UTC 2022 - Peter Simons + +- Update unix-compat to version 0.5.4. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Mon Nov 15 06:58:12 UTC 2021 - psimons@suse.com + +- Update unix-compat to version 0.5.3 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Sun Jan 24 16:08:26 UTC 2021 - psimons@suse.com + +- Update unix-compat to version 0.5.3. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup + +- disable %{ix86} build + +------------------------------------------------------------------- +Mon Aug 31 09:34:31 UTC 2020 - psimons@suse.com + +- Update unix-compat to version 0.5.2 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Tue Aug 18 10:46:26 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +------------------------------------------------------------------- +Tue Jun 16 11:14:46 UTC 2020 - Peter Simons + +- Re-generate file with latest version of spec-cleaner. + +------------------------------------------------------------------- +Thu May 7 08:08:26 UTC 2020 - Peter Simons + +- Update Cabal file to get more accurate dependency information. + +------------------------------------------------------------------- +Fri Nov 8 16:15:06 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +------------------------------------------------------------------- +Sat Aug 10 02:01:15 UTC 2019 - psimons@suse.com + +- Update unix-compat to version 0.5.2. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Tue Jun 11 14:29:20 UTC 2019 - Peter Simons + +- Update Cabal file for more accurate build dependencies. + +------------------------------------------------------------------- +Sat Oct 20 11:32:11 UTC 2018 - Peter Simons + +- Use https URL to refer to bugs.opensuse.org. + +------------------------------------------------------------------- +Thu Aug 30 15:29:14 UTC 2018 - psimons@suse.com + +- Update unix-compat to version 0.5.1. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Tue Jul 31 14:22:56 UTC 2018 - psimons@suse.com + +- Revise Cabal build instructions to support 'unix' version 2.8.x. + +------------------------------------------------------------------- +Wed Jul 18 14:26:46 UTC 2018 - psimons@suse.com + +- Cosmetic: replace tabs with blanks, strip trailing white space, + and update copyright headers with spec-cleaner. + +------------------------------------------------------------------- +Mon May 14 17:02:11 UTC 2018 - psimons@suse.com + +- Update unix-compat to version 0.5.0.1. + Upstream does not provide a changelog. + +------------------------------------------------------------------- +Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +------------------------------------------------------------------- +Mon Jul 31 03:01:28 UTC 2017 - psimons@suse.com + +- Update to version 0.4.3.1 revision 2. + +------------------------------------------------------------------- +Mon Jan 16 09:44:51 UTC 2017 - psimons@suse.com + +- Update to version 0.4.3.1 revision 1 with cabal2obs. + +------------------------------------------------------------------- +Fri Dec 16 17:59:39 UTC 2016 - psimons@suse.com + +- Update to version 0.4.3.1 with cabal2obs. + +------------------------------------------------------------------- +Thu Sep 15 06:38:56 UTC 2016 - psimons@suse.com + +- Update to version 0.4.2.0 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Sun Jul 10 17:16:42 UTC 2016 - psimons@suse.com + +- Update to version 0.4.1.4 revision 2 with cabal2obs. + +------------------------------------------------------------------- +Thu Apr 23 20:45:13 UTC 2015 - mimi.vx@gmail.com + +- initial commit diff --git a/ghc-unix-compat.spec b/ghc-unix-compat.spec new file mode 100644 index 0000000..12787b3 --- /dev/null +++ b/ghc-unix-compat.spec @@ -0,0 +1,113 @@ +# +# spec file for package ghc-unix-compat +# +# 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 +# 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 unix-compat +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.7.3 +Release: 0 +Summary: Portable POSIX-compatibility layer +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 +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-rpm-macros +BuildRequires: ghc-unix-devel +BuildRequires: ghc-unix-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-HUnit-prof +BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof +BuildRequires: ghc-extra-devel +BuildRequires: ghc-extra-prof +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hspec-prof +BuildRequires: ghc-monad-parallel-devel +BuildRequires: ghc-monad-parallel-prof +BuildRequires: ghc-temporary-devel +BuildRequires: ghc-temporary-prof +%endif + +%description +This package provides portable implementations of parts of the unix package. +This package re-exports the unix package when available. When it isn't +available, portable implementations are used. + +%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 + +%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 diff --git a/unix-compat-0.7.1.tar.gz b/unix-compat-0.7.1.tar.gz new file mode 100644 index 0000000..41c8df0 --- /dev/null +++ b/unix-compat-0.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c04806e8835ac261de6c9b1bbf886dfc1ea3ab38e0b12581f9d2bff18803e33f +size 15463 diff --git a/unix-compat-0.7.2.tar.gz b/unix-compat-0.7.2.tar.gz new file mode 100644 index 0000000..151f77b --- /dev/null +++ b/unix-compat-0.7.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58382c354e9b16a05b427a62f52b60fbc4406ad357bcc951cb76d4134fa6690b +size 15470 diff --git a/unix-compat-0.7.3.tar.gz b/unix-compat-0.7.3.tar.gz new file mode 100644 index 0000000..4972ad5 --- /dev/null +++ b/unix-compat-0.7.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a4fad870952d632d55c8cfe2aad8b55ac95585dacae052fbea4e32968821d87 +size 15593 diff --git a/unix-compat.cabal b/unix-compat.cabal new file mode 100644 index 0000000..0731376 --- /dev/null +++ b/unix-compat.cabal @@ -0,0 +1,145 @@ +cabal-version: >= 1.10 +name: unix-compat +version: 0.7.3 +x-revision: 1 +synopsis: Portable POSIX-compatibility layer. +description: This package provides portable implementations of parts + of the unix package. This package re-exports the unix + package when available. When it isn't available, + portable implementations are used. + +homepage: https://github.com/haskell-pkg-janitors/unix-compat +license: BSD3 +license-file: LICENSE +author: Björn Bringert, Duncan Coutts, Jacob Stanley, Bryan O'Sullivan +maintainer: https://github.com/haskell-pkg-janitors +category: System +build-type: Simple + +tested-with: + GHC == 9.12.1 + GHC == 9.10.1 + GHC == 9.8.4 + GHC == 9.6.6 + GHC == 9.4.8 + GHC == 9.2.8 + GHC == 9.0.2 + GHC == 8.10.7 + GHC == 8.8.4 + GHC == 8.6.5 + GHC == 8.4.4 + GHC == 8.2.2 + GHC == 8.0.2 + +extra-source-files: + CHANGELOG.md + +source-repository head + type: git + location: https://github.com/haskell-pkg-janitors/unix-compat.git + +Library + hs-source-dirs: src + + exposed-modules: + System.PosixCompat + System.PosixCompat.Extensions + System.PosixCompat.Files + System.PosixCompat.Process + System.PosixCompat.Temp + System.PosixCompat.Time + System.PosixCompat.Types + System.PosixCompat.Unistd + + build-depends: base >= 4.9 && < 5 + + if os(windows) + c-sources: + cbits/HsUname.c + cbits/mktemp.c + + extra-libraries: msvcrt + build-depends: Win32 >= 2.5.0.0 && < 3 + build-depends: directory >= 1.3.1 && < 1.4 + build-depends: filepath >= 1.4.1.0 && < 1.6 + build-depends: time >= 1.6.0.1 && < 1.15 + + other-modules: + System.PosixCompat.Internal.Time + + else + build-depends: unix >= 2.7.2.0 && < 2.9 + include-dirs: include + includes: HsUnixCompat.h + install-includes: HsUnixCompat.h + c-sources: cbits/HsUnixCompat.c + if os(solaris) + cc-options: -DSOLARIS + + default-language: Haskell2010 + ghc-options: + -Wall + -Wcompat + +Test-Suite unix-compat-testsuite + type: exitcode-stdio-1.0 + hs-source-dirs: tests + main-is: main.hs + + other-modules: + MkstempSpec + LinksSpec + ProcessSpec + + -- ghc-options: + -- -Wall + -- -fwarn-tabs + -- -funbox-strict-fields + -- -threaded + -- -fno-warn-unused-do-bind + -- -fno-warn-type-defaults + + -- extensions: + -- OverloadedStrings + -- ExtendedDefaultRules + + -- if flag(lifted) + -- cpp-options: -DLIFTED + + build-depends: + unix-compat + , base + , monad-parallel + , hspec >= 2.5.5 + , HUnit + , directory >= 1.3.1.0 + -- directory-1.3.1.0 adds createFileLink + , extra + , temporary + + if os(windows) + -- c-sources: + -- cbits/HsUname.c + -- cbits/mktemp.c + + -- extra-libraries: msvcrt + -- build-depends: Win32 >= 2.5.0.0 + build-depends: time + build-depends: directory + + -- other-modules: + -- System.PosixCompat.Internal.Time + + else + -- build-depends: unix >= 2.4 && < 2.9 + -- include-dirs: include + -- includes: HsUnixCompat.h + -- install-includes: HsUnixCompat.h + -- c-sources: cbits/HsUnixCompat.c + if os(solaris) + cc-options: -DSOLARIS + + default-language: Haskell2010 + ghc-options: + -Wall + -Wcompat