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: QtCore-devel
11 BuildRequires: QtGui-devel
12 BuildRequires: QtGui-devel
13 BuildRequires: QtNetwork-devel
14 BuildRequires: QtOpenGL-devel
15 BuildRequires: QtSvg-devel
16 BuildRequires: QtXml-devel
17 BuildRequires: desktop-file-utils
18 BuildRequires: libv4l-devel
19 BuildRequires: qt4-build
20 BuildRequires: qt4-qmake
21 BuildRequires: rpmbuild(macros) >= 1.596
22 Requires: desktop-file-utils
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 FotoWall is a creative tool that allows you to layout your photos or
27 pictures in a personal way. You can add pictures, then resize, move,
28 change colors, text, shadows, etc..
31 %setup -q -n Fotowall-%{version}
33 # for hidden-file-or-dir warning
34 sed -i -e "s/\.build/build/" %{name}.pro
36 sed -i -e "/scripts/d" -e "s@man\ \\\@man@" %{name}.pro
37 # for v4l1 compatibility
38 sed -i -e 's/linux\/videodev.h/libv4l1-videodev.h/' 3rdparty/videocapture/VideoDevice.h
45 rm -rf $RPM_BUILD_ROOT
47 INSTALL_ROOT=$RPM_BUILD_ROOT
49 desktop-file-install --vendor="" --dir $RPM_BUILD_ROOT%{_desktopdir} \
50 $RPM_BUILD_ROOT/%{_desktopdir}/%{name}.desktop
52 # PLD appstream-util too old(?) for replace-screenshots action
54 # Update the screenshot shown in the software center
56 # NOTE: It would be *awesome* if this file was pushed upstream.
58 # See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
60 appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/fotowall.appdata.xml \
61 https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/fotowall/a.png
65 rm -rf $RPM_BUILD_ROOT
68 %update_desktop_database
71 %update_desktop_database
74 %defattr(644,root,root,755)
75 %doc GPL_V2 README.markdown
76 %attr(755,root,root) %{_bindir}/%{name}
77 %{_desktopdir}/%{name}.desktop
78 %{_pixmapsdir}/%{name}.png
79 %{_mandir}/man1/%{name}.1*