[12462] | 1 | %bcond_with systemd |
---|
| 2 | |
---|
[805] | 3 | %define glib2_version 2.6.0 |
---|
| 4 | %define dbus_version 1.2 |
---|
| 5 | %define dbus_glib_version 0.82 |
---|
| 6 | %define polkit_version 0.92 |
---|
[2193] | 7 | %define parted_version 2.3 |
---|
[8607] | 8 | %define eudev_version 1.7 |
---|
[805] | 9 | %define mdadm_version 2.6.7 |
---|
| 10 | %define device_mapper_version 1.02 |
---|
| 11 | %define libatasmart_version 0.12 |
---|
| 12 | %define sg3_utils_version 1.27 |
---|
| 13 | %define smp_utils_version 0.94 |
---|
| 14 | |
---|
| 15 | Summary: Storage Management Service |
---|
| 16 | Name: udisks |
---|
[12361] | 17 | Version: 1.0.5 |
---|
[12462] | 18 | Release: 2%{?_dist_release}%{?with_systemd:.systemd} |
---|
| 19 | Group: system |
---|
[12361] | 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | |
---|
[805] | 23 | License: GPLv2+ |
---|
[12462] | 24 | URL: https://www.freedesktop.org/wiki/Software/udisks |
---|
| 25 | Source0: https://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz |
---|
[12361] | 26 | # https://bugs.freedesktop.org/show_bug.cgi?id=90778 |
---|
| 27 | Patch0: udisks-1.0.5-fix-build-with-glibc-2.20.patch |
---|
| 28 | Patch1: fix_bash_completion.patch |
---|
| 29 | # https://bugzilla.redhat.com/show_bug.cgi?id=1238664 |
---|
| 30 | Patch2: udisks-1.0.5-fix-service-file.patch |
---|
| 31 | Patch3: udisks-1.0.5-fix-makedev-failure.patch |
---|
| 32 | |
---|
[805] | 33 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 34 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
| 35 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
| 36 | BuildRequires: dbus-glib-devel >= %{dbus_glib_version} |
---|
| 37 | BuildRequires: polkit-devel >= %{polkit_version} |
---|
| 38 | BuildRequires: parted-devel >= %{parted_version} |
---|
| 39 | BuildRequires: device-mapper-devel >= %{device_mapper_version} |
---|
| 40 | BuildRequires: intltool |
---|
| 41 | BuildRequires: libatasmart-devel >= %{libatasmart_version} |
---|
[12462] | 42 | BuildRequires: sg3_utils-devel >= %{sg3_utils_version} |
---|
| 43 | %if %{with systemd} |
---|
| 44 | BuildRequires: systemd-devel |
---|
| 45 | BuildRequires: libgudev-devel |
---|
| 46 | %{?systemd_requires} |
---|
| 47 | %else |
---|
[8607] | 48 | BuildRequires: eudev-libgudev1-devel >= %{eudev_version} |
---|
| 49 | BuildRequires: eudev-libudev-devel >= %{eudev_version} |
---|
[12462] | 50 | %endif |
---|
[805] | 51 | # needed to pull in the system bus daemon |
---|
| 52 | Requires: dbus >= %{dbus_version} |
---|
| 53 | # needed to pull in the udev daemon |
---|
[8607] | 54 | Requires: eudev >= %{eudev_version} |
---|
[805] | 55 | # we need at least this version for bugfixes / features etc. |
---|
| 56 | Requires: libatasmart >= %{libatasmart_version} |
---|
| 57 | Requires: mdadm >= %{mdadm_version} |
---|
| 58 | # for smp_rep_manufacturer |
---|
| 59 | Requires: smp_utils >= %{smp_utils_version} |
---|
| 60 | # for mount, umount, mkswap |
---|
| 61 | Requires: util-linux-ng |
---|
| 62 | # for mkfs.ext3, mkfs.ext3, e2label |
---|
| 63 | Requires: e2fsprogs |
---|
| 64 | # for mkfs.xfs, xfs_admin |
---|
| 65 | Requires: xfsprogs |
---|
| 66 | # for mkfs.vfat |
---|
| 67 | Requires: dosfstools |
---|
| 68 | # for mlabel |
---|
| 69 | Requires: mtools |
---|
| 70 | # for mkntfs - no ntfsprogs on ppc, though |
---|
| 71 | %ifnarch ppc ppc64 |
---|
| 72 | Requires: ntfsprogs |
---|
| 73 | %endif |
---|
| 74 | |
---|
| 75 | # for /proc/self/mountinfo, only available in 2.6.26 or higher |
---|
| 76 | Conflicts: kernel < 2.6.26 |
---|
| 77 | |
---|
| 78 | # we need liblvm2app at least this recent since the ABI changed (sizes |
---|
| 79 | # reported in number of bytes instead of number of sectors) without |
---|
| 80 | # the sonumber changing |
---|
| 81 | # |
---|
| 82 | Requires: lvm2-libs >= %{lvm2_version} |
---|
| 83 | |
---|
| 84 | # Obsolete and Provide DeviceKit-disks - udisks provides exactly the same |
---|
| 85 | # ABI just with a different name and versioning-scheme |
---|
| 86 | # |
---|
| 87 | Obsoletes: DeviceKit-disks <= 009 |
---|
| 88 | Provides: DeviceKit-disks = 010 |
---|
| 89 | |
---|
| 90 | %description |
---|
| 91 | udisks provides a daemon, D-Bus API and command line tools |
---|
| 92 | for managing disks and storage devices. |
---|
| 93 | |
---|
[12462] | 94 | |
---|
[805] | 95 | %package devel |
---|
| 96 | Summary: D-Bus interface definitions for udisks |
---|
[12462] | 97 | Group: programming |
---|
[805] | 98 | Requires: %{name} = %{version}-%{release} |
---|
| 99 | Requires: gtk-doc |
---|
| 100 | # See comment above |
---|
| 101 | # |
---|
| 102 | Obsoletes: DeviceKit-disks-devel <= 009 |
---|
| 103 | Provides: DeviceKit-disks-devel = 010 |
---|
| 104 | |
---|
| 105 | %description devel |
---|
| 106 | D-Bus interface definitions and documentation for udisks. |
---|
| 107 | |
---|
[12462] | 108 | |
---|
[805] | 109 | %prep |
---|
| 110 | %setup -q |
---|
[12361] | 111 | %autopatch -p1 |
---|
[805] | 112 | |
---|
[12361] | 113 | # https://bugzilla.redhat.com/show_bug.cgi?id=673544#c15 |
---|
| 114 | rm -f src/*-glue.h tools/*-glue.h |
---|
| 115 | |
---|
| 116 | autoreconf --force --install |
---|
| 117 | |
---|
[12462] | 118 | |
---|
[805] | 119 | %build |
---|
[4704] | 120 | %configure \ |
---|
| 121 | --enable-gtk-doc \ |
---|
[12361] | 122 | %{nil} |
---|
| 123 | make %{_smp_mflags} |
---|
[805] | 124 | |
---|
[12462] | 125 | |
---|
[805] | 126 | %install |
---|
| 127 | rm -rf $RPM_BUILD_ROOT |
---|
[12361] | 128 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
---|
[805] | 129 | |
---|
| 130 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 131 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
| 132 | |
---|
| 133 | # for now, include a compat symlink for the command-line tool |
---|
| 134 | # and man page |
---|
| 135 | ln -s udisks $RPM_BUILD_ROOT%{_bindir}/devkit-disks |
---|
| 136 | ln -s udisks.1 $RPM_BUILD_ROOT%{_datadir}/man/man1/devkit-disks.1 |
---|
| 137 | |
---|
| 138 | # TODO: should be fixed upstream |
---|
| 139 | chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/udisks-bash-completion.sh |
---|
| 140 | |
---|
| 141 | %find_lang %{name} |
---|
| 142 | |
---|
[12462] | 143 | |
---|
[805] | 144 | %clean |
---|
| 145 | rm -rf $RPM_BUILD_ROOT |
---|
| 146 | |
---|
[12462] | 147 | |
---|
| 148 | %if %{with systemd} |
---|
| 149 | %post |
---|
| 150 | %systemd_post udisks.service |
---|
| 151 | |
---|
| 152 | %preun |
---|
| 153 | %systemd_preun udisks.service |
---|
| 154 | |
---|
| 155 | %postun |
---|
| 156 | %systemd_postun_with_restart udisks.service |
---|
| 157 | %endif |
---|
| 158 | |
---|
| 159 | |
---|
[805] | 160 | %files -f %{name}.lang |
---|
| 161 | %defattr(-,root,root,-) |
---|
[12361] | 162 | %license COPYING |
---|
| 163 | %doc README AUTHORS NEWS HACKING doc/TODO |
---|
[805] | 164 | %{_sysconfdir}/avahi/services/udisks.service |
---|
| 165 | %{_sysconfdir}/dbus-1/system.d/*.conf |
---|
| 166 | %{_sysconfdir}/profile.d/*.sh |
---|
[12462] | 167 | |
---|
| 168 | %if %{with systemd} |
---|
| 169 | %{_unitdir}/udisks.service |
---|
| 170 | %endif |
---|
| 171 | |
---|
[805] | 172 | /lib/udev/rules.d/*.rules |
---|
| 173 | /lib/udev/udisks-part-id |
---|
| 174 | /lib/udev/udisks-dm-export |
---|
| 175 | /lib/udev/udisks-probe-ata-smart |
---|
| 176 | /lib/udev/udisks-probe-sas-expander |
---|
| 177 | /sbin/umount.udisks |
---|
| 178 | |
---|
| 179 | %{_bindir}/* |
---|
| 180 | %{_libexecdir}/* |
---|
| 181 | |
---|
| 182 | %{_mandir}/man1/* |
---|
| 183 | %{_mandir}/man7/* |
---|
| 184 | %{_mandir}/man8/* |
---|
| 185 | |
---|
| 186 | %{_datadir}/polkit-1/actions/*.policy |
---|
| 187 | |
---|
| 188 | %{_datadir}/dbus-1/system-services/*.service |
---|
| 189 | |
---|
| 190 | %attr(0700,root,root) %dir %{_localstatedir}/lib/udisks |
---|
| 191 | |
---|
| 192 | %files devel |
---|
| 193 | %defattr(-,root,root,-) |
---|
| 194 | |
---|
| 195 | %{_datadir}/dbus-1/interfaces/*.xml |
---|
| 196 | %{_datadir}/pkgconfig/udisks.pc |
---|
| 197 | |
---|
| 198 | %dir %{_datadir}/gtk-doc/html/udisks |
---|
| 199 | %{_datadir}/gtk-doc/html/udisks/* |
---|
| 200 | |
---|
[12462] | 201 | |
---|
[805] | 202 | %changelog |
---|
[12462] | 203 | * Tue Aug 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.5-2 |
---|
| 204 | - rebuilt with sg3_utils-1.45. |
---|
| 205 | - added systemd support (disabled as default). |
---|
| 206 | |
---|
[12361] | 207 | * Sun Mar 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.5-1 |
---|
| 208 | - new upstream release. |
---|
| 209 | |
---|
[8607] | 210 | * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-4 |
---|
| 211 | - change BuildRequires: eudev-libudev-devel instead of libudev-devel |
---|
| 212 | - change BuildRequires: eudev-libgudev1-devel instead of libgudev1-devel |
---|
| 213 | |
---|
[6580] | 214 | * Sun Jul 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-3 |
---|
| 215 | - rebuild with parted-3.1 |
---|
| 216 | |
---|
[5356] | 217 | * Thu Jan 05 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-2 |
---|
| 218 | - rebuild with parted-3.0 |
---|
| 219 | |
---|
[4732] | 220 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-1 |
---|
| 221 | - new upstream release |
---|
| 222 | |
---|
[4616] | 223 | * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.3-1 |
---|
| 224 | - new upstream release |
---|
| 225 | - drop Patch0 |
---|
| 226 | |
---|
[4506] | 227 | * Sun Aug 07 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.2-2 |
---|
| 228 | - add Patch0 (10-ide-cd-support.patch) from ubuntu |
---|
| 229 | |
---|
[2323] | 230 | * Thu Dec 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.2-1 |
---|
| 231 | - new upstream release |
---|
| 232 | |
---|
[2193] | 233 | * Tue Nov 9 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.1-2 |
---|
| 234 | - rebuilt with parted 2.3 |
---|
| 235 | |
---|
[2041] | 236 | * Tue Oct 05 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-1 |
---|
| 237 | - new upstream release |
---|
[1996] | 238 | |
---|
[805] | 239 | * Wed Apr 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.0-1 |
---|
| 240 | - Initial build for Vine Linux |
---|
| 241 | |
---|
| 242 | |
---|
| 243 | * Tue Mar 30 2010 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-2%{?dist} |
---|
| 244 | - Bump release and rebuild so we link to the new libparted. |
---|
| 245 | |
---|
| 246 | * Mon Mar 15 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-1%{?dist} |
---|
| 247 | - Update to release 1.0.0 |
---|
| 248 | |
---|
| 249 | * Tue Feb 23 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100223.1%{?dist} |
---|
| 250 | - Update to new git snapshot |
---|
| 251 | |
---|
| 252 | * Tue Feb 16 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100215.3%{?dist} |
---|
| 253 | - Require lvm2-libs >= 2.02.61 to get the right ABI for liblvm2app |
---|
| 254 | |
---|
| 255 | * Tue Feb 16 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100215.2%{?dist} |
---|
| 256 | - Update for new liblvm2app library |
---|
| 257 | |
---|
| 258 | * Mon Feb 15 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100215.1%{?dist} |
---|
| 259 | - Update to git snapshot |
---|
| 260 | |
---|
| 261 | * Fri Jan 15 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100115.2%{?dist} |
---|
| 262 | - Rebuild |
---|
| 263 | |
---|
| 264 | * Fri Jan 15 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100115.1%{?dist} |
---|
| 265 | - New git snapshot with LVM support |
---|
| 266 | |
---|
| 267 | * Tue Jan 12 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20091202.3%{?dist} |
---|
| 268 | - Rebuild for new libparted |
---|
| 269 | |
---|
| 270 | * Mon Dec 07 2009 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20091202.2%{?dist} |
---|
| 271 | - Rebuild |
---|
| 272 | |
---|
| 273 | * Fri Dec 04 2009 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20091202.1%{?dist} |
---|
| 274 | - Updated for package review (#543608) |
---|
| 275 | |
---|
| 276 | * Wed Dec 02 2009 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20091202%{?dist} |
---|
| 277 | - Git snapshot for upcoming 1.0.0 release |
---|