]> git.pld-linux.org Git - packages/gnome-power-manager.git/blobdiff - gnome-power-manager.spec
- release 2
[packages/gnome-power-manager.git] / gnome-power-manager.spec
index fd170f832d68f0d20d16911548577d815c066b96..2a0040551e0f545fd7160fded49f425f1d272120 100644 (file)
@@ -1,31 +1,41 @@
 Summary:       GNOME Power Manager
-Summary(pl):   Zarz±dca energii dla GNOME
+Summary(pl.UTF-8):     Zarządca energii dla GNOME
 Name:          gnome-power-manager
-Version:       0.3.0
-Release:       1
+Version:       2.18.1
+Release:       2
 License:       GPL v2
 Group:         X11/Applications
-Source0:       http://dl.sourceforge.net/gnome-power/%{name}-%{version}.tar.gz
-# Source0-md5: 4d1fada9c5d26855a1e4f8250c7c9d90
+Source0:       ftp://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/2.18/%{name}-%{version}.tar.bz2
+# Source0-md5: 8cc94654608f649214aa3a0c9b792fe5
 Patch0:                %{name}-desktop.patch
 URL:           http://www.gnome.org/projects/gnome-power-manager/
 BuildRequires: autoconf >= 2.52
 BuildRequires: automake
-BuildRequires: dbus-devel >= 0.35.2
-BuildRequires: dbus-glib-devel >= 0.35.2
+BuildRequires: dbus-glib-devel >= 0.73
 BuildRequires: docbook-dtd41-sgml
 BuildRequires: docbook-utils
-BuildRequires: glib2-devel
-BuildRequires: hal-devel >= 0.5.4
-BuildRequires: libgnomeui-devel >= 2.10.0
-BuildRequires: libnotify-devel >= 0.2.1
+BuildRequires: gnome-common >= 2.12.0
+BuildRequires: gnome-doc-utils
+BuildRequires: gnome-keyring-devel >= 0.8
+BuildRequires: gnome-panel-devel >= 2.18.0
+BuildRequires: gtk+2-devel >= 1:2.10.10
+BuildRequires: hal-devel >= 0.5.7.1
+BuildRequires: intltool >= 0.35.5
+BuildRequires: libglade2-devel >= 2.6.0
+BuildRequires: libgnomeui-devel >= 2.18.0
+BuildRequires: libnotify-devel >= 0.4.3
 BuildRequires: libtool
-BuildRequires: libwnck-devel >= 2.10.0
+BuildRequires: libwnck-devel >= 2.18.0
 BuildRequires: pkgconfig
-BuildRequires: rpmbuild(macros) >= 1.197
-Obsoletes:             gnome-power
+BuildRequires: rpmbuild(macros) >= 1.311
+BuildRequires: scrollkeeper
 Requires(post,preun):  GConf2
-Requires:      notification-daemon
+Requires(post,postun): gtk+2
+Requires(post,postun): hicolor-icon-theme
+Requires(post,postun): scrollkeeper
+Requires:      gnome-session >= 2.18.0
+Requires:      notification-daemon >= 0.3.5
+Obsoletes:     gnome-power
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -49,27 +59,27 @@ Uses of GNOME Power Manager infrastructure
 - Presentation programs / movie players don't want the screensaver
   starting or screen blanking.
 
-%description -l pl
-Zastosowania infrastruktury zarz±dcy energii GNOME:
-- okno dialogowe ostrzegaj±ce u¿ytkownika o zasilaniu z UPS-a,
-  automatycznie rozpoczynaj±ce uprzejme zamykanie systemu, kiedy
+%description -l pl.UTF-8
+Zastosowania infrastruktury zarządcy energii GNOME:
+- okno dialogowe ostrzegające użytkownika o zasilaniu z UPS-a,
+  automatycznie rozpoczynające uprzejme zamykanie systemu, kiedy
   zasilanie jest w stanie krytycznym
