SHA256
4
0
forked from pool/texmath
Files
texmath/texmath.spec

92 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for texmath
#
# Copyright (c) 2012 Herbert Graeber <herbert@graeber-clan.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global pkg_name texmath
%global common_summary Haskell %{pkg_name} library
%global common_description A %{pkg_name} library for Haskell.
Name: %{pkg_name}
Version: 0.6.1.1
Release: 1
Summary: Haskell %{pkg_name}
Group: Development/Languages/Other
License: GPL-2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# BEGIN cabal2spec
URL: http://hackage.haskell.org/package/%{name}
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
ExclusiveArch: %{ix86} x86_64 %{ghc_arches}
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
BuildRequires: ghc-cgi-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-json-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-syb-devel
BuildRequires: ghc-utf8-string-devel
BuildRequires: ghc-xml-devel
# END cabal2spec
%description
%{common_description}
%prep
%setup -q
%build
%define cabal_configure_options -fcgi -f test
%ghc_lib_build
%install
%ghc_lib_install
# library subpackage
%ghc_package
%ghc_description
# devel subpackage
%ghc_devel_package
%ghc_devel_description
%ghc_devel_post_postun
%files
%defattr(-,root,root,-)
%doc LICENSE
%attr(755,root,root) %{_bindir}/%{name}
%attr(755,root,root) %{_bindir}/%{name}-cgi
%{_datadir}/%{name}-%{version}
%ghc_files LICENSE
%changelog