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