]> git.pld-linux.org Git - SPECS.git/blob - iwpmd.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / iwpmd.spec
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
5 Name:           iwpmd
6 Version:        1.0.6
7 Release:        1.1
8 License:        BSD or GPL v2
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
16 Requires:       rc-scripts
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)
23
24 %undefine       __cxx
25
26 %description
27 iwpmd provides a userspace service for iWarp drivers to claim TCP
28 ports through the standard socket interface.
29
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
33 gniazdowy.
34
35 %prep
36 %setup -q
37
38 %build
39 %configure
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
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
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post
55 /sbin/chkconfig --add iwpmd
56 %systemd_post iwpmd.service
57 %service iwpmd restart
58
59 %preun
60 %systemd_preun iwpmd.service
61 if [ "$1" = "0" ]; then
62         %service -q iwpmd stop
63         /sbin/chkconfig --del iwpmd
64 fi
65
66 %postun
67 %systemd_reload
68
69 %files
70 %defattr(644,root,root,755)
71 %doc README
72 %attr(755,root,root) %{_bindir}/iwpmd
73 %attr(754,root,root) /etc/rc.d/init.d/iwpmd
74 %{systemdunitdir}/iwpmd.service
This page took 0.080245 seconds and 3 git commands to generate.