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