-- ikona umo¿liwiaj±ca u¿ytkownikowi przyciemnienie ekranu LCD przy
-  u¿yciu suwaka i robi to automatycznie przy prze³±czaniu z g³ównego
-  ¼ród³a zasilania na baterie w laptopie
-- ikona, która po do³o¿eniu dodatkowej baterii uaktualnia wska¼nik,
-  aby pokazywa³ dwie baterie i przelicza ilo¶æ pozosta³ego czasu;
-  powinna dzia³aæ dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
-- demon wykonuj±cy czyste zamkniêcie systemu kiedy bateria jest w
-  stanie krytycznym i wykonuj±cy zamro¿enie systemu (soft-suspend)
-  przy zamykaniu pokrywy laptopa (albo naci¶niêciu przycisku
+- ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy
+  użyciu suwaka i robi to automatycznie przy przełączaniu z głównego
+  źródła zasilania na baterie w laptopie
+- ikona, która po dołożeniu dodatkowej baterii uaktualnia wskaźnik,
+  aby pokazywał dwie baterie i przelicza ilość pozostałego czasu;
+  powinna działać dla bezprzewodowych myszy i klawiatur, UPS-ów i PDA
+- demon wykonujący czyste zamknięcie systemu kiedy bateria jest w
+  stanie krytycznym i wykonujący zamrożenie systemu (soft-suspend)
+  przy zamykaniu pokrywy laptopa (albo naciśnięciu przycisku
   "suspend")
-- informowanie Totema, aby u¿ywa³ kodeka o ni¿szej jako¶ci w celu
-  zaoszczêdzenia energii baterii
+- informowanie Totema, aby używał kodeka o niższej jakości w celu
+  zaoszczędzenia energii baterii
 - wstrzymywanie indeksowania baz danych (np. up2date) i innych
-  ciê¿kich operacji do czasu pod³±czenia g³ównego ¼ród³a zasilania
-- zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
-  dzia³ania programów prezentacyjnych i odtwarzaczy filmów
+  ciężkich operacji do czasu podłączenia głównego źródła zasilania
+- zapobieganie uruchomienia screensaverów i wygaszaniu ekranu podczas
+  działania programów prezentacyjnych i odtwarzaczy filmów
 
 %prep
 %setup -q
@@ -81,33 +91,63 @@ Zastosowania infrastruktury zarz
 %{__autoheader}
 %{__automake}
 %{__autoconf}
-%configure
+%configure \
+       --disable-schemas-install \
+       --disable-scrollkeeper
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+       DESTDIR=$RPM_BUILD_ROOT \
+       autostartdir=%{_datadir}/gnome/autostart
 
-%find_lang %{name} --all-name
+%find_lang %{name} --all-name --with-gnome
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 %gconf_schema_install gnome-power-manager.schemas
+%scrollkeeper_update_post
+%update_icon_cache hicolor
 
 %preun
 %gconf_schema_uninstall gnome-power-manager.schemas
 
+%postun
+%scrollkeeper_update_postun
+%update_icon_cache hicolor
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO
-%attr(755,root,root) %{_bindir}/*
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
-%{_datadir}/dbus-1/services/*.service
-%{_mandir}/man1/*
-%{_datadir}/%{name}
-%{_desktopdir}/*
+%attr(755,root,root) %{_bindir}/gnome-brightness-applet
+%attr(755,root,root) %{_bindir}/gnome-inhibit-applet
+%attr(755,root,root) %{_bindir}/gnome-power-bugreport.sh
+%attr(755,root,root) %{_bindir}/gnome-power-cmd.sh
+%attr(755,root,root) %{_bindir}/gnome-power-manager
+%attr(755,root,root) %{_bindir}/gnome-power-preferences
+%attr(755,root,root) %{_bindir}/gnome-power-statistics
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/gnome-power-manager.conf
+%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
+%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
+%{_datadir}/gnome/autostart/gnome-power-manager.desktop
+%{_datadir}/dbus-1/services/gnome-power-manager.service
+%{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
+%{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
+%{_mandir}/man1/*.1*
+%{_datadir}/gnome-power-manager
+%{_desktopdir}/gnome-power-preferences.desktop
+%{_desktopdir}/gnome-power-statistics.desktop
+%{_iconsdir}/hicolor/*/*/*
+%dir %{_omf_dest_dir}/gnome-power-manager
+%{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-C.omf
+%lang(es) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-es.omf
+%lang(fr) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-fr.omf
+%lang(hu) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-hu.omf
+%lang(pa) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-pa.omf
+%lang(ru) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-ru.omf
+%lang(sv) %{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-sv.omf
 %{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
This page took 0.098668 seconds and 4 git commands to generate.