source: trunk/server/fedora/specs/ghc-unix-handle.spec

Last change on this file was 2591, checked in by achernya, 10 years ago
Reintegrate fc20-dev into trunk
File size: 2.0 KB
RevLine 
[2246]1# https://fedoraproject.org/wiki/Packaging:Haskell
[2066]2
[1590]3%global pkg_name unix-handle
4
5Name:           ghc-%{pkg_name}
6Version:        0.0.0
7Release:        0.%{scriptsversion}%{?dist}
[2591]8Summary:        POSIX operations on Handles
[1590]9
10License:        BSD
[2066]11URL:            http://hackage.haskell.org/package/%{pkg_name}
[1590]12Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
[2591]13
[2246]14BuildRequires:  ghc-Cabal-devel
15BuildRequires:  ghc-rpm-macros %{!?without_hscolour:hscolour}
[2591]16# Begin cabal-rpm deps:
17BuildRequires:  ghc-unix-devel
18# End cabal-rpm deps
[1590]19
20%description
[2591]21This package provides versions of functions from "System.Posix.Files" that
22operate on 'System.IO.Handle' instead of 'System.IO.FilePath' or
23'System.Posix.Fd'. This is useful to prevent race conditions that may arise
24from looking up the same path twice.
[1590]25
26
[2591]27%package devel
28Summary:        Haskell %{pkg_name} library development files
29Provides:       %{name}-static = %{version}-%{release}
30Requires:       ghc-compiler = %{ghc_version}
31Requires(post): ghc-compiler = %{ghc_version}
32Requires(postun): ghc-compiler = %{ghc_version}
33Requires:       %{name}%{?_isa} = %{version}-%{release}
34
35%description devel
36This package provides the Haskell %{pkg_name} library development files.
37
38
[1590]39%prep
40%setup -q -n %{pkg_name}-%{version}
41
42
43%build
[1693]44%ghc_lib_build
[1590]45
46
47%install
[1693]48%ghc_lib_install
[1590]49
50
[2591]51%post devel
52%ghc_pkg_recache
[1590]53
54
[2591]55%postun devel
56%ghc_pkg_recache
[2246]57
58
[2591]59%files -f %{name}.files
60%doc LICENSE
[2246]61
62
[2591]63%files devel -f %{name}-devel.files
[2246]64
[2591]65
[1590]66%changelog
[2591]67* Mon May 26 2014 Alex Chernyakhovsky <achernya@mit.edu> - 0.0.0-0
68- Updated packaging for F20 with cabal-rpm
69
[2246]70* Fri May 25 2012 Anders Kaseorg <andersk@mit.edu> - 0.0.0-0
71- regenerated packaging with cabal2spec-0.25.5
72
[2066]73* Mon May  2 2011 Alexander Chernyakhovsky <achernya@mit.edu> - 0.0.0-0
74- regenerated packaging with cabal2spec-0.22.5
75
[1693]76* Thu Sep  9 2010 Anders Kaseorg <andersk@mit.edu> - 0.0.0-0
77- initial packaging for Fedora automatically generated by cabal2spec-0.22.1
Note: See TracBrowser for help on using the repository browser.