# NOTE: for versions >= 17 see rdma-core.spec # TODO: PLDify init script Summary: iWarp Port Mapper userspace daemon Summary(pl.UTF-8): Demon przestrzeni użytkownika usługi iWarp Port Mapper Name: iwpmd Version: 1.0.6 Release: 1.1 License: BSD or GPL v2 Group: Networking/Daemons Source0: https://www.openfabrics.org/downloads/libiwpm/%{name}-%{version}.tar.gz # Source0-md5: dc4450e99dcbf7aa9774286d176a59c3 URL: https://www.openfabrics.org/ BuildRequires: libnl-devel >= 3.2 BuildRequires: rpmbuild(macros) >= 1.647 Requires(post,preun): /sbin/chkconfig Requires: rc-scripts Requires: systemd-units >= 0.38 # misleading package name before 1.0.6 Obsoletes: libiwpm < 1.0.6 # internal API headers, never useful without sources Obsoletes: libiwpm-devel < 1.0.6 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %undefine __cxx %description iwpmd provides a userspace service for iWarp drivers to claim TCP ports through the standard socket interface. %description -l pl.UTF-8 iwpmd dostarcza usługę przestrzeni użytkownika dla sterowników iWarp, pozwalającą im zajmować porty TCP poprzez standardowy interfejs gniazdowy. %prep %setup -q %build %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install -Dp iwpmd_init $RPM_BUILD_ROOT/etc/rc.d/init.d/iwpmd install -Dp iwpmd.service $RPM_BUILD_ROOT%{systemdunitdir}/iwpmd.service %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add iwpmd %systemd_post iwpmd.service %service iwpmd restart %preun %systemd_preun iwpmd.service if [ "$1" = "0" ]; then %service -q iwpmd stop /sbin/chkconfig --del iwpmd fi %postun %systemd_reload %files %defattr(644,root,root,755) %doc README %attr(755,root,root) %{_bindir}/iwpmd %attr(754,root,root) /etc/rc.d/init.d/iwpmd %{systemdunitdir}/iwpmd.service