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