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