diff --git a/ghc-temporary.changes b/ghc-temporary.changes index 4949916..89f9478 100644 --- a/ghc-temporary.changes +++ b/ghc-temporary.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 19 20:53:31 UTC 2017 - psimons@suse.com + +- Update to version 1.2.1. + ------------------------------------------------------------------- Sun Jul 10 17:30:27 UTC 2016 - psimons@suse.com diff --git a/ghc-temporary.spec b/ghc-temporary.spec index aa16be0..d5cf593 100644 --- a/ghc-temporary.spec +++ b/ghc-temporary.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-temporary # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,16 +17,16 @@ %global pkg_name temporary +%bcond_with tests Name: ghc-%{pkg_name} -Version: 1.2.0.4 +Version: 1.2.1 Release: 0 -Summary: Portable temporary file and directory support for Windows and Unix, based on code from Cabal +Summary: Portable temporary file and directory support License: BSD-3-Clause -Group: System/Libraries +Group: Development/Languages/Other 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 -# Begin cabal-rpm deps: BuildRequires: ghc-directory-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-filepath-devel @@ -34,14 +34,14 @@ BuildRequires: ghc-rpm-macros BuildRequires: ghc-transformers-devel BuildRequires: ghc-unix-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build -# End cabal-rpm deps +%if %{with tests} +BuildRequires: ghc-base-compat-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +%endif %description -The functions for creating temporary files and directories in the base library -are quite limited. The unixutils package contains some good ones, but they -aren't portable to Windows. This library just repackages the Cabal -implementations of its own temporary file and folder functions so that you can -use them without linking against Cabal or depending on it being installed. +Functions for creating temporary files and directories. %package devel Summary: Haskell %{pkg_name} library development files @@ -57,14 +57,14 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install +%check +%cabal_test %post devel %ghc_pkg_recache @@ -78,5 +78,6 @@ This package provides the Haskell %{pkg_name} library development files. %files devel -f %{name}-devel.files %defattr(-,root,root,-) +%doc CHANGELOG.md %changelog diff --git a/temporary-1.2.0.4.tar.gz b/temporary-1.2.0.4.tar.gz deleted file mode 100644 index bdd16a8..0000000 --- a/temporary-1.2.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51e713804246404df8a728919a2e7d1994f8cfda42cfa7a74ea65d8b7d206762 -size 5347 diff --git a/temporary-1.2.1.tar.gz b/temporary-1.2.1.tar.gz new file mode 100644 index 0000000..46d5170 --- /dev/null +++ b/temporary-1.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ecf88065cf69e965dc672c4a94f0b5e909d3e398c24d947bbd5e9814277a4f8 +size 5137