source: projects/specs/trunk/u/udisks2/udisks2-vl.spec @ 12361

Revision 12361, 9.3 KB checked in by tomop, 13 months ago (diff)

updated 8 packages

cryptsetup-2.3.1-1

gdisk-1.0.5-1

kernel-4.14.174-1

lvm2-2.03.09-1

libblockdev-2.23-1

libmicrohttpd-0.9.70-1

udisks-1.0.5-1

udisks2-2.8.4-1

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