Update for the new packaging requirements in OS 12.2 OBS-URL: https://build.opensuse.org/request/show/136763 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/echoping?expand=0&rev=7
95 lines
2.6 KiB
RPMSpec
95 lines
2.6 KiB
RPMSpec
Name: echoping
|
|
Version: 6.0.2
|
|
Release: 1.5
|
|
Group: Productivity/Networking/Diagnostic
|
|
License: GPL
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: openssl-devel, libidn-devel, popt-devel, zlib-devel, openldap2-devel, postgresql-devel
|
|
URL: http://echoping.sf.net/
|
|
Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
Summary: TCP Performance Measurement Tool
|
|
|
|
%description
|
|
"echoping" is a small program to test (approximatively) performances of a
|
|
remote host by sending it TCP "echo" (or other protocol) packets.
|
|
|
|
%package plugins
|
|
Summary: Plugins for %{name}
|
|
Group: Applications/Internet
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description plugins
|
|
The %{name}-plugins package contains PostgreSQL, LDAP, WHOIS and DNS
|
|
performance measurement plugins for echoping.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
CFLAGS="%{optflags} -D_GNU_SOURCE -I/usr/include/pgsql" %configure \
|
|
--enable-icp \
|
|
--enable-http \
|
|
--enable-smtp \
|
|
--enable-tos \
|
|
--enable-priority \
|
|
--with-libidn \
|
|
--with-ssl \
|
|
--disable-static \
|
|
%{__make}
|
|
|
|
%install
|
|
%makeinstall
|
|
%{__rm} -f %{buildroot}%{_libdir}/%{name}/random.*
|
|
%{__rm} -f %{buildroot}%{_mandir}/man1/%{name}_random.1*
|
|
%{__rm} -f %{buildroot}%{_libdir}/%{name}/*.la
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
#%attr(4755,root,root) %{_bindir}/%{name}
|
|
%attr(755,root,root) %{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}.1*
|
|
%doc AUTHORS ChangeLog README COPYING DETAILS TODO
|
|
|
|
%files plugins
|
|
%defattr(-,root,root,-)
|
|
%{_mandir}/man1/%{name}_*.1*
|
|
%{_libdir}/%{name}
|
|
%{_libdir}/%{name}/dns.so.*
|
|
%{_libdir}/%{name}/ldap.so.*
|
|
%{_libdir}/%{name}/postgresql.so.*
|
|
%{_libdir}/%{name}/whois.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/%{name}/
|
|
%{_libdir}/%{name}/*.so
|
|
%exclude %{_libdir}/%{name}/postgresql.so
|
|
%exclude %{_libdir}/%{name}/dns.so
|
|
%exclude %{_libdir}/%{name}/ldap.so
|
|
%exclude %{_libdir}/%{name}/whois.so
|
|
|
|
%changelog
|
|
* Wed Oct 02 2012 - jamesp@vicidial.com
|
|
- Updated spec file for OpenSuSE 12.2 packaging requirements
|
|
Basically, the same file being in multiple packages
|
|
* Tue Dec 15 2009 - boris@steki.net
|
|
- enable compiling on opensuse 11.2 and SLES 11
|
|
- temporarily removed setuid
|
|
* Sat Mar 29 2008 - reik.keutterling@nodefall.de
|
|
- added setuid to echoping
|
|
* Fri Feb 29 2008 - reik.keutterling@nodefall.de
|
|
- update to 6.0.2
|