SPECS: ruby-pcaprub.spec (NEW) - new
glen
glen at pld-linux.org
Thu Jul 24 21:45:45 CEST 2008
Author: glen Date: Thu Jul 24 19:45:45 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
ruby-pcaprub.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/ruby-pcaprub.spec
diff -u /dev/null SPECS/ruby-pcaprub.spec:1.1
--- /dev/null Thu Jul 24 21:45:45 2008
+++ SPECS/ruby-pcaprub.spec Thu Jul 24 21:45:40 2008
@@ -0,0 +1,59 @@
+# $Revision$, $Date$
+Summary: PcapRub provides raw libpcap bindings for Ruby
+Name: ruby-pcaprub
+Version: 0.6
+Release: 1
+License: LGPL
+Group: Development/Libraries
+Source0: http://rubyforge.org/frs/download.php/14567/pcaprub-%{version}.tar.gz
+# Source0-md5: 8abad6bb909dff279d5acf2ca39e28eb
+URL: http://rubyforge.org/projects/pcaprub/
+BuildRequires: pcap-devel
+BuildRequires: rpmbuild(macros) >= 1.277
+BuildRequires: ruby-devel
+BuildRequires: ruby-modules
+BuildRequires: setup.rb
+%{?ruby_mod_ver_requires_eq}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PcapRub provides raw libpcap bindings for Ruby.
+
+%prep
+%setup -q -n pcaprub
+mkdir -p ext/pcaprub
+mv extconf.rb pcaprub.c ext/pcaprub
+touch ext/pcaprub/MANIFEST
+
+%build
+cp %{_datadir}/setup.rb .
+ruby setup.rb config \
+ --rbdir=%{ruby_rubylibdir} \
+ --sodir=%{ruby_archdir}
+
+ruby setup.rb setup
+
+rdoc -o rdoc ext
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{ruby_rubylibdir}
+ruby setup.rb install \
+ --prefix=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc rdoc README
+%attr(755,root,root) %{ruby_archdir}/pcaprub.so
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2008/07/24 19:45:40 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list