[8353] | 1 | %define glib2_version 2.40.0 |
---|
[7938] | 2 | %define dbus_version 1.6.14 |
---|
[6011] | 3 | %define dbus_glib_version 0.98 |
---|
| 4 | %define polkit_version 0.104 |
---|
| 5 | %define parted_version 2.3 |
---|
| 6 | %define mdadm_version 2.6.7 |
---|
| 7 | %define device_mapper_version 1.02 |
---|
| 8 | %define libatasmart_version 0.17 |
---|
| 9 | %define sg3_utils_version 1.27 |
---|
| 10 | %define smp_utils_version 0.94 |
---|
[12015] | 11 | %global libblockdev_version 2.19 |
---|
[6011] | 12 | |
---|
| 13 | Summary: Storage Management Service |
---|
| 14 | Name: udisks2 |
---|
[12361] | 15 | Version: 2.8.4 |
---|
| 16 | Release: 1%{?_dist_release} |
---|
| 17 | Group: System Environment/Libraries |
---|
| 18 | Vendor: Project Vine |
---|
| 19 | Distribution: Vine Linux |
---|
| 20 | |
---|
[6011] | 21 | License: GPLv2+ |
---|
| 22 | URL: http://www.freedesktop.org/wiki/Software/udisks |
---|
[12361] | 23 | Source0: https://github.com/storaged-project/udisks/releases/download/udisks-%{version}/udisks-%{version}.tar.bz2 |
---|
[6011] | 24 | |
---|
| 25 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 26 | |
---|
| 27 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
[12015] | 28 | BuildRequires: gobject-introspection-devel |
---|
| 29 | BuildRequires: eudev-libgudev1-devel |
---|
| 30 | BuildRequires: eudev-libudev-devel |
---|
[6011] | 31 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
| 32 | BuildRequires: dbus-glib-devel >= %{dbus_glib_version} |
---|
| 33 | BuildRequires: polkit-devel >= %{polkit_version} |
---|
| 34 | BuildRequires: parted-devel >= %{parted_version} |
---|
| 35 | BuildRequires: device-mapper-devel >= %{device_mapper_version} |
---|
[6304] | 36 | BuildRequires: libacl-devel |
---|
[6011] | 37 | BuildRequires: intltool |
---|
| 38 | BuildRequires: libatasmart-devel >= %{libatasmart_version} |
---|
| 39 | BuildRequires: sg3_utils-devel >= %{sg3_utils_version} |
---|
| 40 | BuildRequires: lvm2-devel >= %{lvm2_version} |
---|
[12000] | 41 | BuildRequires: elogind-devel |
---|
[12015] | 42 | BuildRequires: gnome-common |
---|
| 43 | BuildRequires: libmount-devel |
---|
| 44 | BuildRequires: chrpath |
---|
| 45 | BuildRequires: libblockdev-devel >= %{libblockdev_version} |
---|
| 46 | BuildRequires: libblockdev-crypto-devel >= %{libblockdev_version} |
---|
| 47 | BuildRequires: libblockdev-dm-devel >= %{libblockdev_version} |
---|
| 48 | BuildRequires: libblockdev-fs-devel >= %{libblockdev_version} |
---|
| 49 | BuildRequires: libblockdev-kbd-devel >= %{libblockdev_version} |
---|
| 50 | BuildRequires: libblockdev-loop-devel >= %{libblockdev_version} |
---|
| 51 | BuildRequires: libblockdev-lvm-devel >= %{libblockdev_version} |
---|
| 52 | BuildRequires: libblockdev-mdraid-devel >= %{libblockdev_version} |
---|
| 53 | BuildRequires: libblockdev-part-devel >= %{libblockdev_version} |
---|
| 54 | BuildRequires: libblockdev-swap-devel >= %{libblockdev_version} |
---|
| 55 | %if 0 |
---|
| 56 | BuildRequires: libblockdev-vdo-devel >= %{libblockdev_version} |
---|
| 57 | %endif |
---|
[6011] | 58 | |
---|
| 59 | # needed to pull in the system bus daemon |
---|
| 60 | Requires: dbus >= %{dbus_version} |
---|
| 61 | # needed to pull in the udev daemon |
---|
[8732] | 62 | Requires: eudev |
---|
[6011] | 63 | # we need at least this version for bugfixes / features etc. |
---|
| 64 | Requires: libatasmart >= %{libatasmart_version} |
---|
| 65 | Requires: mdadm >= %{mdadm_version} |
---|
| 66 | # for smp_rep_manufacturer |
---|
| 67 | Requires: smp_utils >= %{smp_utils_version} |
---|
| 68 | # for mount, umount, mkswap |
---|
| 69 | Requires: util-linux-ng |
---|
| 70 | # for mkfs.ext3, mkfs.ext3, e2label |
---|
| 71 | Requires: e2fsprogs |
---|
| 72 | # for mkfs.xfs, xfs_admin |
---|
| 73 | Requires: xfsprogs |
---|
| 74 | # for mkfs.vfat |
---|
| 75 | Requires: dosfstools |
---|
| 76 | # for mlabel |
---|
| 77 | Requires: mtools |
---|
| 78 | # for mkntfs - no ntfsprogs on ppc, though |
---|
| 79 | %ifnarch ppc ppc64 |
---|
| 80 | Requires: ntfsprogs |
---|
| 81 | %endif |
---|
[9930] | 82 | Requires: gdisk |
---|
[6011] | 83 | |
---|
[12015] | 84 | Requires: libblockdev >= %{libblockdev_version} |
---|
| 85 | Requires: libblockdev-part >= %{libblockdev_version} |
---|
| 86 | Requires: libblockdev-loop >= %{libblockdev_version} |
---|
| 87 | Requires: libblockdev-swap >= %{libblockdev_version} |
---|
| 88 | Requires: libblockdev-mdraid >= %{libblockdev_version} |
---|
| 89 | Requires: libblockdev-fs >= %{libblockdev_version} |
---|
| 90 | Requires: libblockdev-crypto >= %{libblockdev_version} |
---|
| 91 | |
---|
[6011] | 92 | # for /proc/self/mountinfo, only available in 2.6.26 or higher |
---|
| 93 | Conflicts: kernel < 2.6.26 |
---|
| 94 | |
---|
| 95 | # we need liblvm2app at least this recent since the ABI changed (sizes |
---|
| 96 | # reported in number of bytes instead of number of sectors) without |
---|
| 97 | # the sonumber changing |
---|
| 98 | # |
---|
| 99 | Requires: lvm2-libs >= %{lvm2_version} |
---|
| 100 | |
---|
| 101 | %description |
---|
| 102 | udisks provides a daemon, D-Bus API and command line tools |
---|
| 103 | for managing disks and storage devices. |
---|
| 104 | |
---|
[12015] | 105 | |
---|
| 106 | %package lvm2 |
---|
| 107 | Summary: udisks2 module for LVM2 |
---|
| 108 | Group: System Environment/Libraries |
---|
| 109 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 110 | License: LGPLv2+ |
---|
| 111 | Requires: lvm2 |
---|
| 112 | Requires: libblockdev-lvm >= %{libblockdev_version} |
---|
| 113 | |
---|
| 114 | %description lvm2 |
---|
| 115 | This package contains module for LVM2 configuration. |
---|
| 116 | |
---|
| 117 | |
---|
| 118 | %package zram |
---|
| 119 | Summary: udisks2 module for ZRAM |
---|
| 120 | Group: System Environment/Libraries |
---|
| 121 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 122 | License: LGPLv2+ |
---|
| 123 | Requires: libblockdev-kbd >= %{libblockdev_version} |
---|
| 124 | Requires: libblockdev-swap >= %{libblockdev_version} |
---|
| 125 | |
---|
| 126 | %description zram |
---|
| 127 | This package contains module for ZRAM configuration. |
---|
| 128 | |
---|
| 129 | |
---|
| 130 | %if 0 |
---|
| 131 | %package vdo |
---|
| 132 | Summary: udisks2 module for VDO |
---|
| 133 | Group: System Environment/Libraries |
---|
| 134 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 135 | License: LGPLv2+ |
---|
| 136 | Requires: vdo |
---|
| 137 | Requires: libblockdev-vdo >= %{libblockdev_version} |
---|
| 138 | |
---|
| 139 | %description vdo |
---|
| 140 | This package contains module for VDO management. |
---|
| 141 | %endif |
---|
| 142 | |
---|
| 143 | |
---|
[6011] | 144 | %package devel |
---|
| 145 | Summary: D-Bus interface definitions for udisks |
---|
| 146 | Group: Development/Libraries |
---|
| 147 | Requires: %{name} = %{version}-%{release} |
---|
| 148 | |
---|
| 149 | # See comment above |
---|
| 150 | # |
---|
| 151 | %description devel |
---|
| 152 | D-Bus interface definitions and documentation for udisks. |
---|
| 153 | |
---|
| 154 | |
---|
[7938] | 155 | %package docs |
---|
[6011] | 156 | Summary: Documentation for udisks2 |
---|
| 157 | Group: Documentation |
---|
| 158 | Requires: %{name} = %{version}-%{release} |
---|
[7938] | 159 | BuildArch: noarch |
---|
| 160 | Provides: %{name}-doc = %{version}-%{release} |
---|
[6011] | 161 | |
---|
[12015] | 162 | |
---|
[7938] | 163 | %description docs |
---|
[6011] | 164 | This package contains documentation for udisks2. |
---|
| 165 | |
---|
| 166 | |
---|
| 167 | %prep |
---|
| 168 | %setup -q -n udisks-%{version} |
---|
| 169 | |
---|
| 170 | %build |
---|
[12015] | 171 | autoreconf -vif |
---|
[6011] | 172 | %configure \ |
---|
[9578] | 173 | --sbindir=%{_syssbindir} \ |
---|
[12015] | 174 | --enable-lvm2 \ |
---|
| 175 | --enable-lvmcache \ |
---|
| 176 | --enable-zram \ |
---|
[6011] | 177 | --enable-gtk-doc |
---|
| 178 | make |
---|
| 179 | |
---|
| 180 | %install |
---|
| 181 | rm -rf $RPM_BUILD_ROOT |
---|
| 182 | |
---|
| 183 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 184 | |
---|
[12015] | 185 | find %{buildroot} -name \*.la -o -name \*.a | xargs rm |
---|
[6011] | 186 | |
---|
[12015] | 187 | chrpath --delete %{buildroot}/%{_syssbindir}/umount.udisks2 |
---|
| 188 | chrpath --delete %{buildroot}/%{_bindir}/udisksctl |
---|
| 189 | chrpath --delete %{buildroot}/%{_libexecdir}/udisks2/udisksd |
---|
[6081] | 190 | |
---|
[12015] | 191 | mkdir %{buildroot}/run |
---|
| 192 | |
---|
| 193 | mkdir -p %{buildroot}/%{_sysconfdir}/udisks2/modules.conf.d |
---|
| 194 | |
---|
| 195 | perl -pi \ |
---|
| 196 | -e 's/modules_load_preference=ondemand/modules_load_preference=onstartup/' \ |
---|
| 197 | %{buildroot}%{_sysconfdir}/udisks2/udisks2.conf |
---|
| 198 | |
---|
[6011] | 199 | %find_lang %{name} |
---|
| 200 | |
---|
| 201 | %clean |
---|
| 202 | rm -rf $RPM_BUILD_ROOT |
---|
| 203 | |
---|
[12015] | 204 | %post |
---|
| 205 | /sbin/ldconfig |
---|
| 206 | udevadm control --reload |
---|
| 207 | udevadm trigger |
---|
[6011] | 208 | |
---|
| 209 | %postun -p /sbin/ldconfig |
---|
| 210 | |
---|
| 211 | %files -f %{name}.lang |
---|
| 212 | %defattr(-,root,root,-) |
---|
[12000] | 213 | %license COPYING |
---|
| 214 | %doc README* AUTHORS NEWS HACKING NEWS |
---|
| 215 | %config(noreplace) %{_sysconfdir}/udisks2/udisks2.conf |
---|
[6011] | 216 | /lib/udev/rules.d/80-udisks2.rules |
---|
| 217 | %{_bindir}/udisksctl |
---|
[9578] | 218 | %{_syssbindir}/umount.udisks2 |
---|
[9715] | 219 | %{_libexecdir}/udisks2/udisksd |
---|
[6011] | 220 | %{_libdir}/libudisks2.so.* |
---|
| 221 | %{_libdir}/girepository-1.0/UDisks-2.0.typelib |
---|
[12015] | 222 | %dir %{_libdir}/udisks2 |
---|
| 223 | %dir %{_libdir}/udisks2/modules |
---|
[12000] | 224 | %dir %{_datadir}/bash-completion |
---|
| 225 | %dir %{_datadir}/bash-completion/completions |
---|
[6951] | 226 | %{_datadir}/bash-completion/completions/udisksctl |
---|
[6011] | 227 | %{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service |
---|
[12361] | 228 | %{_datadir}/dbus-1/system.d/org.freedesktop.UDisks2.conf |
---|
[12000] | 229 | %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.policy |
---|
[6011] | 230 | %{_mandir}/man1/* |
---|
[12000] | 231 | %{_mandir}/man5/* |
---|
[6011] | 232 | %{_mandir}/man8/* |
---|
| 233 | %attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2 |
---|
[6081] | 234 | %attr(0755,root,root) %dir /run |
---|
[6011] | 235 | |
---|
[12015] | 236 | %files lvm2 |
---|
| 237 | %{_libdir}/udisks2/modules/libudisks2_lvm2.so |
---|
| 238 | %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.lvm2.policy |
---|
| 239 | |
---|
| 240 | %files zram |
---|
| 241 | %dir %{_sysconfdir}/udisks2/modules.conf.d |
---|
| 242 | %{_libdir}/udisks2/modules/libudisks2_zram.so |
---|
| 243 | %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.zram.policy |
---|
| 244 | |
---|
| 245 | %if 0 |
---|
| 246 | %files vdo |
---|
| 247 | %{_libdir}/udisks2/modules/libudisks2_vdo.so |
---|
| 248 | %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.vdo.policy |
---|
| 249 | %endif |
---|
| 250 | |
---|
[6011] | 251 | %files devel |
---|
| 252 | %defattr(-,root,root,-) |
---|
| 253 | %{_includedir}/udisks2 |
---|
| 254 | %{_libdir}/libudisks2.so |
---|
| 255 | %{_libdir}/pkgconfig/udisks2.pc |
---|
| 256 | %{_datadir}/gir-1.0/UDisks-2.0.gir |
---|
| 257 | |
---|
[7938] | 258 | %files docs |
---|
[6011] | 259 | %defattr(-,root,root,-) |
---|
| 260 | %{_datadir}/gtk-doc/html/%{name} |
---|
| 261 | |
---|
| 262 | # |
---|
| 263 | %changelog |
---|
[12361] | 264 | * Mon Mar 30 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.4-1 |
---|
| 265 | - new upstream release. |
---|
| 266 | |
---|
[12015] | 267 | * Mon Jan 07 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.1-2 |
---|
| 268 | - enabled lvm2, lvmcache and zram. |
---|
| 269 | |
---|
[12000] | 270 | * Mon Dec 17 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.1-1 |
---|
| 271 | - new upstream release. |
---|
| 272 | - enabled elogind. |
---|
| 273 | |
---|
[10195] | 274 | * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.7-1 |
---|
| 275 | - new upstream release |
---|
| 276 | |
---|
[9930] | 277 | * Sun Jan 03 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.6-2 |
---|
| 278 | - add Requires: gdisk |
---|
| 279 | |
---|
[9715] | 280 | * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.6-1 |
---|
| 281 | - new upstream release |
---|
| 282 | |
---|
[9578] | 283 | * Sun May 24 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-2 |
---|
| 284 | - remove unused files |
---|
| 285 | - change path of umount.udisks2 |
---|
| 286 | |
---|
[9502] | 287 | * Sun Apr 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-1 |
---|
| 288 | - new upstream release |
---|
| 289 | |
---|
[9192] | 290 | * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.4-1 |
---|
| 291 | - new upstream release |
---|
| 292 | |
---|
[8732] | 293 | * Thu Jul 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-3 |
---|
| 294 | - change BuildRequires: eudev-libgudev1-devel instead of libgudev1-devel |
---|
| 295 | - change BuildRequires: eudev-libudev-devel instead of libudev-devel |
---|
| 296 | |
---|
[8353] | 297 | * Sun Mar 30 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-1 |
---|
| 298 | - new upstream release |
---|
| 299 | |
---|
[8119] | 300 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-2 |
---|
| 301 | - rebuild with VineSeed environment |
---|
| 302 | |
---|
[7938] | 303 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-1 |
---|
| 304 | - new upstream release |
---|
| 305 | |
---|
[7582] | 306 | * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1 |
---|
| 307 | - new upstream release |
---|
| 308 | |
---|
[7294] | 309 | * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1 |
---|
| 310 | - new upstream release |
---|
| 311 | |
---|
[6951] | 312 | * Tue Oct 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.0-1 |
---|
| 313 | - new upstream release |
---|
| 314 | |
---|
[6890] | 315 | * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.99.0-1 |
---|
| 316 | - new upstream release |
---|
| 317 | |
---|
[6304] | 318 | * Sun Jun 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.98.0-1 |
---|
| 319 | - new upstream release |
---|
| 320 | - add BuildRequires: libacl-devel |
---|
| 321 | |
---|
[6011] | 322 | * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.94.0-1 |
---|
| 323 | - Initial build for Vine Linux |
---|
| 324 | |
---|