summaryrefslogtreecommitdiffstats
path: root/tools/hsb2hs/hsb2hs.spec
blob: eb4b78415a6bd1455a134eb1bbac59e08e279042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Name:           hsb2hs
Version:        0.1
Release:        1%{?dist}
Summary:        Preprocesses a file, adding blobs from files as string literals

License:        BSD
Group:          Developments/Tools
URL:            http://hackage.haskell.org/package/%{name}
Source0:        http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz

BuildRequires:  ghc-Cabal-devel
BuildRequires:  ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-containers-devel
BuildRequires:  ghc-directory-devel
BuildRequires:  ghc-filepath-devel
#BuildRequires:  ghc-preprocessor-tools-devel
# End cabal-rpm deps
BuildRequires:  cabal-dev
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
hsb2hs is a preprocessor that allows you to include the contents of files as
string literals in your Haskell programs and libraries. It is an alternative to
file-embed for those who do not want to rely on Template Haskell.


%global cabal cabal-dev


%prep
%setup -q


%build
%cabal install-deps
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
%cabal build

%install
rm -rf %{buildroot}
%cabal copy --destdir=%{buildroot} -v



%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/%{name}


%changelog
* Thu Jan 30 2014 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.1
- spec file generated by cabal-rpm-0.8.7