File httppp.spec of Package httppp
# vim: set sw=4 ts=4 et nu:
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: httppp
Version: 1.4.0
Release: 0
Summary: HTTP Passive Probe Application
Source: httppp-%{version}.tar.bz2
Source1: httppp.desktop
Patch1: httppp-use_system_libqpcap.patch
Patch2: httppp-include_qmetatype.patch
URL: https://gitorious.org/httppp
Group: Productivity/Networking/Web/Utilities
License: AGPL-3.0
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: libqpcap-devel
BuildRequires: libqt4-devel >= 4.7
BuildRequires: gcc-c++ make glibc-devel pkgconfig
BuildRequires: update-desktop-files
%description
Network passive probe to monitor HTTP response times in a non-intrusive way.
%prep
%setup -q -n "v%{version}"
%patch1
%patch2
%__rm makefile
%build
find . -type f -name '*.pro' | while read pro; do
cat <<EOF >>"$pro"
QMAKE_CFLAGS += %{optflags}
QMAKE_CXXFLAGS += %{optflags}
EOF
done
qmake
find . -type f -name Makefile | while read makefile; do
sed -i 's|/usr/lib/|%{_libdir}/|g' "$makefile"
done
make %{?_smp_mflags}
%install
install -D -m0755 httppp/httppp "%{buildroot}%{_bindir}/httppp"
install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Network WebDevelopment
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc README.txt LICENSE.txt
%{_bindir}/httppp
%{_datadir}/applications/%{name}.desktop
%changelog