diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c037f11 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/parsec-numbers-0.1.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index a795d00..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ghc-parsec-numbers - -The ghc-parsec-numbers package \ No newline at end of file diff --git a/ghc-parsec-numbers.spec b/ghc-parsec-numbers.spec new file mode 100644 index 0000000..8110f53 --- /dev/null +++ b/ghc-parsec-numbers.spec @@ -0,0 +1,71 @@ +# generated by cabal-rpm-0.11.1 +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name parsec-numbers +%global pkgver %{pkg_name}-%{version} + +Name: ghc-%{pkg_name} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Utilities for parsing numbers from strings + +License: BSD +Url: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Patch0: parsec-numbers-license.patch + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-parsec-devel +# End cabal-rpm deps + +%description +Parsec-numbers provides the number parsers without the need to use a large (and +unportable) token parser. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + + +%prep +%setup -q -n %{pkgver} +%patch0 -p1 + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install + + +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache + + +%files -f %{name}.files +%license LICENSE + + +%files devel -f %{name}-devel.files +%doc changes + + +%changelog +* Fri Jul 28 2017 Fedora Haskell SIG - 0.1.0-1 +- spec file generated by cabal-rpm-0.11.1 diff --git a/parsec-numbers-license.patch b/parsec-numbers-license.patch new file mode 100644 index 0000000..17c3aa5 --- /dev/null +++ b/parsec-numbers-license.patch @@ -0,0 +1,34 @@ +diff -purN parsec-numbers-0.1.0.orig/LICENSE parsec-numbers-0.1.0/LICENSE +--- parsec-numbers-0.1.0.orig/LICENSE 2014-09-05 08:47:34.000000000 -0400 ++++ parsec-numbers-0.1.0/LICENSE 2017-11-15 13:20:56.554861319 -0500 +@@ -0,0 +1,30 @@ ++Copyright (c) 2014, Christian Maeder ++ ++All rights reserved. ++ ++Redistribution and use in source and binary forms, with or without ++modification, are permitted provided that the following conditions are met: ++ ++ * Redistributions of source code must retain the above copyright ++ notice, this list of conditions and the following disclaimer. ++ ++ * Redistributions in binary form must reproduce the above ++ copyright notice, this list of conditions and the following ++ disclaimer in the documentation and/or other materials provided ++ with the distribution. ++ ++ * Neither the name of Christian Maeder nor the names of other ++ contributors may be used to endorse or promote products derived ++ from this software without specific prior written permission. ++ ++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ++"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ++LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ++A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ++OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ++SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ++LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ++OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/sources b/sources new file mode 100644 index 0000000..c4f38a6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (parsec-numbers-0.1.0.tar.gz) = 8a06ef239e6fb9fabaf04d947c21b298acd9538d2f98dd2404d943c18b5f29aa0d11572be3e1a846ae3d1345fbbdc5b2803df3ec196ccc212c4d76082c930b05