[packages/mate-power-manager] - pl, completed dependencies

qboosh qboosh at pld-linux.org
Wed Jan 1 18:51:53 CET 2014


commit 60b9762611e21ad9538d007ea46d29260d67c984
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jan 1 18:52:21 2014 +0100

    - pl, completed dependencies

 mate-power-manager.spec | 82 +++++++++++++++++++++++++++++++++----------------
 1 file changed, 55 insertions(+), 27 deletions(-)
---
diff --git a/mate-power-manager.spec b/mate-power-manager.spec
index f9b30dc..dc2bbe9 100644
--- a/mate-power-manager.spec
+++ b/mate-power-manager.spec
@@ -1,8 +1,10 @@
 #
 # Conditional build:
-%bcond_without	systemd		# without systemd inhibit
+%bcond_with	gtk3	# use GTK+ 3.x instead of 2.x
+%bcond_without	systemd	# systemd inhibit service
 
 Summary:	MATE power management service
+Summary(pl.UTF-8):	Usługa zarządzania energią dla MATE
 Name:		mate-power-manager
 Version:	1.6.3
 Release:	1
@@ -13,35 +15,53 @@ Source0:	http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
 Patch1:		use-gnome-keyring.patch
 Patch4:		uidir.patch
 URL:		http://wiki.mate-desktop.org/mate-power-manager
+BuildRequires:	autoconf >= 2.63
+BuildRequires:	automake >= 1:1.9
 BuildRequires:	cairo-devel >= 1.0.0
-BuildRequires:	dbus-glib-devel
+BuildRequires:	dbus-devel >= 1.0
+BuildRequires:	dbus-glib-devel >= 0.70
 BuildRequires:	desktop-file-utils
 BuildRequires:	docbook-dtd41-sgml
 BuildRequires:	docbook-utils
-BuildRequires:	glib2-devel
-BuildRequires:	gtk+2-devel >= 2:2.17.7
-BuildRequires:	autoconf
-BuildRequires:	automake
-BuildRequires:	libtool
-BuildRequires:	libcanberra-devel
-BuildRequires:	libcanberra-gtk-devel
+BuildRequires:	gettext-devel >= 0.10.40
+BuildRequires:	glib2-devel >= 1:2.26.0
+%{!?with_gtk2:BuildRequires:	gtk+2-devel >= 2:2.17.7}
+%{?with_gtk3:BuildRequires:	gtk+3-devel >= 3.0.0}
+BuildRequires:	intltool >= 0.35.0
+BuildRequires:	libcanberra-gtk-devel >= 0.10
 BuildRequires:	libgnome-keyring-devel >= 0.6.0
 BuildRequires:	libnotify-devel >= 0.7.0
-BuildRequires:	libunique-devel
+BuildRequires:	libtool >= 2:2
+%{!?with_gtk3:BuildRequires:	libunique-devel >= 0.9.4}
+%{?with_gtk3:BuildRequires:	libunique3-devel >= 3.0}
 BuildRequires:	mate-common
 BuildRequires:	mate-doc-utils
-BuildRequires:	mate-panel-devel
+BuildRequires:	mate-panel-devel >= 1.5.0
+BuildRequires:	pkgconfig
 BuildRequires:	popt-devel
 BuildRequires:	rpmbuild(find_lang) >= 1.36
 %{?with_systemd:BuildRequires:	systemd-devel >= 1:195}
 BuildRequires:	tar >= 1:1.22
-BuildRequires:	upower-devel
+BuildRequires:	upower-devel >= 0.9.1
+BuildRequires:	xorg-lib-libXrandr-devel >= 1.3
+BuildRequires:	xorg-proto-xproto-devel >= 7.0.15
 BuildRequires:	xz
+Requires:	cairo >= 1.0.0
+Requires:	dbus >= 1.0
+Requires:	dbus-glib >= 0.70
 Requires:	glib2 >= 1:2.26.0
+%{!?with_gtk2:Requires:	gtk+2 >= 2:2.17.7}
+%{?with_gtk3:Requires:	gtk+3 >= 3.0.0}
 Requires:	gtk-update-icon-cache
 Requires:	hicolor-icon-theme
