From 625609bad81ac8208c742488cd0efe5657f669a9af2afb2925f65f5c82410211 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 30 Mar 2023 08:26:24 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-hjsmin revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hjsmin?expand=0&rev=15 --- ghc-hjsmin.changes | 6 ++++ ghc-hjsmin.spec | 39 +++++++++++++++++++++--- hjsmin-0.2.0.4.tar.gz | 3 -- hjsmin-0.2.1.tar.gz | 3 ++ hjsmin.cabal | 70 ------------------------------------------- 5 files changed, 44 insertions(+), 77 deletions(-) delete mode 100644 hjsmin-0.2.0.4.tar.gz create mode 100644 hjsmin-0.2.1.tar.gz delete mode 100644 hjsmin.cabal diff --git a/ghc-hjsmin.changes b/ghc-hjsmin.changes index 071c79d..c707595 100644 --- a/ghc-hjsmin.changes +++ b/ghc-hjsmin.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 11 02:35:34 UTC 2023 - Peter Simons + +- Update hjsmin to version 0.2.1. + Upstream does not provide a change log file. + ------------------------------------------------------------------- Wed Mar 23 10:50:51 UTC 2022 - Peter Simons diff --git a/ghc-hjsmin.spec b/ghc-hjsmin.spec index d98260d..3845faf 100644 --- a/ghc-hjsmin.spec +++ b/ghc-hjsmin.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-hjsmin # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,28 +17,39 @@ %global pkg_name hjsmin +%global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.2.0.4 +Version: 0.2.1 Release: 0 Summary: Haskell implementation of a javascript minifier 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/2.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-language-javascript-devel +BuildRequires: ghc-language-javascript-prof BuildRequires: ghc-optparse-applicative-devel +BuildRequires: ghc-optparse-applicative-prof BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof ExcludeArch: %{ix86} %if %{with tests} BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof BuildRequires: ghc-extra-devel +BuildRequires: ghc-extra-prof BuildRequires: ghc-filepath-devel +BuildRequires: ghc-filepath-prof BuildRequires: ghc-process-devel +BuildRequires: ghc-process-prof BuildRequires: ghc-unix-devel +BuildRequires: ghc-unix-prof %endif %description @@ -55,9 +66,24 @@ 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 @@ -81,4 +107,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %files devel -f %{name}-devel.files %doc 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 diff --git a/hjsmin-0.2.0.4.tar.gz b/hjsmin-0.2.0.4.tar.gz deleted file mode 100644 index 487ce46..0000000 --- a/hjsmin-0.2.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81b9947714d8d2b73d0aba9e2e02af7e30c13b2cf8144df8904564d9642e57e4 -size 5233 diff --git a/hjsmin-0.2.1.tar.gz b/hjsmin-0.2.1.tar.gz new file mode 100644 index 0000000..bbdbd19 --- /dev/null +++ b/hjsmin-0.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4db43835a4cdfd79b9e18238fdd86c0de7e656813f8b8083c3ba8630d322cd90 +size 5197 diff --git a/hjsmin.cabal b/hjsmin.cabal deleted file mode 100644 index 7cc8562..0000000 --- a/hjsmin.cabal +++ /dev/null @@ -1,70 +0,0 @@ -name: hjsmin -version: 0.2.0.4 -x-revision: 2 -license: BSD3 -license-file: LICENSE -author: Alan Zimmerman -maintainer: Erik de Castro Lopo -synopsis: Haskell implementation of a javascript minifier -description: - Reduces size of javascript files by stripping out extraneous whitespace and - other syntactic elements, without changing the semantics. -category: Web -stability: unstable -cabal-version: >= 1.10 -build-type: Simple -homepage: http://github.com/erikd/hjsmin -bug-reports: http://github.com/erikd/hjsmin/issues - -Extra-source-files: - Readme.md - test/cli/core/runner - test/cli/empty-input/run - test/cli/minimal-input/run - - -library - default-language: Haskell2010 - ghc-options: -Wall - hs-source-dirs: src - - exposed-modules: Text.Jasmine - - build-depends: base >= 4.8 && < 5 - , bytestring >= 0.10 && < 0.12 - , language-javascript >= 0.6 && < 0.8 - , text == 1.2.* - - -executable hjsmin - default-language: Haskell2010 - ghc-options: -Wall -threaded - hs-source-dirs: src main - main-is: hjsmin.hs - - -- Need this here because the library and the executable have the same name. - other-modules: Text.Jasmine - - build-depends: base >= 4.8 && < 5 - , bytestring - , language-javascript - , optparse-applicative >= 0.7 - , text - -test-suite test-cli - type: exitcode-stdio-1.0 - ghc-options: -Wall -fwarn-tabs - default-language: Haskell2010 - hs-source-dirs: test - main-is: test-cli.hs - - build-depends: base - , directory - , extra - , filepath - , process - , unix - -source-repository head - type: git - location: https://github.com/erikd/hjsmin.git