From 91bf793e7a24acd042aa8c5f6beeb73942b5de20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 18 May 2015 00:11:34 +0300 Subject: [PATCH] new, version 0.9 based on fedora package 3fd8c59 --- fotowall.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 fotowall.spec diff --git a/fotowall.spec b/fotowall.spec new file mode 100644 index 0000000..910220a --- /dev/null +++ b/fotowall.spec @@ -0,0 +1,72 @@ +Summary: Photo collection creativity tool +Name: fotowall +Version: 0.9 +Release: 1 +License: GPL v2+ +Group: Applications/Multimedia +Source0: http://fotowall.googlecode.com/files/Fotowall-%{version}.tar.bz2 +# Source0-md5: 142ef697332e0777c6d22c5bc96cc438 +URL: http://www.enricoros.com/opensource/fotowall/ +BuildRequires: appstream-glib +BuildRequires: desktop-file-utils +BuildRequires: libv4l-devel +BuildRequires: qt-devel >= 4.4 +BuildRequires: rpmbuild(macros) >= 1.596 +Requires: desktop-file-utils +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +FotoWall is a creative tool that allows you to layout your photos or +pictures in a personal way. You can add pictures, then resize, move, +change colors, text, shadows, etc.. + +%prep +%setup -q -n Fotowall-%{version} + +# for hidden-file-or-dir warning +sed -i -e "s/\.build/build/" %{name}.pro +# Unused file +sed -i -e "/scripts/d" -e "s@man\ \\\@man@" %{name}.pro +# for v4l1 compatibility +sed -i -e 's/linux\/videodev.h/libv4l1-videodev.h/' 3rdparty/videocapture/VideoDevice.h + +%build +qmake-qt4 +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + INSTALL_ROOT=$RPM_BUILD_ROOT + +desktop-file-install --vendor="" --dir $RPM_BUILD_ROOT%{_desktopdir} \ + $RPM_BUILD_ROOT/%{_desktopdir}/%{name}.desktop + +# PLD appstream-util too old(?) for replace-screenshots action +%if 0 +# Update the screenshot shown in the software center +# +# NOTE: It would be *awesome* if this file was pushed upstream. +# +# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details. +# +appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/fotowall.appdata.xml \ + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/fotowall/a.png +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%update_desktop_database + +%postun +%update_desktop_database + +%files +%defattr(644,root,root,755) +%doc GPL_V2 README.markdown +%attr(755,root,root) %{_bindir}/%{name} +%{_desktopdir}/%{name}.desktop +%{_pixmapsdir}/%{name}.png +%{_mandir}/man1/%{name}.1* -- 2.43.0