Name: viewnior Version: 1.0 Release: 1%{?dist} Summary: The Elegant Image Viewer Group: Applications/Multimedia License: GPLv3+ URL: http://xsisqox.github.com/Viewnior Source0: http://cloud.github.com/downloads/xsisqox/Viewnior/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: GConf2-devel >= 2.22.0 BuildRequires: gtk2-devel >= 2.12 BuildRequires: shared-mime-info >= 0.20 BuildRequires: desktop-file-utils gettext intltool autoconf automake libtool Patch0: %{name}-%{version}-fix-dso-linking.patch %description This is Viewnior, an image viewer program. Created to be simple, fast and elegant. It's minimalist interface provides more screen-space for your images. %prep %setup -q %patch0 -p1 -b .fix-dso-linking chmod -x AUTHORS COPYING README NEWS src/*.c src/*.h autoreconf -if %build %configure --enable-wallpaper make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT desktop-file-validate \ %{buildroot}%{_datadir}/applications/%{name}.desktop %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %{_datadir}/%{name} %changelog * Wed Jun 02 2010 Tareq Al Jurf - 1.0-1 - Initial build