Hello community, here is the log from the commit of package nitrogen for openSUSE:Factory checked in at 2015-09-08 17:39:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nitrogen (Old) and /work/SRC/openSUSE:Factory/.nitrogen.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nitrogen" Changes: -------- --- /work/SRC/openSUSE:Factory/nitrogen/nitrogen.changes 2012-11-08 08:06:03.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.nitrogen.new/nitrogen.changes 2015-09-08 17:44:47.000000000 +0200 @@ -1,0 +2,8 @@ +Fri Sep 4 09:05:05 UTC 2015 - mplus...@suse.com + +- Use url for source +- Use macro for configure +- Add patch x11_linking.patch to fix linking +- Cleanup spec file with spec-cleaner + +------------------------------------------------------------------- New: ---- x11_linking.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nitrogen.spec ++++++ --- /var/tmp/diff_new_pack.RmrA6u/_old 2015-09-08 17:44:48.000000000 +0200 +++ /var/tmp/diff_new_pack.RmrA6u/_new 2015-09-08 17:44:48.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package nitrogen # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,20 +19,29 @@ Name: nitrogen Version: 1.5.2 Release: 0 -License: GPL-2.0 and CC-BY-SA-3.0 Summary: A background browser and setter for X windows -Url: http://projects.l3ib.org/nitrogen/ +License: GPL-2.0 and CC-BY-SA-3.0 Group: System/X11/Utilities -Source0: %{name}-%{version}.tar.gz +Url: http://projects.l3ib.org/nitrogen/ +Source0: http://projects.l3ib.org/nitrogen/files/%{name}-%{version}.tar.gz Source1: %{name}.desktop +# upstream fix 30b50d1e3d77966cd29e27c12dbe8f12eff2175d +Patch0: x11_linking.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: gtkmm2-devel -BuildRequires: fdupes -BuildRequires: pkgconfig +BuildRequires: hicolor-icon-theme +BuildRequires: libtool +BuildRequires: pkg-config BuildRequires: update-desktop-files BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(xinerama) +Requires: hicolor-icon-theme +Requires(post): update-desktop-files +Requires(postun): update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -52,18 +61,13 @@ its size. * Display preview images in a tiled icon layout - %prep %setup -q +%patch0 -p1 %build - -CFLAGS="%{optflags} -fno-strict-aliasing " \ -CXXFLAGS="$CFLAGS" \ -CPPFLAGS="$CFLAGS" \ -LIBS=-lX11 GTK2_LIBS=$LIBS LDFLAGS=-L%{_lib} \ - ./configure --prefix=%{_prefix} - +autoreconf -fiv +%configure make %{?_smp_mflags} %install @@ -73,8 +77,7 @@ %suse_update_desktop_file %{name} Settings DesktopSettings - -%fdupes %buildroot/ +%fdupes %{buildroot}/ %post %desktop_database_post @@ -87,10 +90,10 @@ %files %defattr(-,root,root,-) %doc COPYING AUTHORS README ChangeLog NEWS -%{_bindir}/%name -%{_datadir}/applications/%name.desktop +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/*/*.png -%{_datadir}/pixmaps/%name.png -%{_mandir}/man1/%name.1.gz +%{_datadir}/pixmaps/%{name}.png +%{_mandir}/man1/%{name}.1.gz %changelog ++++++ x11_linking.patch ++++++ >From 30b50d1e3d77966cd29e27c12dbe8f12eff2175d Mon Sep 17 00:00:00 2001 From: Dave Foster <d...@minuslab.net> Date: Wed, 28 Mar 2012 21:28:33 -0400 Subject: [PATCH] Explicitly check for X11 lib in configure.ac, possibly fixes #12 --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 05fa03b..aa4dc42 100644 --- a/configure.ac +++ b/configure.ac @@ -39,6 +39,9 @@ PKG_CHECK_MODULES(GTHREAD2, [gthread-2.0 >= $GTHREAD2_VERSION]) NITROGEN_LIBS="$GLIB2_LIBS $GTK2_LIBS $GTKMM2_LIBS $GTHREAD2_LIBS" NITROGEN_CFLAGS="$GLIB2_CFLAGS $GTK2_CFLAGS $GTKMM2_CFLAGS $GTHREAD2_CFLAGS" +dnl apparantly we have to check for X11 now +AC_CHECK_LIB(X11, XOpenDisplay, [NITROGEN_LIBS="$NITROGEN_LIBS -lX11"]) + dnl do some autotools picen to get inotify AC_ARG_ENABLE(inotify, [ --disable-inotify disable support for inotify watching of dirs (default: enabled)], [enable_inotify=$enableval],[enable_inotify=yes])