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