Package sanlock: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | %define _localstatedir /var Name: sanlock Version: 3.6.0 Release: alt1 Summary: A shared storage lock manager Group: System/Configuration/Other License: GPLv2 and GPLv2+ and LGPLv2+ Url: https://pagure.io/sanlock Source: %name-%version.tar Patch1: %name-%version-%release.patch Requires: lib%name = %version-%release BuildRequires: libblkid-devel libuuid-devel libaio-devel python-devel %description The sanlock daemon manages leases for applications running on a cluster of hosts with shared storage. %package -n lib%name Summary: A shared disk lock manager library Group: System/Libraries %description -n lib%name The %name-lib package contains the runtime libraries for sanlock, a shared storage lock manager. Hosts connected to a common SAN can use this to synchronize their access to the shared disks. %package devel Summary: Development files for %name Group: Development/C Requires: lib%name = %version-%release %description devel The %name-devel package contains libraries and header files for developing applications that use %name. %package -n python-module-%name Summary: Python bindings for the sanlock library Group: Development/Python %description -n python-module-%name The %name-python package contains a module that permits applications written in the Python programming language to use the interface supplied by the sanlock library. %package -n fence-sanlock Summary: Fence agent using sanlock and wdmd Group: System/Configuration/Other Requires: %name = %version-%release %description -n fence-sanlock The fence-sanlock package contains the fence agent and daemon for using sanlock and wdmd as a cluster fence agent. %package -n sanlk-reset Summary: Host reset daemon and client using sanlock Group: System/Configuration/Other Requires: %name = %version-%release %description -n sanlk-reset The sanlk-reset package contains the reset daemon and client. A cooperating host running the daemon can be reset by a host running the client, so long as both maintain access to a common sanlock lockspace. %prep %setup %patch1 -p1 %build # upstream does not require configure # upstream does not support _smp_mflags CFLAGS=$RPM_OPT_FLAGS make -C wdmd CFLAGS=$RPM_OPT_FLAGS make -C src CFLAGS=$RPM_OPT_FLAGS make -C python CFLAGS=$RPM_OPT_FLAGS make -C fence_sanlock CFLAGS=$RPM_OPT_FLAGS make -C reset %install make -C src \ install LIBDIR=%_libdir \ DESTDIR=%buildroot make -C wdmd \ install LIBDIR=%_libdir \ DESTDIR=%buildroot make -C python \ install LIBDIR=%_libdir \ DESTDIR=%buildroot make -C fence_sanlock \ install LIBDIR=%_libdir \ DESTDIR=%buildroot make -C reset \ install LIBDIR=%_libdir \ DESTDIR=%buildroot install -D -m 0644 init.d/sanlock.service %buildroot%_unitdir/sanlock.service install -D -m 0644 init.d/sanlock.tmpfile %buildroot%_tmpfilesdir/sanlock.conf install -D -m 0755 init.d/sanlock %buildroot%_initddir/sanlock install -D -m 0644 init.d/wdmd.service %buildroot%_unitdir/wdmd.service install -D -m 0644 init.d/wdmd.tmpfile %buildroot%_tmpfilesdir/wdmd.conf install -D -m 0644 init.d/wdmd.module %buildroot%_modulesloaddir/wdmd.conf install -D -m 0755 init.d/wdmd %buildroot%_initddir/wdmd install -D -m 0644 init.d/fence_sanlockd.service %buildroot%_unitdir/fence_sanlockd.service install -D -m 0644 init.d/fence_sanlockd.tmpfile %buildroot%_tmpfilesdir/fence_sanlockd.conf install -D -m 0755 init.d/fence_sanlockd %buildroot%_initddir/fence_sanlockd install -D -m 0644 init.d/sanlk-resetd.service %buildroot%_unitdir/sanlk-resetd.service install -D -m 0755 init.d/sanlk-resetd %buildroot%_initddir/sanlk-resetd install -D -m 0644 src/logrotate.sanlock \ %buildroot/etc/logrotate.d/sanlock install -D -m 0644 init.d/sanlock.sysconfig \ %buildroot/etc/sysconfig/sanlock install -D -m 0644 init.d/wdmd.sysconfig \ %buildroot/etc/sysconfig/wdmd install -Dd -m 0755 %buildroot/etc/wdmd.d install -Dd -m 0775 %buildroot%_localstatedir/run/sanlock install -Dd -m 0775 %buildroot%_localstatedir/run/wdmd install -Dd -m 0775 %buildroot%_localstatedir/run/fence_sanlock install -Dd -m 0775 %buildroot%_localstatedir/run/fence_sanlockd %pre %_sbindir/groupadd -r -f %name %_sbindir/useradd -r -d %_localstatedir/run/%name -s /bin/false -c "sanlock user" -g %name -G disk %name >/dev/null 2>&1 || : %post %post_service wdmd %post_service sanlock %preun %preun_service wdmd %preun_service sanlock %post -n fence-sanlock %post_service fence_sanlockd %preun -n fence-sanlock %preun_service fence_sanlockd %post -n sanlk-reset %post_service sanlk-resetd %preun -n sanlk-reset %preun_service sanlk-resetd %files %_unitdir/sanlock.service %_tmpfilesdir/sanlock.conf %_unitdir/wdmd.service %_tmpfilesdir/wdmd.conf %_modulesloaddir/wdmd.conf %_initddir/sanlock %_initddir/wdmd %_sbindir/sanlock %_sbindir/wdmd %dir /etc/wdmd.d %dir %attr(0775,sanlock,sanlock) %_localstatedir/run/sanlock %dir %attr(0775,root,sanlock) %_localstatedir/run/wdmd %_man8dir/wdmd* %_man8dir/sanlock* %config(noreplace) %_sysconfdir/logrotate.d/sanlock %config(noreplace) %_sysconfdir/sysconfig/sanlock %config(noreplace) %_sysconfdir/sysconfig/wdmd %files -n lib%name %_libdir/libsanlock.so.* %_libdir/libsanlock_client.so.* %_libdir/libwdmd.so.* %files devel %_libdir/*.so %_includedir/* %_pkgconfigdir/* %files -n python-module-%name %python_sitelibdir/* %files -n fence-sanlock %_unitdir/fence_sanlockd.service %_tmpfilesdir/fence_sanlockd.conf %_initddir/fence_sanlockd %_sbindir/fence_sanlock %_sbindir/fence_sanlockd %dir %attr(0775,root,root) %_localstatedir/run/fence_sanlock %dir %attr(0775,root,root) %_localstatedir/run/fence_sanlockd %_man8dir/fence_sanlock* %files -n sanlk-reset %_sbindir/sanlk-reset %_sbindir/sanlk-resetd %_initddir/sanlk-resetd %_unitdir/sanlk-resetd.service %_man8dir/sanlk-reset* %changelog * Tue Jan 09 2018 Alexey Shabalin <shaba@altlinux.ru> 3.6.0-alt1 - 3.6.0 * Fri Jun 17 2016 Alexey Shabalin <shaba@altlinux.ru> 3.4.0-alt1 - 3.4.0 * Tue Jun 30 2015 Alexey Shabalin <shaba@altlinux.ru> 3.2.4-alt1 - 3.2.4 * Wed Sep 24 2014 Alexey Shabalin <shaba@altlinux.ru> 3.2.1-alt1 - 3.2.1 * Fri Jan 31 2014 Alexey Shabalin <shaba@altlinux.ru> 3.1.0-alt1 - initial build |