Initial import (rhbz#1633403).

This commit is contained in:
Ben Rosser 2018-09-28 13:45:10 -04:00
parent 6bbc061a79
commit 46a4f4020c
3 changed files with 100 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.rpm
/filestore-0.6.3.3.tar.gz

97
ghc-filestore.spec Normal file
View File

@ -0,0 +1,97 @@
# generated by cabal-rpm-0.12.4
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name filestore
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.6.3.3
Release: 1%{?dist}
Summary: Interface for versioning file stores
License: BSD
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:
BuildRequires: ghc-Diff-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-split-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-utf8-string-devel
BuildRequires: ghc-xml-devel
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-mtl-devel
%endif
# End cabal-rpm deps
%description
The filestore library provides an abstract interface for a versioning file
store, and modules that instantiate this interface. Currently Git, Darcs, and
Mercurial modules are provided, and other VCSs or databases could be added.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-doc = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%endif
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
rm %{buildroot}%{_datadir}/%{pkgver}/CHANGES
%check
%cabal_test
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%{_datadir}/%{pkgver}
%files devel -f %{name}-devel.files
%doc CHANGES
%changelog
* Thu Aug 16 2018 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.6.3.3-1
- spec file generated by cabal-rpm-0.12.4

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (filestore-0.6.3.3.tar.gz) = de64596802bc963b87c56066630bff60c14fe22b00b12a6c1df7f3988dc193ac6920eb9eb1567f3f862de19eeffb6c57430b7495b79b4819094528e0c114d189