don't customize CMAKE_BUILD_TYPE to ensure proper flags
[packages/hugin.git] / hugin.spec
CommitLineData
9d98c2c7 1Summary: Toolchain to create panoramic images
88825902 2Summary(pl.UTF-8): Zestaw narzędzi do tworzenia panoramicznych zdjęć
9d98c2c7 3Name: hugin
5ce8721c 4Version: 2019.2.0
2ac5ded1 5Release: 4
7b7a27a7 6License: GPL v2+
d325390a 7Group: X11/Applications/Graphics
2cc6b667 8Source0: http://downloads.sourceforge.net/hugin/%{name}-%{version}.tar.bz2
5ce8721c
JR
9# Source0-md5: 3409c3a84e1881145b5b556df63de73c
10Patch0: %{name}-cppflags.patch
11Patch1: python-install.patch
9e230f45 12URL: http://hugin.sourceforge.net/
d325390a 13BuildRequires: OpenEXR-devel
8e4543a9 14BuildRequires: OpenGL-glut-devel
2c7caafb
JB
15BuildRequires: ZThread-devel
16BuildRequires: boost-devel >= 1.41.0
2cc6b667 17BuildRequires: cmake >= 2.8
d325390a 18BuildRequires: exiv2-devel
2c7caafb 19BuildRequires: flann-devel
58445212 20BuildRequires: gettext-tools
8e4543a9 21BuildRequires: glew-devel
92e0c919 22BuildRequires: gtk+2-devel >= 1:2.0.3
e2e05e12 23BuildRequires: lensfun-devel
9d98c2c7 24BuildRequires: libjpeg-devel
26aa3b99 25BuildRequires: libpano13-devel >= 2.9.19
9d98c2c7
JB
26BuildRequires: libpng-devel
27BuildRequires: libstdc++-devel
28BuildRequires: libtiff-devel
acd0ae4d 29BuildRequires: perl-Image-ExifTool
1ddb2f99 30BuildRequires: perl-tools-pod
d325390a 31BuildRequires: pkgconfig
5ce8721c 32BuildRequires: python3-devel
a5575e58 33BuildRequires: rpmbuild(macros) >= 1.605
6ecc4767 34BuildRequires: sed >= 4.0
2c7caafb 35BuildRequires: swig-python >= 2.0.4
21893981 36BuildRequires: tclap
bbeabea5 37BuildRequires: vigra-devel
2c7caafb
JB
38BuildRequires: wxGTK2-unicode-devel >= 2.8.10
39BuildRequires: wxGTK2-unicode-gl-devel >= 2.8.10
9d98c2c7 40BuildRequires: zlib-devel
26aa3b99 41Requires: libpano13 >= 2.9.19
2c7caafb
JB
42Requires: wxGTK2-unicode >= 2.8.10
43Requires: wxGTK2-unicode-gl >= 2.8.10
d325390a
JB
44Suggests: enblend-enfuse >= 3.1
45# exiftool program
46Suggests: perl-Image-ExifTool
9d98c2c7
JB
47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49%description
50With hugin you can assemble a mosaic of photographs into a complete
51immensive panorama, stitch any series of overlapping pictures and much
52more.
9e230f45 53
5d8a0b37
JB
54Note: Hugin can use enblend and enfuse for soft blending/fusing, so
55you'll probably to install enblend-enfuse package too.
7dba9267 56
8b7d4390
JR
57%description -l pl.UTF-8
58Przy użyciu hugina można połączyć wiele fotografii w kompletną, dużą
59panoramę, skleić dowolny ciąg nakładających się zdjęć i wiele więcej.
9d98c2c7 60
5d8a0b37
JB
61Hugin może używać programów enblend i enfuse do wygładzania krawędzi
62i ekspozycji, więc warto zainstalować pakiet enblend-enfuse.
7dba9267 63
9d98c2c7 64%prep
d325390a 65%setup -q
5ce8721c
JR
66%patch0 -p0
67%patch1 -p1
9d98c2c7 68
aa328ce5 69mv -f src/translations/{cs_CZ,cs}.po
64a4861a 70
328a62f0
JR
71%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \
72 src/hugin_script_interface/hpi.py \
73 src/hugin_script_interface/plugins-dev/dual_use.py \
74 src/hugin_script_interface/plugins-dev/plugin_skeleton.py \
75 src/hugin_script_interface/plugins/top_five.py \
76 src/hugin_script_interface/plugins/woa.py
2c7caafb 77
9d98c2c7 78%build
aa328ce5
KK
79install -d build
80cd build
d325390a 81%cmake .. \
d325390a
JB
82 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
83 -DCMAKE_VERBOSE_MAKEFILE=ON \
77e97ced 84 -DBUILD_HSI:BOOL=ON \
d325390a
JB
85%if "%{_lib}" == "lib64"
86 -DLIB_SUFFIX=64 \
87%endif
2cc6b667 88 -DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-gtk2-unicode-config
aa328ce5 89
d325390a 90%{__make}
9d98c2c7
JB
91
92%install
93rm -rf $RPM_BUILD_ROOT
94
d325390a
JB
95%{__make} -C build install \
96 DESTDIR=$RPM_BUILD_ROOT
9d98c2c7 97
d325390a 98# cmake is so great there is no way to pass proper path
782a4ebb
JR
99%{__mv} $RPM_BUILD_ROOT%{_iconsdir}/{gnome,hicolor}
100
ab8d6b5c
JR
101%{__rm} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/gnome/*x*/mimetypes/gnome-mime-application-x-ptoptimizer-script.png
102
782a4ebb 103%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ca_ES*
d325390a 104
2c7caafb
JB
105%py_comp $RPM_BUILD_ROOT%{py_sitedir}
106%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
107
d325390a 108%find_lang %{name}
9d98c2c7
JB
109
110%clean
111rm -rf $RPM_BUILD_ROOT
112
113%files -f %{name}.lang
114%defattr(644,root,root,755)
8d0a3a9e 115%doc AUTHORS Changes.txt README TODO src/celeste/LICENCE_{GABOR,LIBSVM}
1ddb2f99 116%attr(755,root,root) %{_bindir}/PTBatcherGUI
d325390a 117%attr(755,root,root) %{_bindir}/align_image_stack
9d98c2c7 118%attr(755,root,root) %{_bindir}/autooptimiser
21893981 119%attr(755,root,root) %{_bindir}/calibrate_lens_gui
015d801d 120%attr(755,root,root) %{_bindir}/celeste_standalone
8705f98f 121%attr(755,root,root) %{_bindir}/checkpto
b311c89b 122%attr(755,root,root) %{_bindir}/cpclean
8705f98f 123%attr(755,root,root) %{_bindir}/cpfind
20e8ff27 124%attr(755,root,root) %{_bindir}/deghosting_mask
c4b49915 125%attr(755,root,root) %{_bindir}/fulla
2c7caafb 126%attr(755,root,root) %{_bindir}/geocpset
9d98c2c7 127%attr(755,root,root) %{_bindir}/hugin
8d0a3a9e 128%attr(755,root,root) %{_bindir}/hugin_executor
d325390a 129%attr(755,root,root) %{_bindir}/hugin_hdrmerge
8d0a3a9e 130%attr(755,root,root) %{_bindir}/hugin_lensdb
77e97ced 131%attr(755,root,root) %{_bindir}/hugin_stacker
d325390a 132%attr(755,root,root) %{_bindir}/hugin_stitch_project
8705f98f 133%attr(755,root,root) %{_bindir}/icpfind
21893981 134%attr(755,root,root) %{_bindir}/linefind
9d98c2c7 135%attr(755,root,root) %{_bindir}/nona
20e8ff27
AA
136%attr(755,root,root) %{_bindir}/pano_modify
137%attr(755,root,root) %{_bindir}/pano_trafo
e2e05e12 138%attr(755,root,root) %{_bindir}/pto_gen
2c7caafb 139%attr(755,root,root) %{_bindir}/pto_lensstack
acd0ae4d 140%attr(755,root,root) %{_bindir}/pto_mask
20e8ff27 141%attr(755,root,root) %{_bindir}/pto_merge
acd0ae4d
AM
142%attr(755,root,root) %{_bindir}/pto_move
143%attr(755,root,root) %{_bindir}/pto_template
2c7caafb 144%attr(755,root,root) %{_bindir}/pto_var
d325390a 145%attr(755,root,root) %{_bindir}/tca_correct
8d0a3a9e 146%attr(755,root,root) %{_bindir}/verdandi
d325390a 147%attr(755,root,root) %{_bindir}/vig_optimize
8705f98f 148%dir %{_libdir}/hugin
1ddb2f99 149%attr(755,root,root) %{_libdir}/hugin/libceleste.so.*.*
8705f98f
AA
150%attr(755,root,root) %{_libdir}/hugin/libhuginbase.so.*.*
151%attr(755,root,root) %{_libdir}/hugin/libhuginbasewx.so.*.*
8705f98f
AA
152%attr(755,root,root) %{_libdir}/hugin/libicpfindlib.so.*.*
153%attr(755,root,root) %{_libdir}/hugin/liblocalfeatures.so.*.*
e2e05e12 154%attr(755,root,root) %{_libdir}/hugin/libhugin_python_interface.so.*.*
5ce8721c
JR
155%attr(755,root,root) %{py3_sitedir}/_hsi.so
156%{py3_sitedir}/hpi.py*
157%{py3_sitedir}/hsi.py*
9d98c2c7 158%{_datadir}/%{name}
a5bb3817
JR
159%{_datadir}/appdata/PTBatcherGUI.appdata.xml
160%{_datadir}/appdata/calibrate_lens_gui.appdata.xml
161%{_datadir}/appdata/hugin.appdata.xml
7b7a27a7
JB
162%{_datadir}/mime/packages/hugin.xml
163%{_desktopdir}/hugin.desktop
e2e05e12 164%{_desktopdir}/pto_gen.desktop
015d801d 165%{_desktopdir}/PTBatcherGUI.desktop
21893981 166%{_desktopdir}/calibrate_lens_gui.desktop
01c80f21
JR
167%{_iconsdir}/hicolor/*x*/apps/hugin.png
168%{_iconsdir}/hicolor/*x*/apps/ptbatcher.png
01c80f21
JR
169%{_iconsdir}/hicolor/scalable/apps/hugin.svg
170%{_iconsdir}/hicolor/scalable/apps/ptbatcher.svg
1ddb2f99
JB
171%{_mandir}/man1/PTBatcherGUI.1*
172%{_mandir}/man1/align_image_stack.1*
173%{_mandir}/man1/autooptimiser.1*
21893981 174%{_mandir}/man1/calibrate_lens_gui.1*
1ddb2f99
JB
175%{_mandir}/man1/celeste_standalone.1*
176%{_mandir}/man1/checkpto.1*
177%{_mandir}/man1/cpclean.1*
178%{_mandir}/man1/cpfind.1*
179%{_mandir}/man1/deghosting_mask.1*
180%{_mandir}/man1/fulla.1*
2c7caafb 181%{_mandir}/man1/geocpset.1*
1ddb2f99 182%{_mandir}/man1/hugin.1*
8d0a3a9e 183%{_mandir}/man1/hugin_executor.1*
1ddb2f99 184%{_mandir}/man1/hugin_hdrmerge.1*
8d0a3a9e 185%{_mandir}/man1/hugin_lensdb.1*
1ddb2f99
JB
186%{_mandir}/man1/hugin_stitch_project.1*
187%{_mandir}/man1/icpfind.1*
21893981 188%{_mandir}/man1/linefind.1*
1ddb2f99 189%{_mandir}/man1/nona.1*
1ddb2f99
JB
190%{_mandir}/man1/pano_modify.1*
191%{_mandir}/man1/pano_trafo.1*
e2e05e12 192%{_mandir}/man1/pto_gen.1*
2c7caafb 193%{_mandir}/man1/pto_lensstack.1*
1ddb2f99 194%{_mandir}/man1/pto_merge.1*
acd0ae4d
AM
195%{_mandir}/man1/pto_mask.1*
196%{_mandir}/man1/pto_move.1*
197%{_mandir}/man1/pto_template.1*
2c7caafb 198%{_mandir}/man1/pto_var.1*
1ddb2f99
JB
199%{_mandir}/man1/tca_correct.1*
200%{_mandir}/man1/vig_optimize.1*
8d0a3a9e 201%{_mandir}/man1/verdandi.1*
This page took 0.373988 seconds and 4 git commands to generate.