]> git.pld-linux.org Git - packages/ghc-alsa-mixer.git/blame - ghc-alsa-mixer.spec
- up to 0.2.0.1
[packages/ghc-alsa-mixer.git] / ghc-alsa-mixer.spec
CommitLineData
bbe74f11
JP
1%define pkgname alsa-mixer
2Summary: A Haskell binding to the alsa-mixer graphics library
3Name: ghc-%{pkgname}
70651693 4Version: 0.2.0.1
5dac400b 5Release: 1
bbe74f11
JP
6License: BSD
7Group: Development/Languages
8Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
70651693 9# Source0-md5: 79ac3557bcbbcf3d9d75f47d98f7b5b4
bbe74f11
JP
10URL: http://hackage.haskell.org/package/alsa-mixer/
11BuildRequires: ghc >= 6.12.3
12BuildRequires: ghc-alsa-core >= 0.5
13BuildRequires: ghc-c2hs
14BuildRequires: rpmbuild(macros) >= 1.608
15%requires_eq ghc
16Requires: ghc-alsa-core >= 0.5
17Requires: ghc-c2hs
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20# debuginfo is not useful for ghc
21%define _enable_debug_packages 0
22
23%description
24A Haskell binding to the alsa-mixer graphics library.
25
26%package doc
27Summary: HTML documentation for %{pkgname}
28Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
29Group: Documentation
30
31%description doc
32HTML documentation for %{pkgname}.
33
34%description doc -l pl.UTF-8
35Dokumentacja w formacie HTML dla %{pkgname}.
36
37%prep
38%setup -q -n %{pkgname}-%{version}
39
40%build
41runhaskell Setup.hs configure -v2 \
42 --prefix=%{_prefix} \
43 --libdir=%{_libdir} \
44 --libexecdir=%{_libexecdir} \
45 --docdir=%{_docdir}/%{name}-%{version}
46
47runhaskell Setup.hs build
48runhaskell Setup.hs haddock --executables
49
50%install
51rm -rf $RPM_BUILD_ROOT
52install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
53
54runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
55
56# work around automatic haddock docs installation
57rm -rf %{name}-%{version}-doc
58cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
59%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
60
61runhaskell Setup.hs register \
62 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%post
68%ghc_pkg_recache
69
70%postun
71%ghc_pkg_recache
72
73%files
74%defattr(644,root,root,755)
75%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
76%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
77
78%files doc
79%defattr(644,root,root,755)
80%doc %{name}-%{version}-doc/*
This page took 0.09614 seconds and 4 git commands to generate.