]> git.pld-linux.org Git - packages/fotowall.git/blob - fotowall.spec
new, version 0.9
[packages/fotowall.git] / fotowall.spec
1 Summary:        Photo collection creativity tool
2 Name:           fotowall
3 Version:        0.9
4 Release:        1
5 License:        GPL v2+
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)
17
18 %description
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..
22
23 %prep
24 %setup -q -n Fotowall-%{version}
25
26 # for hidden-file-or-dir warning
27 sed -i -e "s/\.build/build/" %{name}.pro
28 # Unused file
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
32
33 %build
34 qmake-qt4
35 %{__make}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 %{__make} install \
40         INSTALL_ROOT=$RPM_BUILD_ROOT
41
42 desktop-file-install --vendor="" --dir $RPM_BUILD_ROOT%{_desktopdir} \
43   $RPM_BUILD_ROOT/%{_desktopdir}/%{name}.desktop
44
45 # PLD appstream-util too old(?) for replace-screenshots action
46 %if 0
47 # Update the screenshot shown in the software center
48 #
49 # NOTE: It would be *awesome* if this file was pushed upstream.
50 #
51 # See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
52 #
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
55 %endif
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %post
61 %update_desktop_database
62
63 %postun
64 %update_desktop_database
65
66 %files
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*
This page took 0.064137 seconds and 3 git commands to generate.