1 Summary: Photo collection creativity tool
6 Group: Applications/Multimedia
7 Source0: http://fotowall.googlecode.com/files/Fotowall-%{version}.tar.bz2
8 # Source0-md5: 142ef697332e0777c6d22c5bc96cc438
9 URL: http://www.enricoros.com/opensource/fotowall/
10 BuildRequires: appstream-glib
11 BuildRequires: desktop-file-utils
12 BuildRequires: libv4l-devel
13 BuildRequires: qt-devel >= 4.4
14 BuildRequires: rpmbuild(macros) >= 1.596
15 Requires: desktop-file-utils
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 FotoWall is a creative tool that allows you to layout your photos or
20 pictures in a personal way. You can add pictures, then resize, move,
21 change colors, text, shadows, etc..
24 %setup -q -n Fotowall-%{version}
26 # for hidden-file-or-dir warning
27 sed -i -e "s/\.build/build/" %{name}.pro
29 sed -i -e "/scripts/d" -e "s@man\ \\\@man@" %{name}.pro
30 # for v4l1 compatibility
31 sed -i -e 's/linux\/videodev.h/libv4l1-videodev.h/' 3rdparty/videocapture/VideoDevice.h
38 rm -rf $RPM_BUILD_ROOT
40 INSTALL_ROOT=$RPM_BUILD_ROOT
42 desktop-file-install --vendor="" --dir $RPM_BUILD_ROOT%{_desktopdir} \
43 $RPM_BUILD_ROOT/%{_desktopdir}/%{name}.desktop
45 # PLD appstream-util too old(?) for replace-screenshots action
47 # Update the screenshot shown in the software center
49 # NOTE: It would be *awesome* if this file was pushed upstream.
51 # See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
53 appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/fotowall.appdata.xml \
54 https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/fotowall/a.png
58 rm -rf $RPM_BUILD_ROOT
61 %update_desktop_database
64 %update_desktop_database
67 %defattr(644,root,root,755)
68 %doc GPL_V2 README.markdown
69 %attr(755,root,root) %{_bindir}/%{name}
70 %{_desktopdir}/%{name}.desktop
71 %{_pixmapsdir}/%{name}.png
72 %{_mandir}/man1/%{name}.1*