99cbd2f
%global po_package %{name}-3.0
99cbd2f
99cbd2f
Name:           gnome-applets
4b74147
Version:        3.46.0
9dca8b2
Release:        %autorelease
5c06a73
Summary:        Small applications for the GNOME Flashback panel
99cbd2f
99cbd2f
License:        GPLv2+
99cbd2f
URL:            https://wiki.gnome.org/Projects/GnomeApplets
4b74147
Source0:        https://download.gnome.org/sources/%{name}/3.46/%{name}-%{version}.tar.xz
69baf08
99cbd2f
BuildRequires:  autoconf
99cbd2f
BuildRequires:  automake
99cbd2f
BuildRequires:  gcc
337ba9e
BuildRequires:  intltool
337ba9e
BuildRequires:  libSM-devel
99cbd2f
BuildRequires:  libtool
99cbd2f
BuildRequires:  libxslt
eb7bd57
BuildRequires:  make
99cbd2f
BuildRequires:  yelp-tools
eb7bd57
99cbd2f
BuildRequires:  pkgconfig(adwaita-icon-theme) >= 3.14.0
99cbd2f
BuildRequires:  pkgconfig(dbus-1) >= 1.1.2
99cbd2f
BuildRequires:  pkgconfig(dbus-glib-1) >= 0.74
99cbd2f
BuildRequires:  pkgconfig(glib-2.0) >= 2.44.0
99cbd2f
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.20.0
99cbd2f
BuildRequires:  pkgconfig(gucharmap-2.90) >= 2.33.0
74437ef
BuildRequires:  pkgconfig(gweather4) >= 3.91
eb7bd57
BuildRequires:  pkgconfig(libgnome-panel) >= 3.41.1
99cbd2f
BuildRequires:  pkgconfig(libgtop-2.0) >= 2.11.92
99cbd2f
BuildRequires:  pkgconfig(libnotify) >= 0.7
4b74147
BuildRequires:  pkgconfig(libwnck-3.0) >= 43.0
99cbd2f
BuildRequires:  pkgconfig(libxml-2.0) >= 2.5.0
99cbd2f
BuildRequires:  pkgconfig(polkit-gobject-1) >= 0.97
69baf08
BuildRequires:  pkgconfig(tracker-sparql-3.0)
99cbd2f
BuildRequires:  pkgconfig(upower-glib) >= 0.9.4
99cbd2f
BuildRequires:  pkgconfig(x11)
096a1b1
%ifnarch s390 s390x sparc64 i686
337ba9e
BuildRequires:  kernel-tools-devel
337ba9e
%endif
337ba9e
eb7bd57
Requires:       gnome-panel >= 3.41.1
99cbd2f
Requires:       hicolor-icon-theme
337ba9e
337ba9e
%description
99cbd2f
Gnome Applets component is part of the GnomeFlashback project. It currently
99cbd2f
provides the following applets:
99cbd2f
99cbd2f
- Accessibility applet (accessx-status)
99cbd2f
- Battery status (battstat)
99cbd2f
- A symbol table (charpick)
99cbd2f
- A system monitor for cpu, memory and network usage information (cpufreq)
99cbd2f
- A drive mount applet (drivemount)
99cbd2f
- Geyes, a funny applet that shows a pair of eyes which follow the cursor
99cbd2f
  (geyes)
99cbd2f
- A weather applet (gweather)
99cbd2f
- A command execution and macro plugin (mini-commander)
99cbd2f
- A sound applet (deprecated and replaced by libsound-applet in GnomeFlashback
99cbd2f
  (mixer)
99cbd2f
- A model lights plugin for modems (modemlights)
99cbd2f
- A multi load plugin (multiload)
99cbd2f
- A notes applets (stickynotes)
99cbd2f
- A trash applet (trashapplet)
99cbd2f
- A window picker applet that shows open applications as icons. This saves a lot
99cbd2f
  of screen space and is very useful if many applications are open.
99cbd2f
  (windowpicker)
99cbd2f
99cbd2f
337ba9e
%prep
99cbd2f
%autosetup -p1
99cbd2f
autoreconf -fiv
337ba9e
337ba9e
337ba9e
%build
99cbd2f
%configure                      \
99cbd2f
    --disable-scrollkeeper      \
99cbd2f
    --disable-static            \
99cbd2f
    --enable-gtk-doc            \
99cbd2f
    --enable-mini-commander     \
99cbd2f
    --enable-suid=no            \
99cbd2f
    --with-cpufreq-lib=cpupower \
eb7bd57
    --without-hal               \
eb7bd57
    %{nil}
99cbd2f
%make_build
337ba9e
337ba9e
337ba9e
%install
99cbd2f
%make_install
99cbd2f
%find_lang %{po_package} --all-name
337ba9e
337ba9e
# Clean up unpackaged files
3ed7d2d
find %{buildroot}%{_libdir}/gnome-panel/ -name '*.la' -delete
337ba9e
337ba9e
# drop non-XKB support files
99cbd2f
rm -rf %{buildroot}%{_datadir}/xmodmap
99cbd2f
337ba9e
99cbd2f
%files -f %{po_package}.lang
99cbd2f
%license COPYING
99cbd2f
%doc README AUTHORS NEWS
99cbd2f
%{_datadir}/%{name}/
99cbd2f
%{_datadir}/glib-2.0/schemas/*.gschema.xml
99cbd2f
%{_datadir}/icons/hicolor/*/*/*.png
99cbd2f
%{_datadir}/icons/hicolor/scalable/apps/*.svg
3ed7d2d
%{_libdir}/gnome-panel/modules/org.gnome.%{name}.so
c295623
%{_datadir}/glib-2.0/schemas/*.enums.xml
58be014
%ifnarch s390 s390x i686
99cbd2f
%{_bindir}/cpufreq-selector
99cbd2f
%{_datadir}/dbus-1/system-services/org.gnome.CPUFreqSelector.service
99cbd2f
%{_datadir}/polkit-1/actions/org.gnome.cpufreqselector.policy
99cbd2f
%config %{_sysconfdir}/dbus-1/system.d/org.gnome.CPUFreqSelector.conf
337ba9e
%endif
337ba9e
9677c77
# Don't make it as separate noarch package since it builds differently on 's390x'
9677c77
# arch and we got build error here
99cbd2f
%{_datadir}/help/
337ba9e
337ba9e
99cbd2f
%changelog
9dca8b2
%autochangelog