diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bc02237 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/base-orphans-0.6.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 1ad5675..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ghc-base-orphans - -The ghc-base-orphans package \ No newline at end of file diff --git a/ghc-base-orphans.spec b/ghc-base-orphans.spec new file mode 100644 index 0000000..9d32910 --- /dev/null +++ b/ghc-base-orphans.spec @@ -0,0 +1,100 @@ +# generated by cabal-rpm-0.11.2 +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name base-orphans +%global pkgver %{pkg_name}-%{version} + +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.6 +Release: 1.git.0.db5c088%{?dist} +Summary: Backwards-compatible orphan instances for base + +License: MIT +Url: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-hspec-devel +%endif +# End cabal-rpm deps + +%description +'base-orphans' defines orphan instances that mimic instances available in later +versions of 'base' to a wider (older) range of compilers. +'base-orphans' does not export anything except the orphan instances themselves +and complements ''. +See the README for what instances are covered: +. See also the + section. + + +%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} + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install + + +%check +%cabal_test + + +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache + + +%files -f %{name}.files +%license LICENSE + + +%files devel -f %{name}-devel.files +%doc CHANGES.markdown README.markdown + + +%changelog +* Sat Aug 26 2017 Elliott Sales de Andrade 0.6-1 +- Update to latest version. +- Update to latest spec template. + +* Mon Jul 17 2017 Elliott Sales de Andrade 0.5.4-4 +- Re-add dist tag to release numbers. + +* Mon Jul 17 2017 Elliott Sales de Andrade 0.5.4-3 +- Bump for Fedora 26. + +* Mon Jul 17 2017 Elliott Sales de Andrade +- Bump release for Fedora 26. + +* Fri Dec 16 2016 Elliott Sales de Andrade - 0.5.4-2 +- Update release to be newer than previous builds + +* Fri Dec 16 2016 Fedora Haskell SIG - 0.5.4-1 +- spec file generated by cabal-rpm-0.10.0 diff --git a/sources b/sources new file mode 100644 index 0000000..9ab75f0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (base-orphans-0.6.tar.gz) = 925c1fa075413654c20c32bbe15e613a79aa3dcf6aeec9402c828c050c55bf9078d8acef522c82b792a9792ccb1bfb4d56dce4ffe03d5047c83a05ef123fa402