2012-01-20 21:50:36 +00:00
|
|
|
# For Haskell Packaging Guidelines see:
|
|
|
|
|
# - https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
# common part of summary for all the subpackages
|
|
|
|
|
%global common_summary Haskell %{pkg_name} library
|
|
|
|
|
|
|
|
|
|
# main description used for all the subpackages
|
|
|
|
|
%global common_description A %{pkg_name} library for Haskell.
|
|
|
|
|
|
|
|
|
|
Name: %{pkg_name}
|
2012-03-16 18:13:07 +00:00
|
|
|
Version: 0.6.0.3
|
2012-01-20 21:50:36 +00:00
|
|
|
Release: 1
|
|
|
|
|
Summary: Haskell %{pkg_name}
|
|
|
|
|
|
|
|
|
|
Group: Development/Languages/Other
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
# 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
|
|
|
|
|
%if %{undefined without_hscolour}
|
|
|
|
|
BuildRequires: hscolour
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: ghc-cgi-devel
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-containers-devel
|
2012-01-20 21:50:36 +00:00
|
|
|
BuildRequires: ghc-json-devel
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-parsec-devel
|
|
|
|
|
BuildRequires: ghc-syb-devel
|
2012-01-20 21:50:36 +00:00
|
|
|
BuildRequires: ghc-utf8-string-devel
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-xml-devel
|
2012-01-20 21:50:36 +00:00
|
|
|
# END cabal2spec
|
|
|
|
|
# BR any C devel dependency here
|
|
|
|
|
# list ghc-*-prof dependencies:
|
|
|
|
|
|
2012-02-29 12:54:43 +00:00
|
|
|
%if %{defined sles_version}
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
%endif
|
|
|
|
|
|
2012-01-20 21:50:36 +00:00
|
|
|
%description
|
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{undefined ghc_without_shared}
|
|
|
|
|
%package -n ghc-%{pkg_name}
|
|
|
|
|
Summary: Development files for %{common_summary}
|
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
# BEGIN cabal2spec
|
|
|
|
|
%{?ghc_devel_requires}
|
|
|
|
|
Obsoletes: ghc-%{pkg_name}-prof < %{version}-%{release}
|
|
|
|
|
Provides: ghc-%{pkg_name}-prof = %{version}-%{release}
|
|
|
|
|
# END cabal2spec
|
|
|
|
|
# remember to require any C devel dependency here
|
|
|
|
|
# Haskell devel dependencies are autogenerated by ghc-deps.sh
|
|
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}
|
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
|
|
This package contains the shared library.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n ghc-%{pkg_name}-devel
|
|
|
|
|
Summary: Development files for %{common_summary}
|
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
# BEGIN cabal2spec
|
|
|
|
|
%{?ghc_devel_requires}
|
|
|
|
|
Obsoletes: ghc-%{pkg_name}-prof < %{version}-%{release}
|
|
|
|
|
Provides: ghc-%{pkg_name}-prof = %{version}-%{release}
|
|
|
|
|
# END cabal2spec
|
|
|
|
|
# remember to require any C devel dependency here
|
|
|
|
|
# Haskell devel dependencies are autogenerated by ghc-deps.sh
|
|
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-devel
|
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
|
|
This package contains the development files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export SUSE_ASNEEDED=0
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%cabal_configure %{!?without_prof:-p} -fcgi -f test
|
|
|
|
|
%cabal build
|
|
|
|
|
%if %{undefined without_haddock}
|
|
|
|
|
%cabal haddock %{!?without_hscolour:%(if [ -x %{_bindir}/HsColour ]; then echo --hyperlink-source; fi)}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -n ghc-%{pkg_name}-devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n ghc-%{pkg_name}-devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%attr(755,root,root) %{_bindir}/%{name}
|
|
|
|
|
%attr(755,root,root) %{_bindir}/%{name}-cgi
|
|
|
|
|
%{_datadir}/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{undefined ghc_without_shared}
|
|
|
|
|
%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|