b34ef0b
%global checkout 20140405git
jamesnz a20693a
Name:           nitrogen
jamesnz a20693a
Version:        1.5.2
9787f76
Release:        11.%{checkout}%{?dist}
jamesnz a20693a
Summary:        Background browser and setter for X windows
jamesnz a20693a
jamesnz a20693a
Group:          User Interface/Desktops
jamesnz a20693a
# Code is GPLv2+ and zlib, icons are CC-BY-SA as described in COPYING
jamesnz a20693a
License:        GPLv2+ and zlib and CC-BY-SA
jamesnz a20693a
URL:            http://projects.l3ib.org/nitrogen/
jamesnz a20693a
Source0:        http://projects.l3ib.org/%{name}/files/%{name}-%{version}.tar.gz
b34ef0b
Patch0:         nitrogen-snapshot.patch
b34ef0b
Patch1:         nitrogen-update-autoconf.patch
jamesnz a20693a
BuildRequires:  gtkmm24-devel
jamesnz a20693a
BuildRequires:  libpng-devel
jamesnz a20693a
BuildRequires:  gettext
jamesnz a20693a
BuildRequires:  pkgconfig
jamesnz a20693a
BuildRequires:  desktop-file-utils
0902819
BuildRequires:  autoconf
0902819
BuildRequires:  automake
0902819
BuildRequires:  m4
0902819
BuildRequires:  libtool
0902819
BuildRequires:  gettext-devel
jamesnz a20693a
Requires:       gtkmm24
jamesnz a20693a
jamesnz a20693a
%description
jamesnz a20693a
A background browser and setter for X windows that can be used in two
jamesnz a20693a
modes: browser and recall. It features Multihead and Xinerama awareness,
jamesnz a20693a
a recall mode to be used in start up scripts, uses the freedesktop.org
jamesnz a20693a
standard for thumbnails, can set the GNOME background, command line set
jamesnz a20693a
modes for use in scripts, inotify monitoring of browse directory, lazy
jamesnz a20693a
loading of thumbnails to conserve memory and an 'automatic' set mode
jamesnz a20693a
which determines the best mode to set an image based on its size.
jamesnz a20693a
jamesnz a20693a
jamesnz a20693a
%prep
jamesnz a20693a
%setup -q
b34ef0b
# patch0 updates the stable release to git snapshot
b34ef0b
# patch1 fixes https://bugzilla.redhat.com/show_bug.cgi?id=926238
9e28144
%patch0 -p1
9787f76
%patch1
jamesnz a20693a
jamesnz a20693a
%build
b34ef0b
autoreconf -f -i
b34ef0b
jamesnz a20693a
%configure --disable-dependency-tracking
jamesnz a20693a
# -lX11 is missing (DSO: https://fedoraproject.org/wiki/UnderstandingDSOLinkChange)
jamesnz a20693a
make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="-lX11"
jamesnz a20693a
jamesnz a20693a
jamesnz a20693a
%install
jamesnz a20693a
make install DESTDIR=%{buildroot}
jamesnz a20693a
jamesnz a20693a
%post
jamesnz a20693a
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
jamesnz a20693a
jamesnz a20693a
%postun
jamesnz a20693a
if [ $1 -eq 0 ] ; then
jamesnz a20693a
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
jamesnz a20693a
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
jamesnz a20693a
fi
jamesnz a20693a
jamesnz a20693a
%posttrans
0902819
/usr/bin/gtk-update-icon-cache -f -t %{_datadir}/icons/hicolor &>/dev/null
jamesnz a20693a
jamesnz a20693a
jamesnz a20693a
%files
jamesnz a20693a
%defattr(-,root,root,-)
jamesnz a20693a
%doc COPYING NEWS README AUTHORS ChangeLog
jamesnz a20693a
%{_bindir}/%{name}
jamesnz a20693a
%{_datadir}/icons/hicolor/16x16/actions/wallpaper-*.png
jamesnz a20693a
%{_datadir}/icons/hicolor/16x16/devices/video-display.png
jamesnz a20693a
%{_datadir}/icons/hicolor/16x16/mimetypes/image-x-generic.png
1a415de
%{_datadir}/applications/%{name}.desktop
jamesnz a20693a
%{_datadir}/icons/hicolor/*/apps/%{name}.png
jamesnz a20693a
%{_mandir}/man1/%{name}.1*
jamesnz a20693a
jamesnz a20693a
jamesnz a20693a
%changelog
9787f76
* Tue Apr 22 2014 James Wrigley <jwrigley7@gmail.com> - 1.5.2-11.20140405git
9787f76
- Fixed compile bug on F19
9787f76
b34ef0b
* Sat Apr 5 2014 James Wrigley <jwrigley7@gmail.com> - 1.5.2-10.20140405git
b34ef0b
- Rolled back by one commit to fix https://github.com/l3ib/nitrogen/issues/46
b34ef0b
4441bde
* Sun Feb 9 2014 James Wrigley <jwrigley7@gmail.com> - 1.5.2-9.20131218git
4441bde
- Fixed issue with the .desktop file not being installed properly
4441bde
0f6638b
* Thu Jan 30 2014 James Wrigley <jwrigley7@gmail.com> - 1.5.2-8.20131218git
0902819
- Updated autoconf version to 2.69, now using a git snapshot from 20131218
0902819
jamesnz a20693a
* Mon Sep 9 2013 James Wrigley <jwrigley7@gmail.com> - 1.5.2-7
jamesnz a20693a
- Un-orphaning package
jamesnz a20693a
jamesnz a20693a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-6
jamesnz a20693a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
jamesnz a20693a
jamesnz a20693a
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-5
jamesnz a20693a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
jamesnz a20693a
jamesnz a20693a
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-4
jamesnz a20693a
- Rebuilt for c++ ABI breakage
jamesnz a20693a
jamesnz a20693a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-3
jamesnz a20693a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
jamesnz a20693a
jamesnz a20693a
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.5.2-2
jamesnz a20693a
- Rebuild for new libpng
jamesnz a20693a
jamesnz a20693a
* Fri Jul 01 2011 Sandro Mathys <red at fedoraproject.org> - 1.5.2-1
jamesnz a20693a
- New upstream version 1.5.2
jamesnz a20693a
jamesnz a20693a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-4
jamesnz a20693a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
jamesnz a20693a
jamesnz a20693a
* Thu May 27 2010 Sandro Mathys <red at fedoraproject.org> - 1.5.1-3
jamesnz a20693a
- fixed missing libX11 BuildRequire
jamesnz a20693a
jamesnz a20693a
* Sat May 01 2010 Sandro Mathys <red at fedoraproject.org> - 1.5.1-2
jamesnz a20693a
- corrected license and improved the spec file a little
jamesnz a20693a
jamesnz a20693a
* Fri Feb 05 2010 Sandro Mathys <red at fedoraproject.org> - 1.5.1-1
jamesnz a20693a
- new version with fixed licensing and some bugfixes
jamesnz a20693a
- added desktop file and updating of the icon caches
jamesnz a20693a
jamesnz a20693a
* Thu Oct 22 2009 Sandro Mathys <red at fedoraproject.org> - 1.4-1
jamesnz a20693a
- initial build
jamesnz a20693a