]> git.pld-linux.org Git - packages/upower.git/blob - upower.spec
- updated to 0.9.20
[packages/upower.git] / upower.spec
1 Summary:        Power management service
2 Summary(pl.UTF-8):      Usługa zarządzania energią
3 Name:           upower
4 Version:        0.9.20
5 Release:        1
6 License:        GPL v2+
7 Group:          Libraries
8 Source0:        http://upower.freedesktop.org/releases/%{name}-%{version}.tar.xz
9 # Source0-md5:  f175984d142dc8d2353a7da609836b69
10 URL:            http://upower.freedesktop.org/
11 BuildRequires:  autoconf >= 2.65
12 BuildRequires:  automake >= 1:1.11
13 BuildRequires:  dbus-devel >= 1.0.0
14 BuildRequires:  dbus-glib-devel >= 0.76
15 BuildRequires:  docbook-dtd412-xml
16 BuildRequires:  gettext-devel >= 0.17
17 BuildRequires:  glib2-devel >= 1:2.22.0
18 BuildRequires:  gobject-introspection-devel >= 0.10.0
19 BuildRequires:  gtk-doc >= 1.11
20 BuildRequires:  intltool >= 0.40.0
21 BuildRequires:  libimobiledevice-devel >= 0.9.7
22 BuildRequires:  libplist-devel >= 0.12
23 BuildRequires:  libtool
24 BuildRequires:  libusb-devel >= 1.0.0
25 BuildRequires:  pkgconfig
26 BuildRequires:  polkit-devel >= 0.97
27 BuildRequires:  tar >= 1:1.22
28 BuildRequires:  udev-glib-devel >= 1:147
29 BuildRequires:  xz
30 Requires:       pm-utils
31 Requires:       polkit >= 0.97
32 Obsoletes:      DeviceKit-power < 0.15
33 Obsoletes:      UPower < 0.9.8-2
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 upower provides a daemon, API and command line tools for managing
38 power devices attached to the system.
39
40 %description -l pl.UTF-8
41 upower dostarcza demona, API i narzędzia linii poleceń do zarządzania
42 urządzeniami energii dołączonymi do systemu.
43
44 %package libs
45 Summary:        UPower shared library
46 Summary(pl.UTF-8):      Biblioteka współdzielona UPower
47 Group:          Libraries
48 Requires:       dbus-glib >= 0.76
49 Requires:       dbus-libs >= 1.0.0
50 Requires:       glib2 >= 1:2.22.0
51 Conflicts:      upower < 0.9.18
52
53 %description libs
54 UPower shared library.
55
56 %description libs -l pl.UTF-8
57 Biblioteka współdzielona UPower.
58
59 %package devel
60 Summary:        Header files for UPower library
61 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki UPower
62 Group:          Development/Libraries
63 Requires:       %{name}-libs = %{version}-%{release}
64 Requires:       dbus-devel >= 1.0.0
65 Requires:       dbus-glib-devel >= 0.76
66 Requires:       glib2-devel >= 1:2.22.0
67 Obsoletes:      DeviceKit-power-devel
68 Obsoletes:      UPower-devel
69
70 %description devel
71 Header files for UPower library.
72
73 %description devel -l pl.UTF-8
74 Pliki nagłówkowe biblioteki UPower.
75
76 %package static
77 Summary:        Static UPower library
78 Summary(pl.UTF-8):      Statyczna biblioteka UPower
79 Group:          Development/Libraries
80 Requires:       %{name}-devel = %{version}-%{release}
81
82 %description static
83 Static UPower library.
84
85 %description static -l pl.UTF-8
86 Statyczna biblioteka UPower.
87
88 %package apidocs
89 Summary:        UPower API documentation
90 Summary(pl.UTF-8):      Dokumentacja API UPower
91 Group:          Documentation
92 Requires:       gtk-doc-common
93 Obsoletes:      DeviceKit-power-apidocs
94 Obsoletes:      UPower-apidocs
95
96 %description apidocs
97 UPower API documentation.
98
99 %description apidocs -l pl.UTF-8
100 Dokumentacja API UPower.
101
102 %prep
103 %setup -q
104
105 %build
106 %{__gtkdocize}
107 %{__intltoolize}
108 %{__libtoolize}
109 %{__aclocal}
110 %{__autoconf}
111 %{__autoheader}
112 %{__automake}
113 %configure \
114         --disable-silent-rules \
115         --enable-deprecated \
116         --enable-gtk-doc \
117         --with-html-dir=%{_gtkdocdir} \
118         --with-systemdsystemunitdir=%{systemdunitdir}
119
120 %{__make}
121
122 %install
123 rm -rf $RPM_BUILD_ROOT
124
125 %{__make} install \
126         DESTDIR=$RPM_BUILD_ROOT
127
128 %find_lang upower
129
130 %clean
131 rm -rf $RPM_BUILD_ROOT
132
133 %post   libs -p /sbin/ldconfig
134 %postun libs -p /sbin/ldconfig
135
136 %files -f upower.lang
137 %defattr(644,root,root,755)
138 %doc AUTHORS HACKING NEWS README
139 %attr(755,root,root) %{_bindir}/upower
140 %attr(755,root,root) %{_libdir}/upowerd
141 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.UPower.conf
142 %dir %{_sysconfdir}/UPower
143 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/UPower/UPower.conf
144 %{_datadir}/dbus-1/system-services/org.freedesktop.UPower.service
145 %{_datadir}/polkit-1/actions/org.freedesktop.upower.policy
146 %{_datadir}/polkit-1/actions/org.freedesktop.upower.qos.policy
147 %{systemdunitdir}/upower.service
148 %attr(755,root,root) /lib/systemd/system-sleep/notify-upower.sh
149 /lib/udev/rules.d/95-upower-battery-recall-dell.rules
150 /lib/udev/rules.d/95-upower-battery-recall-fujitsu.rules
151 /lib/udev/rules.d/95-upower-battery-recall-gateway.rules
152 /lib/udev/rules.d/95-upower-battery-recall-ibm.rules
153 /lib/udev/rules.d/95-upower-battery-recall-lenovo.rules
154 /lib/udev/rules.d/95-upower-battery-recall-toshiba.rules
155 /lib/udev/rules.d/95-upower-csr.rules
156 /lib/udev/rules.d/95-upower-hid.rules
157 /lib/udev/rules.d/95-upower-wup.rules
158 %{_mandir}/man1/upower.1*
159 %{_mandir}/man7/UPower.7*
160 %{_mandir}/man8/upowerd.8*
161 %dir /var/lib/upower
162
163 %files libs
164 %defattr(644,root,root,755)
165 %attr(755,root,root) %{_libdir}/libupower-glib.so.*.*.*
166 %attr(755,root,root) %ghost %{_libdir}/libupower-glib.so.1
167 %{_libdir}/girepository-1.0/UPowerGlib-1.0.typelib
168
169 %files devel
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_libdir}/libupower-glib.so
172 %{_libdir}/libupower-glib.la
173 %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Device.xml
174 %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml
175 %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.QoS.xml
176 %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml
177 %{_datadir}/dbus-1/interfaces/org.freedesktop.UPower.xml
178 %{_datadir}/gir-1.0/UPowerGlib-1.0.gir
179 %{_includedir}/libupower-glib
180 %{_pkgconfigdir}/upower-glib.pc
181
182 %files static
183 %defattr(644,root,root,755)
184 %{_libdir}/libupower-glib.a
185
186 %files apidocs
187 %defattr(644,root,root,755)
188 %{_gtkdocdir}/UPower
This page took 0.052185 seconds and 4 git commands to generate.