1 | %define glib2_version 2.40.0 |
---|
2 | %define dbus_version 1.6.14 |
---|
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 |
---|
12 | %global libblockdev_version 2.19 |
---|
13 | |
---|
14 | Summary: Storage Management Service |
---|
15 | Name: udisks2 |
---|
16 | Version: 2.8.1 |
---|
17 | Release: 2%{?_dist_release} |
---|
18 | License: GPLv2+ |
---|
19 | Group: System Environment/Libraries |
---|
20 | URL: http://www.freedesktop.org/wiki/Software/udisks |
---|
21 | |
---|
22 | Source0: http://udisks.freedesktop.org/releases/udisks-%{version}.tar.bz2 |
---|
23 | |
---|
24 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
25 | |
---|
26 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
27 | BuildRequires: gobject-introspection-devel |
---|
28 | BuildRequires: eudev-libgudev1-devel |
---|
29 | BuildRequires: eudev-libudev-devel |
---|
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} |
---|
35 | BuildRequires: libacl-devel |
---|
36 | BuildRequires: intltool |
---|
37 | BuildRequires: libatasmart-devel >= %{libatasmart_version} |
---|
38 | BuildRequires: sg3_utils-devel >= %{sg3_utils_version} |
---|
39 | BuildRequires: lvm2-devel >= %{lvm2_version} |
---|
40 | BuildRequires: elogind-devel |
---|
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 |
---|
57 | |
---|
58 | # needed to pull in the system bus daemon |
---|
59 | Requires: dbus >= %{dbus_version} |
---|
60 | # needed to pull in the udev daemon |
---|
61 | Requires: eudev |
---|
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 |
---|
81 | Requires: gdisk |
---|
82 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|
157 | %package docs |
---|
158 | Summary: Documentation for udisks2 |
---|
159 | Group: Documentation |
---|
160 | Requires: %{name} = %{version}-%{release} |
---|
161 | BuildArch: noarch |
---|
162 | Provides: %{name}-doc = %{version}-%{release} |
---|
163 | |
---|
164 | |
---|
165 | %description docs |
---|
166 | This package contains documentation for udisks2. |
---|
167 | |
---|
168 | |
---|
169 | %prep |
---|
170 | %setup -q -n udisks-%{version} |
---|
171 | |
---|
172 | %build |
---|
173 | autoreconf -vif |
---|
174 | %configure \ |
---|
175 | --sbindir=%{_syssbindir} \ |
---|
176 | --enable-lvm2 \ |
---|
177 | --enable-lvmcache \ |
---|
178 | --enable-zram \ |
---|
179 | --enable-gtk-doc |
---|
180 | make |
---|
181 | |
---|
182 | %install |
---|
183 | rm -rf $RPM_BUILD_ROOT |
---|
184 | |
---|
185 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
186 | |
---|
187 | find %{buildroot} -name \*.la -o -name \*.a | xargs rm |
---|
188 | |
---|
189 | chrpath --delete %{buildroot}/%{_syssbindir}/umount.udisks2 |
---|
190 | chrpath --delete %{buildroot}/%{_bindir}/udisksctl |
---|
191 | chrpath --delete %{buildroot}/%{_libexecdir}/udisks2/udisksd |
---|
192 | |
---|
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 | |
---|
201 | %find_lang %{name} |
---|
202 | |
---|
203 | %clean |
---|
204 | rm -rf $RPM_BUILD_ROOT |
---|
205 | |
---|
206 | %post |
---|
207 | /sbin/ldconfig |
---|
208 | udevadm control --reload |
---|
209 | udevadm trigger |
---|
210 | |
---|
211 | %postun -p /sbin/ldconfig |
---|
212 | |
---|
213 | %files -f %{name}.lang |
---|
214 | %defattr(-,root,root,-) |
---|
215 | %license COPYING |
---|
216 | %doc README* AUTHORS NEWS HACKING NEWS |
---|
217 | %config(noreplace) %{_sysconfdir}/udisks2/udisks2.conf |
---|
218 | %{_sysconfdir}/dbus-1/system.d/org.freedesktop.UDisks2.conf |
---|
219 | /lib/udev/rules.d/80-udisks2.rules |
---|
220 | %{_bindir}/udisksctl |
---|
221 | %{_syssbindir}/umount.udisks2 |
---|
222 | %{_libexecdir}/udisks2/udisksd |
---|
223 | %{_libdir}/libudisks2.so.* |
---|
224 | %{_libdir}/girepository-1.0/UDisks-2.0.typelib |
---|
225 | %dir %{_libdir}/udisks2 |
---|
226 | %dir %{_libdir}/udisks2/modules |
---|
227 | %dir %{_datadir}/bash-completion |
---|
228 | %dir %{_datadir}/bash-completion/completions |
---|
229 | %{_datadir}/bash-completion/completions/udisksctl |
---|
230 | %{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service |
---|
231 | %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.policy |
---|
232 | %{_mandir}/man1/* |
---|
233 | %{_mandir}/man5/* |
---|
234 | %{_mandir}/man8/* |
---|
235 | %attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2 |
---|
236 | %attr(0755,root,root) %dir /run |
---|
237 | |
---|
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 | |
---|
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 | |
---|
260 | %files docs |
---|
261 | %defattr(-,root,root,-) |
---|
262 | %{_datadir}/gtk-doc/html/%{name} |
---|
263 | |
---|
264 | # |
---|
265 | %changelog |
---|
266 | * Mon Jan 07 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.1-2 |
---|
267 | - enabled lvm2, lvmcache and zram. |
---|
268 | |
---|
269 | * Mon Dec 17 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.1-1 |
---|
270 | - new upstream release. |
---|
271 | - enabled elogind. |
---|
272 | |
---|
273 | * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.7-1 |
---|
274 | - new upstream release |
---|
275 | |
---|
276 | * Sun Jan 03 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.6-2 |
---|
277 | - add Requires: gdisk |
---|
278 | |
---|
279 | * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.6-1 |
---|
280 | - new upstream release |
---|
281 | |
---|
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 | |
---|
286 | * Sun Apr 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-1 |
---|
287 | - new upstream release |
---|
288 | |
---|
289 | * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.4-1 |
---|
290 | - new upstream release |
---|
291 | |
---|
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 | |
---|
296 | * Sun Mar 30 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-1 |
---|
297 | - new upstream release |
---|
298 | |
---|
299 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-2 |
---|
300 | - rebuild with VineSeed environment |
---|
301 | |
---|
302 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-1 |
---|
303 | - new upstream release |
---|
304 | |
---|
305 | * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1 |
---|
306 | - new upstream release |
---|
307 | |
---|
308 | * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1 |
---|
309 | - new upstream release |
---|
310 | |
---|
311 | * Tue Oct 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.0-1 |
---|
312 | - new upstream release |
---|
313 | |
---|
314 | * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.99.0-1 |
---|
315 | - new upstream release |
---|
316 | |
---|
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 | |
---|
321 | * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.94.0-1 |
---|
322 | - Initial build for Vine Linux |
---|
323 | |
---|