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