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