[ghc-pcap] Initial import (#1026432).

pwithnall pwithnall at fedoraproject.org
Fri Jan 10 17:04:31 UTC 2014


commit 68d34040d9956543f252fe194a9c35af9a659fa4
Author: Philip Withnall <philip at tecnocode.co.uk>
Date:   Fri Jan 10 17:04:09 2014 +0000

    Initial import (#1026432).

 .gitignore    |    1 +
 ghc-pcap.spec |   81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5015d66 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pcap-0.4.5.2.tar.gz
diff --git a/ghc-pcap.spec b/ghc-pcap.spec
new file mode 100644
index 0000000..d5ab80e
--- /dev/null
+++ b/ghc-pcap.spec
@@ -0,0 +1,81 @@
+# https://fedoraproject.org/wiki/Packaging:Haskell
+
+%global pkg_name pcap
+
+Name:           ghc-%{pkg_name}
+Version:        0.4.5.2
+Release:        1%{?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/packages/archive/%{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
+* Mon Nov  4 2013 Philip Withnall <philip.withnall at collabora.co.uk> - 0.4.5.2-1
+- spec file generated by cabal-rpm-0.8.6
diff --git a/sources b/sources
index e69de29..74d1cfc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+492b7ecc53d0ac3599845ab8ac553997  pcap-0.4.5.2.tar.gz


More information about the scm-commits mailing list