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