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