+Requires:	libcanberra-gtk >= 0.10
+Requires:	libgnome-keyring >= 0.6.0
+Requires:	libnotify >= 0.7.0
+%{!?with_gtk3:Requires:	libunique >= 0.9.4}
+%{?with_gtk3:Requires:	libunique3 >= 3.0}
 Requires:	mate-panel >= 1.5.0
-Requires:	upower
+Requires:	upower >= 0.9.1
+Requires:	xorg-lib-libXrandr >= 1.3
 Suggests:	udisks
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -52,22 +72,30 @@ MATE Power Manager uses the information and facilities provided by
 UPower displaying icons and handling user callbacks in an interactive
 MATE session.
 
+%description -l pl.UTF-8
+MATE Power Manager wykorzystuje informacje i funkcje udostępniane
+przez UPower do wyświetlania ikon i obsługi reakcji użytkownika w
+interaktywnej sesji MATE.
+
 %prep
 %setup -q
 %patch1 -p1
 %patch4 -p1
 
 %build
+%{__intltoolize}
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
+	--enable-applets \
+	--disable-scrollkeeper \
 	--disable-silent-rules \
 	--disable-static \
-	--disable-scrollkeeper \
-	%{!?with_systemd:--without-systemdinhibit} \
-	--enable-applets
+	%{?with_gtk3:--with-gtk=3.0} \
+	%{!?with_systemd:--without-systemdinhibit}
 
 %{__make}
 
@@ -83,11 +111,11 @@ rm -rf $RPM_BUILD_ROOT
 %find_lang %{name} --with-mate --with-omf
 
 desktop-file-install \
-     --delete-original \
-     --remove-category=MATE \
-     --add-category=X-Mate \
-     --dir=$RPM_BUILD_ROOT%{_desktopdir} \
-$RPM_BUILD_ROOT%{_desktopdir}/*.desktop
+	--delete-original \
+	--remove-category=MATE \
+	--add-category=X-Mate \
+	--dir=$RPM_BUILD_ROOT%{_desktopdir} \
+	$RPM_BUILD_ROOT%{_desktopdir}/*.desktop
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -102,22 +130,19 @@ rm -rf $RPM_BUILD_ROOT
 
 %files  -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS README
+%doc AUTHORS ChangeLog NEWS README
 /etc/xdg/autostart/mate-power-manager.desktop
 %attr(755,root,root) %{_bindir}/mate-power-bugreport.sh
 %attr(755,root,root) %{_bindir}/mate-power-manager
 %attr(755,root,root) %{_bindir}/mate-power-preferences
 %attr(755,root,root) %{_bindir}/mate-power-statistics
 %attr(755,root,root) %{_sbindir}/mate-power-backlight-helper
-%attr(755,root,root) %{_libdir}/mate-panel/mate-brightness-applet
-%attr(755,root,root) %{_libdir}/mate-panel/mate-inhibit-applet
+%attr(755,root,root) %{_libexecdir}/mate-brightness-applet
+%attr(755,root,root) %{_libexecdir}/mate-inhibit-applet
 %{_mandir}/man1/mate-power-manager.1*
 %{_mandir}/man1/mate-power-preferences.1*
 %{_mandir}/man1/mate-power-statistics.1*
 %{_datadir}/%{name}
-%{_desktopdir}/mate-power-preferences.desktop
-%{_desktopdir}/mate-power-statistics.desktop
-%{_iconsdir}/hicolor/*/apps/mate-*.*
 %{_datadir}/mate-panel/applets/org.mate.BrightnessApplet.mate-panel-applet
 %{_datadir}/mate-panel/applets/org.mate.InhibitApplet.mate-panel-applet
 %{_datadir}/mate-panel/ui/brightness-applet-menu.xml
@@ -127,3 +152,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/dbus-1/services/org.mate.panel.applet.InhibitAppletFactory.service
 %{_datadir}/glib-2.0/schemas/org.mate.power-manager.gschema.xml
 %{_datadir}/polkit-1/actions/org.mate.power.policy
+%{_desktopdir}/mate-power-preferences.desktop
+%{_desktopdir}/mate-power-statistics.desktop
+%{_iconsdir}/hicolor/*/apps/mate-*.*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mate-power-manager.git/commitdiff/60b9762611e21ad9538d007ea46d29260d67c984



More information about the pld-cvs-commit mailing list