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