From f0d05ca02878ec35c56d7b6c3757b2e26109dfe16ad3bb669b64c4518bdb50c8 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 3 Oct 2016 08:24:05 +0000 Subject: [PATCH] Accepting request 432782 from devel:languages:haskell:lts:7 version / revision update OBS-URL: https://build.opensuse.org/request/show/432782 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-path-pieces?expand=0&rev=7 --- ghc-path-pieces.spec | 15 +++------------ path-pieces.cabal | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 12 deletions(-) create mode 100644 path-pieces.cabal diff --git a/ghc-path-pieces.spec b/ghc-path-pieces.spec index 57e8782..6484388 100644 --- a/ghc-path-pieces.spec +++ b/ghc-path-pieces.spec @@ -23,13 +23,12 @@ Version: 0.2.1 Release: 0 Summary: Components of paths License: BSD-2-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 -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -38,7 +37,6 @@ BuildRequires: ghc-HUnit-devel BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-hspec-devel %endif -# End cabal-rpm deps %description Hackage documentation generation is not reliable. For up to date documentation, @@ -59,20 +57,14 @@ This package provides the Haskell %{pkg_name} library development files. %setup -q -n %{pkg_name}-%{version} cp -p %{SOURCE1} %{pkg_name}.cabal - %build %ghc_lib_build - %install %ghc_lib_install - %check -%if %{with tests} -%{cabal} test -%endif - +%cabal_test %post devel %ghc_pkg_recache @@ -86,6 +78,5 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %files devel -f %{name}-devel.files %defattr(-,root,root,-) -%doc ChangeLog.md README.md %changelog diff --git a/path-pieces.cabal b/path-pieces.cabal new file mode 100644 index 0000000..e1f32c9 --- /dev/null +++ b/path-pieces.cabal @@ -0,0 +1,40 @@ +name: path-pieces +version: 0.2.1 +x-revision: 1 +license: BSD3 +license-file: LICENSE +author: Michael Snoyman +maintainer: Michael Snoyman +synopsis: Components of paths. +description: Hackage documentation generation is not reliable. For up to date documentation, please see: . +category: Web, Yesod +stability: unstable +cabal-version: >= 1.8 +build-type: Simple +extra-source-files: + test/main.hs + ChangeLog.md + README.md + +library + build-depends: base >= 4.6 && < 5 + , text >= 0.5 + , time + exposed-modules: Web.PathPieces + ghc-options: -Wall + +test-suite test + type: exitcode-stdio-1.0 + main-is: main.hs + hs-source-dirs: test + ghc-options: -Wall + build-depends: HUnit + , hspec >= 1.3 + , base >= 4 && < 5 + , QuickCheck + , path-pieces + , text + +source-repository head + type: git + location: https://github.com/yesodweb/path-pieces