- Drop static library support (#1081486).
- iperf3-devel subpackage must require iperf3. - iperf3-devel should only contain the unversioned shared library. - Call ldconfig since we are installing a shared library now. - Remove INSTALL file.
This commit is contained in:
parent
b140845a42
commit
490c5ad68d
41
iperf3.spec
41
iperf3.spec
@ -1,14 +1,14 @@
|
|||||||
Name: iperf3
|
Name: iperf3
|
||||||
Version: 3.0.3
|
Version: 3.0.3
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Measurement tool for TCP/UDP bandwidth performance
|
Summary: Measurement tool for TCP/UDP bandwidth performance
|
||||||
|
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://github.com/esnet/iperf
|
URL: http://github.com/esnet/iperf
|
||||||
Source0: http://stats.es.net/software/iperf-%{version}.tar.gz
|
Source0: http://stats.es.net/software/iperf-%{version}.tar.gz
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
BuildRequires: libuuid-devel
|
BuildRequires: libuuid-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of
|
Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of
|
||||||
@ -18,6 +18,7 @@ jitter, data-gram loss.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains libraries and header files for
|
The %{name}-devel package contains libraries and header files for
|
||||||
@ -27,34 +28,42 @@ developing applications that use %{name}.
|
|||||||
%setup -q -n iperf-%{version}
|
%setup -q -n iperf-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure --disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%makeinstall -C src INSTALL_DIR="%{buildroot}%{_bindir}"
|
%makeinstall -C src INSTALL_DIR="%{buildroot}%{_bindir}"
|
||||||
mkdir -p %{buildroot}%{_mandir}/man1
|
mkdir -p %{buildroot}%{_mandir}/man1
|
||||||
|
rm -f %{buildroot}%{_libdir}/libiperf.la
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS README.md LICENSE INSTALL RELEASE_NOTES
|
%doc AUTHORS README.md LICENSE RELEASE_NOTES
|
||||||
%{_mandir}/man1/iperf3.1.gz
|
%{_mandir}/man1/iperf3.1.gz
|
||||||
%{_mandir}/man3/libiperf.3.gz
|
%{_mandir}/man3/libiperf.3.gz
|
||||||
%{_bindir}/iperf3
|
%{_bindir}/iperf3
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files devel
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_includedir}/iperf_api.h
|
%{_includedir}/iperf_api.h
|
||||||
%{_libdir}/libiperf.a
|
|
||||||
%{_libdir}/libiperf.la
|
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/*.so.*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 2 2014 François Cami <fcami@fedoraproject.org> - 3.0.3-3
|
||||||
|
- Drop static library support (#1081486).
|
||||||
|
- iperf3-devel subpackage must require iperf3.
|
||||||
|
- iperf3-devel should only contain the unversioned shared library.
|
||||||
|
- Call ldconfig since we are installing a shared library now.
|
||||||
|
- Removed INSTALL file.
|
||||||
|
|
||||||
* Wed Apr 2 2014 Susant Sahani <ssahani@redhat.com> 3.0.3-2
|
* Wed Apr 2 2014 Susant Sahani <ssahani@redhat.com> 3.0.3-2
|
||||||
- Moved static library to devel section only .
|
- Moved static library to devel section only .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user