]> git.pld-linux.org Git - packages/photoqt.git/blob - photoqt.spec
6d73501ed4ab355ac0d3c7a5908ab7c0a816db33
[packages/photoqt.git] / photoqt.spec
1 # TODO
2 # - with GM?
3
4 Summary:        Simple but powerful Qt-based image viewer
5 Name:           photoqt
6 Version:        1.2
7 Release:        1
8 License:        GPL v2
9 Group:          Applications
10 Source0:        http://photoqt.org/pkgs/%{name}-%{version}.tar.gz
11 # Source0-md5:  bc0233279c86db39dc2482583697c9b3
12 URL:            http://photoqt.org/
13 BuildRequires:  GraphicsMagick-devel
14 BuildRequires:  Qt5Core-devel
15 BuildRequires:  Qt5Gui-devel
16 BuildRequires:  Qt5Multimedia-devel
17 BuildRequires:  Qt5Svg-devel
18 BuildRequires:  qt5-linguist
19 BuildRequires:  rpmbuild(macros) >= 1.596
20 Requires:       desktop-file-utils
21 Requires:       gtk-update-icon-cache
22 Requires:       hicolor-icon-theme
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Simple but powerful Qt-based image viewer.
27
28 %prep
29 %setup -q
30
31 %build
32 install -d build
33 cd build
34 %cmake \
35         -DGM=NO \
36         -DEXIV2=YES \
37         ..
38 %{__make}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 %{__make} -C build install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post
49 %update_desktop_database
50 %update_icon_cache hicolor
51
52 %postun
53 %update_desktop_database
54 %update_icon_cache hicolor
55
56 %files
57 %defattr(644,root,root,755)
58 %doc README CHANGELOG
59 %attr(755,root,root) %{_bindir}/photoqt
60 %{_desktopdir}/photoqt.desktop
61 %{_iconsdir}/hicolor/*/apps/photoqt.png
This page took 0.0882500000000001 seconds and 2 git commands to generate.