Scott Bahling 2013-11-01 15:56:27 +00:00 committed by Git OBS Bridge
parent 2dfc99d289
commit 21abc29bbe

View File

@ -15,15 +15,16 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global pkg_name mime-types
Name: ghc-mime-types
Version: 0.1.0.3
Release: 1
Release: 0
Summary: Basic mime-type handling types and functions
License: MIT
Group: System/Libraries
License: MIT
Url: http://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -44,10 +45,8 @@ Basic mime-type handling types and functions for Haskell.
Summary: Haskell %{pkg_name} library development files
Group: Development/Libraries/Other
Provides: %{name}-static = %{version}-%{release}
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}
%description devel
This package provides the Haskell %{pkg_name} library development files.
@ -56,30 +55,23 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
%build
%ghc_lib_build
%install
%ghc_lib_install
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%defattr(-,root,root,-)
%doc LICENSE
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
%changelog