1 | %define glib2_version 2.6.0 |
---|
2 | %define dbus_version 1.2 |
---|
3 | %define dbus_glib_version 0.82 |
---|
4 | %define polkit_version 0.92 |
---|
5 | %define parted_version 2.3 |
---|
6 | %define udev_version 145 |
---|
7 | %define mdadm_version 2.6.7 |
---|
8 | %define device_mapper_version 1.02 |
---|
9 | %define libatasmart_version 0.12 |
---|
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: udisks |
---|
16 | Version: 1.0.4 |
---|
17 | Release: 3%{?_dist_release} |
---|
18 | License: GPLv2+ |
---|
19 | Group: System Environment/Libraries |
---|
20 | URL: http://www.freedesktop.org/wiki/Software/udisks |
---|
21 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz |
---|
22 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
23 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
24 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
25 | BuildRequires: dbus-glib-devel >= %{dbus_glib_version} |
---|
26 | BuildRequires: polkit-devel >= %{polkit_version} |
---|
27 | BuildRequires: parted-devel >= %{parted_version} |
---|
28 | BuildRequires: device-mapper-devel >= %{device_mapper_version} |
---|
29 | BuildRequires: intltool |
---|
30 | BuildRequires: libatasmart-devel >= %{libatasmart_version} |
---|
31 | BuildRequires: libgudev1-devel >= %{udev_version} |
---|
32 | BuildRequires: libudev-devel >= %{udev_version} |
---|
33 | BuildRequires: sg3_utils-devel >= %{sg3_utils_version} |
---|
34 | BuildRequires: lvm2-devel >= %{lvm2_version} |
---|
35 | # needed to pull in the system bus daemon |
---|
36 | Requires: dbus >= %{dbus_version} |
---|
37 | # needed to pull in the udev daemon |
---|
38 | Requires: udev >= %{udev_version} |
---|
39 | # we need at least this version for bugfixes / features etc. |
---|
40 | Requires: libatasmart >= %{libatasmart_version} |
---|
41 | Requires: mdadm >= %{mdadm_version} |
---|
42 | # for smp_rep_manufacturer |
---|
43 | Requires: smp_utils >= %{smp_utils_version} |
---|
44 | # for mount, umount, mkswap |
---|
45 | Requires: util-linux-ng |
---|
46 | # for mkfs.ext3, mkfs.ext3, e2label |
---|
47 | Requires: e2fsprogs |
---|
48 | # for mkfs.xfs, xfs_admin |
---|
49 | Requires: xfsprogs |
---|
50 | # for mkfs.vfat |
---|
51 | Requires: dosfstools |
---|
52 | # for mlabel |
---|
53 | Requires: mtools |
---|
54 | # for mkntfs - no ntfsprogs on ppc, though |
---|
55 | %ifnarch ppc ppc64 |
---|
56 | Requires: ntfsprogs |
---|
57 | %endif |
---|
58 | |
---|
59 | # for /proc/self/mountinfo, only available in 2.6.26 or higher |
---|
60 | Conflicts: kernel < 2.6.26 |
---|
61 | |
---|
62 | # we need liblvm2app at least this recent since the ABI changed (sizes |
---|
63 | # reported in number of bytes instead of number of sectors) without |
---|
64 | # the sonumber changing |
---|
65 | # |
---|
66 | Requires: lvm2-libs >= %{lvm2_version} |
---|
67 | |
---|
68 | # Obsolete and Provide DeviceKit-disks - udisks provides exactly the same |
---|
69 | # ABI just with a different name and versioning-scheme |
---|
70 | # |
---|
71 | Obsoletes: DeviceKit-disks <= 009 |
---|
72 | Provides: DeviceKit-disks = 010 |
---|
73 | |
---|
74 | Vendor: Project Vine |
---|
75 | Distribution: Vine Linux |
---|
76 | |
---|
77 | %description |
---|
78 | udisks provides a daemon, D-Bus API and command line tools |
---|
79 | for managing disks and storage devices. |
---|
80 | |
---|
81 | %package devel |
---|
82 | Summary: D-Bus interface definitions for udisks |
---|
83 | Group: Development/Libraries |
---|
84 | Requires: %{name} = %{version}-%{release} |
---|
85 | Requires: gtk-doc |
---|
86 | |
---|
87 | # See comment above |
---|
88 | # |
---|
89 | Obsoletes: DeviceKit-disks-devel <= 009 |
---|
90 | Provides: DeviceKit-disks-devel = 010 |
---|
91 | |
---|
92 | %description devel |
---|
93 | D-Bus interface definitions and documentation for udisks. |
---|
94 | |
---|
95 | %prep |
---|
96 | %setup -q |
---|
97 | |
---|
98 | %build |
---|
99 | %configure \ |
---|
100 | --enable-gtk-doc \ |
---|
101 | --enable-lvm2 |
---|
102 | make |
---|
103 | |
---|
104 | %install |
---|
105 | rm -rf $RPM_BUILD_ROOT |
---|
106 | |
---|
107 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
108 | |
---|
109 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
110 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
111 | |
---|
112 | # for now, include a compat symlink for the command-line tool |
---|
113 | # and man page |
---|
114 | ln -s udisks $RPM_BUILD_ROOT%{_bindir}/devkit-disks |
---|
115 | ln -s udisks.1 $RPM_BUILD_ROOT%{_datadir}/man/man1/devkit-disks.1 |
---|
116 | |
---|
117 | # TODO: should be fixed upstream |
---|
118 | chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/udisks-bash-completion.sh |
---|
119 | |
---|
120 | %find_lang %{name} |
---|
121 | |
---|
122 | %clean |
---|
123 | rm -rf $RPM_BUILD_ROOT |
---|
124 | |
---|
125 | %files -f %{name}.lang |
---|
126 | %defattr(-,root,root,-) |
---|
127 | |
---|
128 | %doc README AUTHORS NEWS COPYING HACKING doc/TODO |
---|
129 | |
---|
130 | %{_sysconfdir}/avahi/services/udisks.service |
---|
131 | %{_sysconfdir}/dbus-1/system.d/*.conf |
---|
132 | %{_sysconfdir}/profile.d/*.sh |
---|
133 | /lib/udev/rules.d/*.rules |
---|
134 | |
---|
135 | /lib/udev/udisks-part-id |
---|
136 | /lib/udev/udisks-dm-export |
---|
137 | /lib/udev/udisks-probe-ata-smart |
---|
138 | /lib/udev/udisks-probe-sas-expander |
---|
139 | /lib/udev/udisks-lvm-pv-export |
---|
140 | /sbin/umount.udisks |
---|
141 | |
---|
142 | %{_bindir}/* |
---|
143 | %{_libexecdir}/* |
---|
144 | |
---|
145 | %{_mandir}/man1/* |
---|
146 | %{_mandir}/man7/* |
---|
147 | %{_mandir}/man8/* |
---|
148 | |
---|
149 | %{_datadir}/polkit-1/actions/*.policy |
---|
150 | |
---|
151 | %{_datadir}/dbus-1/system-services/*.service |
---|
152 | |
---|
153 | %attr(0700,root,root) %dir %{_localstatedir}/lib/udisks |
---|
154 | |
---|
155 | %files devel |
---|
156 | %defattr(-,root,root,-) |
---|
157 | |
---|
158 | %{_datadir}/dbus-1/interfaces/*.xml |
---|
159 | %{_datadir}/pkgconfig/udisks.pc |
---|
160 | |
---|
161 | %dir %{_datadir}/gtk-doc/html/udisks |
---|
162 | %{_datadir}/gtk-doc/html/udisks/* |
---|
163 | |
---|
164 | # Note: please don't forget the %{?dist} in the changelog. Thanks |
---|
165 | # |
---|
166 | %changelog |
---|
167 | * Sun Jul 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-3 |
---|
168 | - rebuild with parted-3.1 |
---|
169 | |
---|
170 | * Thu Jan 05 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-2 |
---|
171 | - rebuild with parted-3.0 |
---|
172 | |
---|
173 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-1 |
---|
174 | - new upstream release |
---|
175 | |
---|
176 | * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.3-1 |
---|
177 | - new upstream release |
---|
178 | - drop Patch0 |
---|
179 | |
---|
180 | * Sun Aug 07 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.2-2 |
---|
181 | - add Patch0 (10-ide-cd-support.patch) from ubuntu |
---|
182 | |
---|
183 | * Thu Dec 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.2-1 |
---|
184 | - new upstream release |
---|
185 | |
---|
186 | * Tue Nov 9 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.1-2 |
---|
187 | - rebuilt with parted 2.3 |
---|
188 | |
---|
189 | * Tue Oct 05 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-1 |
---|
190 | - new upstream release |
---|
191 | |
---|
192 | * Wed Apr 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.0-1 |
---|
193 | - Initial build for Vine Linux |
---|
194 | |
---|
195 | |
---|
196 | * Tue Mar 30 2010 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-2%{?dist} |
---|
197 | - Bump release and rebuild so we link to the new libparted. |
---|
198 | |
---|
199 | * Mon Mar 15 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-1%{?dist} |
---|
200 | - Update to release 1.0.0 |
---|
201 | |
---|
202 | * Tue Feb 23 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100223.1%{?dist} |
---|
203 | - Update to new git snapshot |
---|
204 | |
---|
205 | * Tue Feb 16 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100215.3%{?dist} |
---|
206 | - Require lvm2-libs >= 2.02.61 to get the right ABI for liblvm2app |
---|
207 | |
---|
208 | * Tue Feb 16 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100215.2%{?dist} |
---|
209 | - Update for new liblvm2app library |
---|
210 | |
---|
211 | * Mon Feb 15 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100215.1%{?dist} |
---|
212 | - Update to git snapshot |
---|
213 | |
---|
214 | * Fri Jan 15 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100115.2%{?dist} |
---|
215 | - Rebuild |
---|
216 | |
---|
217 | * Fri Jan 15 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20100115.1%{?dist} |
---|
218 | - New git snapshot with LVM support |
---|
219 | |
---|
220 | * Tue Jan 12 2010 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20091202.3%{?dist} |
---|
221 | - Rebuild for new libparted |
---|
222 | |
---|
223 | * Mon Dec 07 2009 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20091202.2%{?dist} |
---|
224 | - Rebuild |
---|
225 | |
---|
226 | * Fri Dec 04 2009 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20091202.1%{?dist} |
---|
227 | - Updated for package review (#543608) |
---|
228 | |
---|
229 | * Wed Dec 02 2009 David Zeuthen <davidz@redhat.com> - 1.0.0-0.git20091202%{?dist} |
---|
230 | - Git snapshot for upcoming 1.0.0 release |
---|