nitrogen/nitrogen.spec

97 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nitrogen
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: nitrogen
Version: 1.5.2
Release: 0
License: GPL-2.0 or CC-BY-SA-3.0 or Zlib
Summary: A background browser and setter for X windows
Url: http://projects.l3ib.org/nitrogen/
Group: System/X11/Utilities
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.desktop
BuildRequires: gcc-c++
BuildRequires: gtkmm2-devel
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(xinerama)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Nitrogen is a background browser and setter for X windows. It is written
in C++ using the gtkmm toolkit. It can be used in two modes: browser and
recall. Some of the features are:
* Multihead and Xinerama aware.
* Recall mode to used via startup script.
* Uses freedesktop.org standard for thumbnails.
* Can set GNOME background.
* Command line set modes for script use.
* Inotify monitoring of browse directory.
* Lazy loading of thumbnails - conserves memory .
* "Automatic" set mode - determines best mode to set an image based on
its size.
* Display preview images in a tiled icon layout
%prep
%setup -q
%build
CFLAGS="%{optflags} -fno-strict-aliasing " \
CXXFLAGS="$CFLAGS" \
CPPFLAGS="$CFLAGS" \
LIBS=-lX11 GTK2_LIBS=$LIBS LDFLAGS=-L%{_lib} \
./configure --prefix=%{_prefix}
make %{?_smp_mflags}
%install
%make_install
install -D -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}.desktop
install -D -m 644 data/icons/%{name}-48.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file %{name} Settings DesktopSettings
%fdupes %buildroot/
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc COPYING AUTHORS README ChangeLog NEWS
%{_bindir}/%name
%{_datadir}/applications/%name.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/pixmaps/%name.png
%{_mandir}/man1/%name.1.gz
%changelog