- PLD merge
[packages/udisks.git] / udisks.spec
1 Summary:        Disk Management Service
2 Summary(pl.UTF-8):      Usługa zarządzania dyskami
3 Name:           udisks
4 Version:        1.0.5
5 Release:        5
6 License:        GPL v2+
7 Group:          Libraries
8 Source0:        http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
9 # Source0-md5:  70d48dcfe523a74cd7c7fbbc2847fcdd
10 Patch0:         drop-pci-db.patch
11 Patch1:         %{name}-ac.patch
12 Patch2:         headers.patch
13 URL:            http://www.freedesktop.org/wiki/Software/udisks
14 BuildRequires:  autoconf >= 2.60
15 BuildRequires:  automake
16 BuildRequires:  dbus-devel >= 1.0.0
17 BuildRequires:  dbus-glib-devel >= 0.82
18 BuildRequires:  device-mapper-devel >= 2.02
19 BuildRequires:  docbook-dtd412-xml
20 BuildRequires:  gettext-tools
21 BuildRequires:  glib2-devel >= 1:2.16.0
22 BuildRequires:  gtk-doc >= 1.3
23 BuildRequires:  intltool >= 0.36.0
24 BuildRequires:  libatasmart-devel >= 0.14
25 BuildRequires:  libtool
26 BuildRequires:  libxslt-progs
27 BuildRequires:  parted-devel >= 2.3
28 BuildRequires:  pkgconfig
29 BuildRequires:  polkit-devel >= 0.97
30 BuildRequires:  sg3_utils-devel
31 BuildRequires:  udev-devel >= 1:147
32 BuildRequires:  udev-glib-devel >= 1:147
33 Requires:       dbus >= 1.0.0
34 Requires:       dbus-glib >= 0.82
35 Requires:       glib2 >= 1:2.16.0
36 Requires:       libatasmart >= 0.14
37 Requires:       polkit >= 0.97
38 Requires:       udev-core >= 1:147
39 Suggests:       dosfstools
40 Suggests:       e2fsprogs
41 Suggests:       mdadm
42 Suggests:       mount
43 Suggests:       mtools
44 Suggests:       ntfsprogs
45 Suggests:       util-linux
46 Suggests:       xfsprogs
47 Obsoletes:      DeviceKit-disks
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %description
51 udisks provides a daemon, D-Bus API and command line tools for
52 managing disks and storage devices.
53
54 %description -l pl.UTF-8
55 udisks dostarcza demona, API D-Bus oraz narzędzia linii poleceń do
56 zarządzania dyskami i innymi urządzeniami przechowującymi dane.
57
58 %package devel
59 Summary:        D-Bus interface definitions for udisks
60 Summary(pl.UTF-8):      Definicje interfejsu D-Bus dla udisks
61 Group:          Development/Libraries
62 Obsoletes:      DeviceKit-disks-devel
63
64 %description devel
65 D-Bus interface definitions for udisks.
66
67 %description devel -l pl.UTF-8
68 Definicje interfejsu D-Bus dla udisks.
69
70 %package apidocs
71 Summary:        D-Bus interface documentation for udisks
72 Summary(pl.UTF-8):      Dokumentacja interfejsu D-Bus dla udisks
73 Group:          Documentation
74 Requires:       gtk-doc-common
75 Obsoletes:      DeviceKit-disks-apidocs
76 %if "%{_rpmversion}" >= "5"
77 BuildArch:      noarch
78 %endif
79
80 %description apidocs
81 D-Bus interface documentation for udisks.
82
83 %description apidocs -l pl.UTF-8
84 Dokumentacja interfejsu D-Bus dla udisks.
85
86 %package -n bash-completion-udisks
87 Summary:        bash-completion for udisks
88 Summary(pl.UTF-8):      bashowe uzupełnianie poleceń dla udisks
89 Group:          Applications/Shells
90 Requires:       bash-completion
91 %if "%{_rpmversion}" >= "5"
92 BuildArch:      noarch
93 %endif
94
95 %description -n bash-completion-udisks
96 This package provides bash-completion for udisks.
97
98 %description -n bash-completion-udisks -l pl.UTF-8
99 Pakiet ten dostarcza bashowe uzupełnianie poleceń dla udisks.
100
101 %package avahi
102 Summary:        udisks service configuration for avahi
103 Summary(pl.UTF-8):      Konfiguracja usługi udisks dla avahi
104 Group:          Applications
105 Requires:       %{name} = %{version}-%{release}
106 Requires:       avahi
107
108 %description avahi
109 udisks service configuration for avahi.
110
111 %description avahi -l pl.UTF-8
112 Konfiguracja usługi udisks dla avahi.
113
114 %prep
115 %setup -q
116 %patch0 -p1
117 %patch1 -p1
118 %patch2 -p1
119
120 %build
121 %{__intltoolize}
122 %{__libtoolize}
123 %{__aclocal}
124 %{__autoconf}
125 %{__autoheader}
126 %{__automake}
127 %configure \
128         --disable-silent-rules \
129         --enable-gtk-doc \
130         --with-html-dir=%{_gtkdocdir}
131
132 %{__make}
133
134 %install
135 rm -rf $RPM_BUILD_ROOT
136 # see https://bugs.freedesktop.org/show_bug.cgi?id=24265
137 install -d $RPM_BUILD_ROOT/var/run/udisks \
138         $RPM_BUILD_ROOT/etc/bash_completion.d
139
140 %{__make} install \
141         DESTDIR=$RPM_BUILD_ROOT
142
143 mv $RPM_BUILD_ROOT{%{_sysconfdir}/profile.d/udisks-bash-completion.sh,/etc/bash_completion.d/udisks}
144
145 %find_lang udisks
146
147 %clean
148 rm -rf $RPM_BUILD_ROOT
149
150 %files -f udisks.lang
151 %defattr(644,root,root,755)
152 %doc AUTHORS HACKING NEWS README
153 %attr(755,root,root) %{_bindir}/udisks
154 %attr(755,root,root) %{_bindir}/udisks-tcp-bridge
155 %attr(755,root,root) %{_libexecdir}/udisks-daemon
156 %attr(755,root,root) %{_libexecdir}/udisks-helper-ata-smart-collect
157 %attr(755,root,root) %{_libexecdir}/udisks-helper-ata-smart-selftest
158 %attr(755,root,root) %{_libexecdir}/udisks-helper-change-filesystem-label
159 %attr(755,root,root) %{_libexecdir}/udisks-helper-change-luks-password
160 %attr(755,root,root) %{_libexecdir}/udisks-helper-create-partition
161 %attr(755,root,root) %{_libexecdir}/udisks-helper-create-partition-table
162 %attr(755,root,root) %{_libexecdir}/udisks-helper-delete-partition
163 %attr(755,root,root) %{_libexecdir}/udisks-helper-drive-benchmark
164 %attr(755,root,root) %{_libexecdir}/udisks-helper-drive-detach
165 %attr(755,root,root) %{_libexecdir}/udisks-helper-drive-poll
166 %attr(755,root,root) %{_libexecdir}/udisks-helper-fstab-mounter
167 %attr(755,root,root) %{_libexecdir}/udisks-helper-linux-md-check
168 %attr(755,root,root) %{_libexecdir}/udisks-helper-linux-md-remove-component
169 %attr(755,root,root) %{_libexecdir}/udisks-helper-mdadm-expand
170 %attr(755,root,root) %{_libexecdir}/udisks-helper-mkfs
171 %attr(755,root,root) %{_libexecdir}/udisks-helper-modify-partition
172 %attr(755,root,root) /sbin/umount.udisks
173 %attr(755,root,root) /lib/udev/udisks-dm-export
174 %attr(755,root,root) /lib/udev/udisks-part-id
175 %attr(755,root,root) /lib/udev/udisks-probe-ata-smart
176 %attr(755,root,root) /lib/udev/udisks-probe-sas-expander
177 /lib/udev/rules.d/80-udisks.rules
178 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.UDisks.conf
179 %{_datadir}/dbus-1/system-services/org.freedesktop.UDisks.service
180 %{_datadir}/polkit-1/actions/org.freedesktop.udisks.policy
181 %attr(700,root,root) /var/lib/udisks
182 %attr(700,root,root) /var/run/udisks
183 %{_mandir}/man1/udisks-tcp-bridge.1*
184 %{_mandir}/man1/udisks.1*
185 %{_mandir}/man7/udisks.7*
186 %{_mandir}/man8/udisks-daemon.8*
187
188 %files devel
189 %defattr(644,root,root,755)
190 %{_datadir}/dbus-1/interfaces/org.freedesktop.UDisks.Adapter.xml
191 %{_datadir}/dbus-1/interfaces/org.freedesktop.UDisks.Device.xml
192 %{_datadir}/dbus-1/interfaces/org.freedesktop.UDisks.Expander.xml
193 %{_datadir}/dbus-1/interfaces/org.freedesktop.UDisks.Port.xml
194 %{_datadir}/dbus-1/interfaces/org.freedesktop.UDisks.xml
195 %{_npkgconfigdir}/udisks.pc
196
197 %files apidocs
198 %defattr(644,root,root,755)
199 %{_gtkdocdir}/udisks
200
201 %files -n bash-completion-udisks
202 %defattr(644,root,root,755)
203 /etc/bash_completion.d/udisks
204
205 %files avahi
206 %defattr(644,root,root,755)
207 %{_sysconfdir}/avahi/services/udisks.service