]> git.pld-linux.org Git - packages/fotowall.git/blob - fotowall.spec
update BR
[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:  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)
24
25 %description
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..
29
30 %prep
31 %setup -q -n Fotowall-%{version}
32
33 # for hidden-file-or-dir warning
34 sed -i -e "s/\.build/build/" %{name}.pro
35 # Unused file
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
39
40 %build
41 qmake-qt4
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 %{__make} install \
47         INSTALL_ROOT=$RPM_BUILD_ROOT
48
49 desktop-file-install --vendor="" --dir $RPM_BUILD_ROOT%{_desktopdir} \
50   $RPM_BUILD_ROOT/%{_desktopdir}/%{name}.desktop
51
52 # PLD appstream-util too old(?) for replace-screenshots action
53 %if 0
54 # Update the screenshot shown in the software center
55 #
56 # NOTE: It would be *awesome* if this file was pushed upstream.
57 #
58 # See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
59 #
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
62 %endif
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %post
68 %update_desktop_database
69
70 %postun
71 %update_desktop_database
72
73 %files
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*
This page took 0.127679 seconds and 3 git commands to generate.