Remove redundant Requires

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-yaml?expand=0&rev=2
This commit is contained in:
Scott Bahling 2013-11-01 16:47:53 +00:00 committed by Git OBS Bridge
parent ee730543a6
commit 4d844f9fb9

View File

@ -1,5 +1,5 @@
#
# spec file for ghc-yaml
# spec file for package ghc
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -15,14 +15,15 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global pkg_name yaml
Name: ghc-%{pkg_name}
Version: 0.8.5
Release: 1
Release: 0
Summary: Support for parsing and rendering YAML documents
Group: System/Libraries
License: BSD-3-Clause
Group: System/Libraries
Url: http://hackage.haskell.org/package/%{name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -59,10 +60,8 @@ streaming interface. For most users, "Data.Yaml" is recommended.
%package devel
Summary: Haskell %{name} library development files
Group: Development/Libraries/Other
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires: libyaml-devel
%description devel
@ -71,33 +70,26 @@ This package provides the Haskell yaml library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
%build
%define cabal_configure_options -f system-libyaml
%ghc_lib_build
%install
%ghc_lib_install
%ghc_fix_dynamic_rpath yaml2json
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/yaml2json
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
%changelog