]> git.pld-linux.org Git - packages/gnome-power-manager.git/blobdiff - gnome-power-manager.spec
- upower rebuild
[packages/gnome-power-manager.git] / gnome-power-manager.spec
index cfbd8788f46dedd13ae7e5fca0ea6ff7cc9cd1e7..31b47c9299cfba67d6df26c673271bb49c8c9851 100644 (file)
@@ -1,36 +1,43 @@
 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:       2.16.3
-Release:       1
-License:       GPL v2
+Version:       3.12.2
+Release:       2
+License:       GPL v2+
 Group:         X11/Applications
-Source0:       ftp://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/2.16/%{name}-%{version}.tar.bz2
-# Source0-md5: 48166c6aaf41f2225090517ae655d05d
-Patch0:                %{name}-desktop.patch
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/3.12/%{name}-%{version}.tar.xz
+# Source0-md5: eca19ce9369f352eae9fcaa596624250
 URL:           http://www.gnome.org/projects/gnome-power-manager/
-BuildRequires: autoconf >= 2.52
-BuildRequires: automake
-BuildRequires: dbus-glib-devel >= 0.71
+BuildRequires: autoconf >= 2.65
+BuildRequires: automake >= 1:1.11
+BuildRequires: cairo-devel >= 1.0.0
 BuildRequires: docbook-dtd41-sgml
+BuildRequires: docbook-dtd43-xml
 BuildRequires: docbook-utils
-BuildRequires: glib2-devel >= 1:2.12.9
-BuildRequires: gnome-doc-utils
-BuildRequires: hal-devel >= 0.5.7.1
-BuildRequires: libgnomeui-devel >= 2.16.1
-BuildRequires: libnotify-devel >= 0.4.2
+BuildRequires: gettext-devel
+BuildRequires: glib2-devel >= 1:2.36.0
+BuildRequires: gnome-common >= 2.24.0
+BuildRequires: gnome-doc-utils >= 0.14.0
+BuildRequires: gtk+3-devel >= 3.3.8
+BuildRequires: intltool >= 0.50.0
 BuildRequires: libtool
-BuildRequires: libwnck-devel >= 2.16.3
 BuildRequires: pkgconfig
-BuildRequires: rpmbuild(macros) >= 1.311
-BuildRequires: scrollkeeper
+BuildRequires: rpmbuild(find_lang) >= 1.23
+BuildRequires: rpmbuild(macros) >= 1.601
+BuildRequires: tar >= 1:1.22
+BuildRequires: upower-devel >= 0.9.1
+BuildRequires: xz
+Requires(post,postun): glib2 >= 1:2.26.0
+Requires(post,postun): gtk-update-icon-cache
+Requires:      glib2 >= 1:2.36.0
+Requires:      gnome-icon-theme
+Requires:      gnome-session >= 3.0.0
+Requires:      gnome-themes-standard
+Requires:      hicolor-icon-theme
+Requires:      upower >= 0.9.1
 Obsoletes:     gnome-power
-Requires(post,preun):  GConf2
-Requires(post,postun): gtk+2
-Requires(post,postun): hicolor-icon-theme
-Requires(post,postun): scrollkeeper
-Requires:      gnome-session >= 2.16.3
-Requires:      notification-daemon >= 0.3.5
+# sr@Latn vs. sr@latin
+Conflicts:     glibc-misc < 6:2.7
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -40,7 +47,7 @@ Uses of GNOME Power Manager infrastructure
 - An icon that allows a user to dim the LCD screen with a slider, and
   does do automatically when going from mains to battery power on a
   laptop.
-- An icon, that when an additional battery is inserted, updates it's
+- An icon, that when an additional battery is inserted, updates its
   display to show two batteries and recalculates how much time
   remaining. Would work for wireless mouse and keyboards, UPS's and
   PDA's.
@@ -54,82 +61,70 @@ 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
-  "suspend")
-- informowanie Totema, aby u¿ywa³ kodeka o ni¿szej jako¶ci w celu
-  zaoszczêdzenia energii baterii
+- ikona umożliwiająca użytkownikowi przyciemnienie ekranu LCD przy
+  użyciu suwaka i robiąca 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
 - 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 uruchomieniu wygaszacza ekranu i samemu wygaszaniu
+  ekranu podczas działania programów prezentacyjnych i odtwarzaczy
+  filmów
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 %{__libtoolize}
+%{__intltoolize}
 %{__aclocal}
-%{__autoheader}
 %{__automake}
+%{__autoheader}
 %{__autoconf}
 %configure \
-       --disable-schemas-install \
-       --disable-scrollkeeper
+       --disable-silent-rules
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       autostartdir=%{_datadir}/gnome/autostart
+       DESTDIR=$RPM_BUILD_ROOT
 
-%find_lang %{name} --all-name --with-gnome
+%find_lang %{name} --with-gnome --all-name
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%gconf_schema_install gnome-power-manager.schemas
-%scrollkeeper_update_post
+%update_icon_cache HighContrast
 %update_icon_cache hicolor
-
-%preun
-%gconf_schema_uninstall gnome-power-manager.schemas
+%glib_compile_schemas
 
 %postun
-%scrollkeeper_update_postun
+%update_icon_cache HighContrast
 %update_icon_cache hicolor
+%glib_compile_schemas
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README TODO
-%attr(755,root,root) %{_bindir}/gnome-power-inhibit-test
-%attr(755,root,root) %{_bindir}/gnome-power-manager
-%attr(755,root,root) %{_bindir}/gnome-power-preferences
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/gnome-power-manager.conf
-%{_datadir}/gnome/autostart/gnome-power-manager.desktop
-%{_datadir}/dbus-1/services/gnome-power-manager.service
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/gnome-power-statistics
 %{_mandir}/man1/*.1*
-%{_datadir}/gnome-power-manager
-%{_desktopdir}/gnome-power-preferences.desktop
+%{_datadir}/appdata/gnome-power-statistics.appdata.xml
+%{_datadir}/glib-2.0/schemas/org.gnome.power-manager.gschema.xml
+%{_desktopdir}/gnome-power-statistics.desktop
+%{_iconsdir}/HighContrast/*/*/*
 %{_iconsdir}/hicolor/*/*/*
-%dir %{_omf_dest_dir}/gnome-power-manager
-%{_omf_dest_dir}/gnome-power-manager/gnome-power-manager-C.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.061795 seconds and 4 git commands to generate.