%global git_revision eab5c13 %global date 20141027 %bcond_with evolution Name: mail-notification Version: 5.4 Release: %mkrel 30.%{date}.git.%{git_revision} Summary: Status icon that informs you if you have new mail Group: Networking/Mail License: GPLv3+ URL: http://www.nongnu.org/mailnotify/ #Source0: http://savannah.nongnu.org/download/mailnotify/mail-notification-%{version}.tar.bz2 # Upstream isn't alive any more, use a github forked copy which contains all patches which # have been collected over the past years: https://github.com/epienbroek/mail-notification # # To regenerate source tarball: # wget https://github.com/epienbroek/mail-notification/tarball/$git_revision -O mail-notification-$git_revision.tar.gz Source0: mail-notification-%{git_revision}.tar.gz # jb build system is turning on -Werror to build itself. This patch fixes a # warning with current gcc Patch0: mail-notification-jb-gcc-format.patch # Support aarch64 # https://bugzilla.redhat.com/show_bug.cgi?id=926114 Patch1: mail-notification-aarch64.patch # build break when building with evolution 3.11.2 Patch2: mail-notification-evo3_11_2.patch # Fix FTBFS against latest glibc Patch3: mail-notification-dont-link-against-bsd-compat.patch BuildRequires: gettext BuildRequires: desktop-file-utils, scrollkeeper BuildRequires: openssl-devel >= 0.9.6 BuildRequires: pkgconfig(libsasl2) >= 2.0 BuildRequires: glib2-devel >= 2.14 BuildRequires: gtk3-devel BuildRequires: pkgconfig(gconf-2.0) BuildRequires: pkgconfig(libgnome-2.0) BuildRequires: dbus-glib-devel BuildRequires: libnotify-devel >= 0.4.1 BuildRequires: gmime-devel >= 2.4 BuildRequires: libgnome-keyring-devel BuildRequires: perl-XML-Parser BuildRequires: gob2 >= 2.0.17 %if %{with evolution} BuildRequires: evolution-devel BuildRequires: evolution-data-server-devel >= 1.5 %endif # needed for the gtk-builder-convert tool BuildRequires: gtk2-devel # needed for the GConf RPM macros BuildRequires: GConf2 Requires: hicolor-icon-theme Requires(pre): GConf2 Requires(post): GConf2, scrollkeeper Requires(preun): GConf2 Requires(postun): scrollkeeper %description Mail Notification is a status icon (aka tray icon) that informs you if you have new mail. It works with system trays implementing the freedesktop.org System Tray Specification, such as the GNOME Panel Notification Area, the Xfce Notification Area and the KDE System Tray. %if %{with evolution} %package evolution-plugin Summary: Evolution plugin for Mail Notification Group: Networking/Mail Requires: %{name} = %{version}-%{release} %description evolution-plugin Evolution support for Mail Notification. %endif %prep %setup -q -n epienbroek-%{name}-%{git_revision} %patch0 -p1 %patch1 -p1 %patch2 -p1 -b .evo3_11_2 %patch3 -p0 %build # Temporary build without any optimalisations so we # can get better stacktraces for RHBZ #531088 CFLAGS=$(echo $RPM_OPT_FLAGS | sed s/O2/O0/) ./jb configure \ cc="%{__cc}" \ cflags="$CFLAGS" \ cppflags="-D_GNU_SOURCE" \ destdir=$RPM_BUILD_ROOT \ prefix=%{_prefix} \ bindir=%{_bindir} \ libdir=%{_libdir} \ libexecdir=%{_libexecdir} \ datadir=%{_datadir} \ sysconfdir=%{_sysconfdir} \ localstatedir=%{_localstatedir} \ install-gconf-schemas=no ./jb build # The build command above hides away all gcc commands and their warnings # As they can be interesting show the build log manually cat build/build.log %install # For GConf apps: prevent schemas from being installed at this stage export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 ./jb install # clear /var/lib/scrollkeeper stuff here rm -rf $RPM_BUILD_ROOT%{_localstatedir} find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' %if %{with evolution} chmod +x $RPM_BUILD_ROOT%{_libdir}/evolution/plugins/*.so %endif desktop-file-install \ --dir ${RPM_BUILD_ROOT}%{_datadir}/gnome/autostart/ \ --delete-original \ ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart/mail-notification.desktop desktop-file-install \ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ --delete-original \ --add-category X-GNOME-NetworkSettings \ ${RPM_BUILD_ROOT}%{_datadir}/applications/mail-notification-properties.desktop %find_lang %{name} %post /usr/bin/scrollkeeper-update -q -o %{_datadir}/omf/%{name} || : touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %preun %preun_uninstall_gconf_schemas %{name} %postun /usr/bin/scrollkeeper-update -q ||: touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %files -f %{name}.lang %doc AUTHORS COPYING NEWS README TODO %{_sysconfdir}/gconf/schemas/mail-notification.schemas %{_bindir}/* %{_datadir}/%{name} %{_datadir}/gnome/autostart/*mail-notification.desktop %{_datadir}/applications/*mail-notification-properties.desktop %{_datadir}/gnome/help/mail-notification/ %dir %{_datadir}/omf/mail-notification/ %{_datadir}/omf/mail-notification/mail-notification-C.omf %{_datadir}/icons/hicolor/*/apps/mail-notification.* %if %{with evolution} %files evolution-plugin %{_libdir}/evolution/plugins/* %endif %changelog * Mon Oct 27 2014 joequant <joequant> 5.4-30.20141027.git.eab5c13.mga5 + Revision: 793861 - imported package mail-notification