91 lines
2.4 KiB
RPMSpec
91 lines
2.4 KiB
RPMSpec
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
%global pkg_name pcap
|
|
|
|
# no useful debuginfo for Haskell packages without C sources
|
|
%global debug_package %{nil}
|
|
|
|
Name: ghc-%{pkg_name}
|
|
Version: 0.4.5.2
|
|
Release: 3%{?dist}
|
|
Summary: A system-independent interface for user-level packet capture
|
|
|
|
License: BSD
|
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
|
Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
BuildRequires: ghc-rpm-macros
|
|
# Begin cabal-rpm deps:
|
|
BuildRequires: ghc-bytestring-devel
|
|
BuildRequires: ghc-network-devel
|
|
BuildRequires: ghc-time-devel
|
|
# End cabal-rpm deps
|
|
BuildRequires: libpcap-devel%{?_isa}
|
|
|
|
%description
|
|
Haskell bindings for libpcap.
|
|
|
|
Libpcap provides a portable framework for low-level network
|
|
monitoring. Libpcap can provide network statistics collection,
|
|
security monitoring and network debugging. Since almost every system
|
|
vendor provides a different interface for packet capture, the libpcap
|
|
authors created this system-independent API to ease in porting and to
|
|
alleviate the need for several system-dependent packet capture modules
|
|
in each application.
|
|
|
|
Install libpcap if you need to do low-level network traffic monitoring
|
|
on your network.
|
|
|
|
|
|
%package devel
|
|
Summary: Haskell %{pkg_name} library development files
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: libpcap-devel%{?_isa}
|
|
|
|
%description devel
|
|
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
|
|
%doc LICENSE
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
%doc README.markdown
|
|
|
|
|
|
%changelog
|
|
* Fri Jun 13 2014 Jens Petersen <petersen@redhat.com> - 0.4.5.2-3
|
|
- cblrpm-0.8.11
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.5.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Mon Nov 4 2013 Philip Withnall <philip.withnall@collabora.co.uk> - 0.4.5.2-1
|
|
- spec file generated by cabal-rpm-0.8.6
|