1 # NOTE: for versions >= 17 see rdma-core.spec
2 # TODO: PLDify init script
3 Summary: iWarp Port Mapper userspace daemon
4 Summary(pl.UTF-8): Demon przestrzeni użytkownika usługi iWarp Port Mapper
9 Group: Networking/Daemons
10 Source0: https://www.openfabrics.org/downloads/libiwpm/%{name}-%{version}.tar.gz
11 # Source0-md5: dc4450e99dcbf7aa9774286d176a59c3
12 URL: https://www.openfabrics.org/
13 BuildRequires: libnl-devel >= 3.2
14 BuildRequires: rpmbuild(macros) >= 1.647
15 Requires(post,preun): /sbin/chkconfig
17 Requires: systemd-units >= 0.38
18 # misleading package name before 1.0.6
19 Obsoletes: libiwpm < 1.0.6
20 # internal API headers, never useful without sources
21 Obsoletes: libiwpm-devel < 1.0.6
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 iwpmd provides a userspace service for iWarp drivers to claim TCP
28 ports through the standard socket interface.
30 %description -l pl.UTF-8
31 iwpmd dostarcza usługę przestrzeni użytkownika dla sterowników iWarp,
32 pozwalającą im zajmować porty TCP poprzez standardowy interfejs
43 rm -rf $RPM_BUILD_ROOT
46 DESTDIR=$RPM_BUILD_ROOT
48 install -Dp iwpmd_init $RPM_BUILD_ROOT/etc/rc.d/init.d/iwpmd
49 install -Dp iwpmd.service $RPM_BUILD_ROOT%{systemdunitdir}/iwpmd.service
52 rm -rf $RPM_BUILD_ROOT
55 /sbin/chkconfig --add iwpmd
56 %systemd_post iwpmd.service
57 %service iwpmd restart
60 %systemd_preun iwpmd.service
61 if [ "$1" = "0" ]; then
62 %service -q iwpmd stop
63 /sbin/chkconfig --del iwpmd
70 %defattr(644,root,root,755)
72 %attr(755,root,root) %{_bindir}/iwpmd
73 %attr(754,root,root) /etc/rc.d/init.d/iwpmd
74 %{systemdunitdir}/iwpmd.service