[libhtp] Initial packaging.
Mathieu Bridon
bochecha at fedoraproject.org
Fri Jan 27 03:04:53 UTC 2012
commit bd654da8ac2a348b107aa02978908833a86bb6e2
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date: Tue Oct 11 11:55:40 2011 +0800
Initial packaging.
This package has been submitted to Fedora on Tue Oct 11 2011:
https://bugzilla.redhat.com/show_bug.cgi?id=744977#c0
libhtp.spec | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 97 insertions(+), 0 deletions(-)
---
diff --git a/libhtp.spec b/libhtp.spec
new file mode 100644
index 0000000..2f2e3d2
--- /dev/null
+++ b/libhtp.spec
@@ -0,0 +1,97 @@
+%global snapdate 20111010
+%global snaphash 198963d
+%global snapver %{snapdate}.git%{snaphash}
+
+Name: libhtp
+
+# Note: This is a pre-release VCS snapshot
+Version: 0.3.0
+Release: 0.1.%{snapver}%{?dist}
+
+Summary: Security-aware parser for the HTTP protocol and the related bits and pieces
+Group: System Environment/Libraries
+License: ASL 2.0
+URL: http://www.libhtp.org
+
+# Upstream doesn't publish release tarballs yet, so we make one:
+# $ git clone git://github.com/ironbee/libhtp.git && cd libhtp
+# $ git archive --format=tar --prefix=libhtp-0.3.0/ 198963d | xz -z >libhtp-0.3.0-20111010.git198963d.tar.xz
+Source0: %{name}-%{version}-%{snapver}.tar.xz
+
+# Upstream doesn't publish release tarballs yet, so we need the autotools stuff
+BuildRequires: autoconf automake libtool
+
+# Wrong end-of-line encoding for COPYING
+# => https://github.com/ironbee/libhtp/issues/18
+BuildRequires: dos2unix
+
+BuildRequires: zlib-devel
+
+%description
+LibHTP is a security-aware parser for the HTTP protocol and the related bits
+and pieces. The goals of the project, in the order of importance, are as
+follows:
+1. Completeness of coverage;
+2. Permissive parsing;
+3. Awareness of evasion techniques;
+4. Performance;
+
+
+%package devel
+Group: Development/Libraries
+Summary: Development headers and libraries for %{name}
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development headers and libraries for %{name}.
+
+
+%prep
+%setup -q
+
+# Spurious executable permissions on *.c and *.h files
+# => https://github.com/ironbee/libhtp/issues/17
+find . -name '*.c' -exec chmod -x '{}' \;
+find . -name '*.h' -exec chmod -x '{}' \;
+
+# Wrong end-of-line encoding for COPYING
+# => https://github.com/ironbee/libhtp/issues/18
+dos2unix COPYING
+
+
+%build
+# Upstream doesn't publish release tarballs yet, so we need to run autoreconf
+autoreconf -i
+
+%configure --disable-static
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# Remove installed libtools files
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f '{}' \;
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS LICENSE COPYING
+%{_libdir}/%{name}*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc AUTHORS LICENSE COPYING
+%{_libdir}/%{name}.so
+%{_includedir}/htp
+%{_libdir}/pkgconfig/htp.pc
+
+
+%changelog
+* Tue Oct 04 2011 Mathieu Bridon <bochecha at fedoraproject.org> - 0.3.0-0.1.20111010.git198963d
+- Initial packaging.
More information about the scm-commits
mailing list