diff --git a/disk-free-space-0.1.0.1.cabal b/disk-free-space-0.1.0.1.cabal new file mode 100644 index 0000000..9c5901a --- /dev/null +++ b/disk-free-space-0.1.0.1.cabal @@ -0,0 +1,30 @@ +name: disk-free-space +version: 0.1.0.1 +x-revision: 3 +synopsis: Retrieve information about disk space usage +description: + A cross-platform library for retrieving information about disk space usage. +homepage: https://github.com/redneb/disk-free-space +bug-reports: https://github.com/redneb/disk-free-space/issues +license: BSD3 +license-file: LICENSE +author: Marios Titas +maintainer: Marios Titas +category: System, Filesystem +build-type: Simple +cabal-version: >=1.10 + +source-repository head + type: git + location: https://github.com/redneb/disk-free-space.git + +library + exposed-modules: System.DiskSpace + build-depends: base >=4.5 && <5 + if os(windows) + build-depends: Win32 >=2.2 + cpp-options: -DCABAL_OS_WINDOWS + else + build-tools: hsc2hs + default-language: Haskell2010 + ghc-options: -Wall diff --git a/ghc-disk-free-space.spec b/ghc-disk-free-space.spec index 6a5cd4f..c954222 100644 --- a/ghc-disk-free-space.spec +++ b/ghc-disk-free-space.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.1 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name disk-free-space @@ -6,15 +6,20 @@ Name: ghc-%{pkg_name} Version: 0.1.0.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Retrieve information about disk space usage License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal +# End cabal-rpm sources +# Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros +# End cabal-rpm deps %description A cross-platform library retrieve information about disk space usage. @@ -37,15 +42,22 @@ files. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup %build +# Begin cabal-rpm build: %ghc_lib_build +# End cabal-rpm build %install +# Begin cabal-rpm install %ghc_lib_install +# End cabal-rpm install %post devel @@ -57,13 +69,18 @@ files. %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files %changelog +* Sun Feb 17 2019 Jens Petersen - 0.1.0.1-9 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.1.0.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild