[6011] | 1 | %define glib2_version 2.32.0 |
---|
| 2 | %define dbus_version 1.4.20 |
---|
| 3 | %define dbus_glib_version 0.98 |
---|
| 4 | %define polkit_version 0.104 |
---|
| 5 | %define parted_version 2.3 |
---|
| 6 | %define udev_version 175 |
---|
| 7 | %define mdadm_version 2.6.7 |
---|
| 8 | %define device_mapper_version 1.02 |
---|
| 9 | %define libatasmart_version 0.17 |
---|
| 10 | %define sg3_utils_version 1.27 |
---|
| 11 | %define smp_utils_version 0.94 |
---|
| 12 | %define lvm2_version 2.02.78 |
---|
| 13 | |
---|
| 14 | Summary: Storage Management Service |
---|
| 15 | Name: udisks2 |
---|
| 16 | Version: 1.94.0 |
---|
| 17 | Release: 1%{?_dist_release} |
---|
| 18 | License: GPLv2+ |
---|
| 19 | Group: System Environment/Libraries |
---|
| 20 | URL: http://www.freedesktop.org/wiki/Software/udisks |
---|
| 21 | |
---|
| 22 | Source0: http://hal.freedesktop.org/releases/udisks-%{version}.tar.bz2 |
---|
| 23 | |
---|
| 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 25 | |
---|
| 26 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
| 27 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
| 28 | BuildRequires: dbus-glib-devel >= %{dbus_glib_version} |
---|
| 29 | BuildRequires: polkit-devel >= %{polkit_version} |
---|
| 30 | BuildRequires: parted-devel >= %{parted_version} |
---|
| 31 | BuildRequires: device-mapper-devel >= %{device_mapper_version} |
---|
| 32 | BuildRequires: intltool |
---|
| 33 | BuildRequires: libatasmart-devel >= %{libatasmart_version} |
---|
| 34 | BuildRequires: libgudev1-devel >= %{udev_version} |
---|
| 35 | BuildRequires: libudev-devel >= %{udev_version} |
---|
| 36 | BuildRequires: sg3_utils-devel >= %{sg3_utils_version} |
---|
| 37 | BuildRequires: lvm2-devel >= %{lvm2_version} |
---|
| 38 | BuildRequires: gobject-introspection-devel |
---|
| 39 | |
---|
| 40 | # needed to pull in the system bus daemon |
---|
| 41 | Requires: dbus >= %{dbus_version} |
---|
| 42 | # needed to pull in the udev daemon |
---|
| 43 | Requires: udev >= %{udev_version} |
---|
| 44 | # we need at least this version for bugfixes / features etc. |
---|
| 45 | Requires: libatasmart >= %{libatasmart_version} |
---|
| 46 | Requires: mdadm >= %{mdadm_version} |
---|
| 47 | # for smp_rep_manufacturer |
---|
| 48 | Requires: smp_utils >= %{smp_utils_version} |
---|
| 49 | # for mount, umount, mkswap |
---|
| 50 | Requires: util-linux-ng |
---|
| 51 | # for mkfs.ext3, mkfs.ext3, e2label |
---|
| 52 | Requires: e2fsprogs |
---|
| 53 | # for mkfs.xfs, xfs_admin |
---|
| 54 | Requires: xfsprogs |
---|
| 55 | # for mkfs.vfat |
---|
| 56 | Requires: dosfstools |
---|
| 57 | # for mlabel |
---|
| 58 | Requires: mtools |
---|
| 59 | # for mkntfs - no ntfsprogs on ppc, though |
---|
| 60 | %ifnarch ppc ppc64 |
---|
| 61 | Requires: ntfsprogs |
---|
| 62 | %endif |
---|
| 63 | |
---|
| 64 | # for /proc/self/mountinfo, only available in 2.6.26 or higher |
---|
| 65 | Conflicts: kernel < 2.6.26 |
---|
| 66 | |
---|
| 67 | # we need liblvm2app at least this recent since the ABI changed (sizes |
---|
| 68 | # reported in number of bytes instead of number of sectors) without |
---|
| 69 | # the sonumber changing |
---|
| 70 | # |
---|
| 71 | Requires: lvm2-libs >= %{lvm2_version} |
---|
| 72 | |
---|
| 73 | Vendor: Project Vine |
---|
| 74 | Distribution: Vine Linux |
---|
| 75 | |
---|
| 76 | %description |
---|
| 77 | udisks provides a daemon, D-Bus API and command line tools |
---|
| 78 | for managing disks and storage devices. |
---|
| 79 | |
---|
| 80 | %package devel |
---|
| 81 | Summary: D-Bus interface definitions for udisks |
---|
| 82 | Group: Development/Libraries |
---|
| 83 | Requires: %{name} = %{version}-%{release} |
---|
| 84 | |
---|
| 85 | # See comment above |
---|
| 86 | # |
---|
| 87 | %description devel |
---|
| 88 | D-Bus interface definitions and documentation for udisks. |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %package doc |
---|
| 92 | Summary: Documentation for udisks2 |
---|
| 93 | Group: Documentation |
---|
| 94 | Requires: %{name} = %{version}-%{release} |
---|
| 95 | BuildArch: noarch |
---|
| 96 | |
---|
| 97 | %description doc |
---|
| 98 | This package contains documentation for udisks2. |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | %prep |
---|
| 102 | %setup -q -n udisks-%{version} |
---|
| 103 | |
---|
| 104 | %build |
---|
| 105 | %configure \ |
---|
| 106 | --enable-gtk-doc |
---|
| 107 | make |
---|
| 108 | |
---|
| 109 | %install |
---|
| 110 | rm -rf $RPM_BUILD_ROOT |
---|
| 111 | |
---|
| 112 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 113 | |
---|
| 114 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 115 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
| 116 | |
---|
| 117 | # for now, include a compat symlink for the command-line tool |
---|
| 118 | # and man page |
---|
| 119 | ln -s udisks $RPM_BUILD_ROOT%{_bindir}/devkit-disks |
---|
| 120 | ln -s udisks.1 $RPM_BUILD_ROOT%{_datadir}/man/man1/devkit-disks.1 |
---|
| 121 | |
---|
| 122 | %find_lang %{name} |
---|
| 123 | |
---|
| 124 | %clean |
---|
| 125 | rm -rf $RPM_BUILD_ROOT |
---|
| 126 | |
---|
| 127 | %post -p /sbin/ldconfig |
---|
| 128 | |
---|
| 129 | %postun -p /sbin/ldconfig |
---|
| 130 | |
---|
| 131 | %files -f %{name}.lang |
---|
| 132 | %defattr(-,root,root,-) |
---|
| 133 | %doc README AUTHORS NEWS COPYING HACKING |
---|
| 134 | %{_sysconfdir}/bash_completion.d/udisksctl-bash-completion.sh |
---|
| 135 | %{_sysconfdir}/dbus-1/system.d/org.freedesktop.UDisks2.conf |
---|
| 136 | /lib/udev/rules.d/80-udisks2.rules |
---|
| 137 | %{_bindir}/devkit-disks |
---|
| 138 | %{_bindir}/udisksctl |
---|
| 139 | %{_sbindir}/umount.udisks2 |
---|
| 140 | %dir %{_prefix}/lib/udisks2 |
---|
| 141 | %{_prefix}/lib/udisks2/udisksd |
---|
| 142 | %{_libdir}/libudisks2.so.* |
---|
| 143 | %{_libdir}/girepository-1.0/UDisks-2.0.typelib |
---|
| 144 | %{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service |
---|
| 145 | %{_datadir}/polkit-1/actions/org.freedesktop.udisks2.policy |
---|
| 146 | %{_mandir}/man1/* |
---|
| 147 | %{_mandir}/man8/* |
---|
| 148 | %attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2 |
---|
| 149 | |
---|
| 150 | %files devel |
---|
| 151 | %defattr(-,root,root,-) |
---|
| 152 | %{_includedir}/udisks2 |
---|
| 153 | %{_libdir}/libudisks2.so |
---|
| 154 | %{_libdir}/pkgconfig/udisks2.pc |
---|
| 155 | %{_datadir}/gir-1.0/UDisks-2.0.gir |
---|
| 156 | |
---|
| 157 | %files doc |
---|
| 158 | %defattr(-,root,root,-) |
---|
| 159 | %{_datadir}/gtk-doc/html/%{name} |
---|
| 160 | |
---|
| 161 | # |
---|
| 162 | %changelog |
---|
| 163 | * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.94.0-1 |
---|
| 164 | - Initial build for Vine Linux |
---|
| 165 | |
---|