]>
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 |
da665841 JR |
4 | Version: 2018.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 |
da665841 | 9 | # Source0-md5: 91cb2c31409c9ef02fc86e17ec2fa068 |
48fac181 | 10 | Patch0: %{name}-pl.po-update.patch |
20e8ff27 | 11 | Patch1: %{name}-cppflags.patch |
da665841 JR |
12 | Patch2: no-sysctl.patch |
13 | Patch3: python-install.patch | |
14 | Patch4: exiv2-0.27.patch | |
9e230f45 | 15 | URL: http://hugin.sourceforge.net/ |
d325390a | 16 | BuildRequires: OpenEXR-devel |
8e4543a9 | 17 | BuildRequires: OpenGL-glut-devel |
2c7caafb JB |
18 | BuildRequires: ZThread-devel |
19 | BuildRequires: boost-devel >= 1.41.0 | |
2cc6b667 | 20 | BuildRequires: cmake >= 2.8 |
d325390a | 21 | BuildRequires: exiv2-devel |
2c7caafb | 22 | BuildRequires: flann-devel |
58445212 | 23 | BuildRequires: gettext-tools |
8e4543a9 | 24 | BuildRequires: glew-devel |
92e0c919 | 25 | BuildRequires: gtk+2-devel >= 1:2.0.3 |
e2e05e12 | 26 | BuildRequires: lensfun-devel |
9d98c2c7 | 27 | BuildRequires: libjpeg-devel |
26aa3b99 | 28 | BuildRequires: libpano13-devel >= 2.9.19 |
9d98c2c7 JB |
29 | BuildRequires: libpng-devel |
30 | BuildRequires: libstdc++-devel | |
31 | BuildRequires: libtiff-devel | |
acd0ae4d | 32 | BuildRequires: perl-Image-ExifTool |
1ddb2f99 | 33 | BuildRequires: perl-tools-pod |
d325390a | 34 | BuildRequires: pkgconfig |
2c7caafb | 35 | BuildRequires: python-devel |
d325390a | 36 | BuildRequires: rpmbuild(macros) >= 1.471 |
6ecc4767 | 37 | BuildRequires: sed >= 4.0 |
2c7caafb | 38 | BuildRequires: swig-python >= 2.0.4 |
21893981 | 39 | BuildRequires: tclap |
bbeabea5 | 40 | BuildRequires: vigra-devel |
2c7caafb JB |
41 | BuildRequires: wxGTK2-unicode-devel >= 2.8.10 |
42 | BuildRequires: wxGTK2-unicode-gl-devel >= 2.8.10 | |
9d98c2c7 | 43 | BuildRequires: zlib-devel |
26aa3b99 | 44 | Requires: libpano13 >= 2.9.19 |
2c7caafb JB |
45 | Requires: wxGTK2-unicode >= 2.8.10 |
46 | Requires: wxGTK2-unicode-gl >= 2.8.10 | |
d325390a JB |
47 | Suggests: enblend-enfuse >= 3.1 |
48 | # exiftool program | |
49 | Suggests: perl-Image-ExifTool | |
9d98c2c7 JB |
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. | |
9e230f45 | 56 | |
5d8a0b37 JB |
57 | Note: Hugin can use enblend and enfuse for soft blending/fusing, so |
58 | you'll probably to install enblend-enfuse package too. | |
7dba9267 | 59 | |
8b7d4390 JR |
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. | |
9d98c2c7 | 63 | |
5d8a0b37 JB |
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. | |
7dba9267 | 66 | |
9d98c2c7 | 67 | %prep |
d325390a | 68 | %setup -q |
d0805cb0 | 69 | #%patch0 -p1 |
20e8ff27 | 70 | %patch1 -p0 |
da665841 JR |
71 | %patch2 -p1 |
72 | %patch3 -p1 | |
a5bb3817 | 73 | %patch4 -p1 |
9d98c2c7 | 74 | |
aa328ce5 | 75 | mv -f src/translations/{cs_CZ,cs}.po |
64a4861a | 76 | |
2c7caafb JB |
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 | ||
9d98c2c7 | 82 | %build |
aa328ce5 KK |
83 | install -d build |
84 | cd build | |
d325390a JB |
85 | %cmake .. \ |
86 | -DCMAKE_BUILD_TYPE=%{?debug:Debug}%{!?debug:None} \ | |
87 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
88 | -DCMAKE_VERBOSE_MAKEFILE=ON \ | |
89 | %if "%{_lib}" == "lib64" | |
90 | -DLIB_SUFFIX=64 \ | |
91 | %endif | |
2cc6b667 | 92 | -DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-gtk2-unicode-config |
aa328ce5 | 93 | |
d325390a | 94 | %{__make} |
9d98c2c7 JB |
95 | |
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
d325390a JB |
99 | %{__make} -C build install \ |
100 | DESTDIR=$RPM_BUILD_ROOT | |
9d98c2c7 | 101 | |
d325390a | 102 | # cmake is so great there is no way to pass proper path |
782a4ebb JR |
103 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/{gnome,hicolor} |
104 | ||
105 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ca_ES* | |
d325390a | 106 | |
2c7caafb JB |
107 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
108 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
109 | ||
d325390a | 110 | %find_lang %{name} |
9d98c2c7 JB |
111 | |
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %files -f %{name}.lang | |
116 | %defattr(644,root,root,755) | |
8d0a3a9e | 117 | %doc AUTHORS Changes.txt README TODO src/celeste/LICENCE_{GABOR,LIBSVM} |
1ddb2f99 | 118 | %attr(755,root,root) %{_bindir}/PTBatcherGUI |
d325390a | 119 | %attr(755,root,root) %{_bindir}/align_image_stack |
9d98c2c7 | 120 | %attr(755,root,root) %{_bindir}/autooptimiser |
21893981 | 121 | %attr(755,root,root) %{_bindir}/calibrate_lens_gui |
015d801d | 122 | %attr(755,root,root) %{_bindir}/celeste_standalone |
8705f98f | 123 | %attr(755,root,root) %{_bindir}/checkpto |
b311c89b | 124 | %attr(755,root,root) %{_bindir}/cpclean |
8705f98f | 125 | %attr(755,root,root) %{_bindir}/cpfind |
20e8ff27 | 126 | %attr(755,root,root) %{_bindir}/deghosting_mask |
c4b49915 | 127 | %attr(755,root,root) %{_bindir}/fulla |
2c7caafb | 128 | %attr(755,root,root) %{_bindir}/geocpset |
9d98c2c7 | 129 | %attr(755,root,root) %{_bindir}/hugin |
8d0a3a9e | 130 | %attr(755,root,root) %{_bindir}/hugin_executor |
d325390a | 131 | %attr(755,root,root) %{_bindir}/hugin_hdrmerge |
8d0a3a9e | 132 | %attr(755,root,root) %{_bindir}/hugin_lensdb |
d325390a | 133 | %attr(755,root,root) %{_bindir}/hugin_stitch_project |
8705f98f | 134 | %attr(755,root,root) %{_bindir}/icpfind |
21893981 | 135 | %attr(755,root,root) %{_bindir}/linefind |
9d98c2c7 | 136 | %attr(755,root,root) %{_bindir}/nona |
20e8ff27 AA |
137 | %attr(755,root,root) %{_bindir}/pano_modify |
138 | %attr(755,root,root) %{_bindir}/pano_trafo | |
e2e05e12 | 139 | %attr(755,root,root) %{_bindir}/pto_gen |
2c7caafb | 140 | %attr(755,root,root) %{_bindir}/pto_lensstack |
acd0ae4d | 141 | %attr(755,root,root) %{_bindir}/pto_mask |
20e8ff27 | 142 | %attr(755,root,root) %{_bindir}/pto_merge |
acd0ae4d AM |
143 | %attr(755,root,root) %{_bindir}/pto_move |
144 | %attr(755,root,root) %{_bindir}/pto_template | |
2c7caafb | 145 | %attr(755,root,root) %{_bindir}/pto_var |
d325390a | 146 | %attr(755,root,root) %{_bindir}/tca_correct |
8d0a3a9e | 147 | %attr(755,root,root) %{_bindir}/verdandi |
d325390a | 148 | %attr(755,root,root) %{_bindir}/vig_optimize |
8705f98f | 149 | %dir %{_libdir}/hugin |
1ddb2f99 | 150 | %attr(755,root,root) %{_libdir}/hugin/libceleste.so.*.* |
8705f98f AA |
151 | %attr(755,root,root) %{_libdir}/hugin/libhuginbase.so.*.* |
152 | %attr(755,root,root) %{_libdir}/hugin/libhuginbasewx.so.*.* | |
21893981 | 153 | %attr(755,root,root) %{_libdir}/hugin/libhuginlines.so.*.* |
8705f98f AA |
154 | %attr(755,root,root) %{_libdir}/hugin/libicpfindlib.so.*.* |
155 | %attr(755,root,root) %{_libdir}/hugin/liblocalfeatures.so.*.* | |
e2e05e12 | 156 | %attr(755,root,root) %{_libdir}/hugin/libhugin_python_interface.so.*.* |
2c7caafb JB |
157 | %attr(755,root,root) %{py_sitedir}/_hsi.so |
158 | %{py_sitedir}/hpi.py* | |
159 | %{py_sitedir}/hsi.py* | |
9d98c2c7 | 160 | %{_datadir}/%{name} |
a5bb3817 JR |
161 | %{_datadir}/appdata/PTBatcherGUI.appdata.xml |
162 | %{_datadir}/appdata/calibrate_lens_gui.appdata.xml | |
163 | %{_datadir}/appdata/hugin.appdata.xml | |
7b7a27a7 JB |
164 | %{_datadir}/mime/packages/hugin.xml |
165 | %{_desktopdir}/hugin.desktop | |
e2e05e12 | 166 | %{_desktopdir}/pto_gen.desktop |
015d801d | 167 | %{_desktopdir}/PTBatcherGUI.desktop |
21893981 | 168 | %{_desktopdir}/calibrate_lens_gui.desktop |
d325390a | 169 | %{_iconsdir}/hicolor/*/mimetypes/gnome-mime-application-x-ptoptimizer-script.png |
7b7a27a7 | 170 | %{_pixmapsdir}/hugin.png |
8705f98f | 171 | %{_pixmapsdir}/ptbatcher.png |
1ddb2f99 JB |
172 | %{_mandir}/man1/PTBatcherGUI.1* |
173 | %{_mandir}/man1/align_image_stack.1* | |
174 | %{_mandir}/man1/autooptimiser.1* | |
21893981 | 175 | %{_mandir}/man1/calibrate_lens_gui.1* |
1ddb2f99 JB |
176 | %{_mandir}/man1/celeste_standalone.1* |
177 | %{_mandir}/man1/checkpto.1* | |
178 | %{_mandir}/man1/cpclean.1* | |
179 | %{_mandir}/man1/cpfind.1* | |
180 | %{_mandir}/man1/deghosting_mask.1* | |
181 | %{_mandir}/man1/fulla.1* | |
2c7caafb | 182 | %{_mandir}/man1/geocpset.1* |
1ddb2f99 | 183 | %{_mandir}/man1/hugin.1* |
8d0a3a9e | 184 | %{_mandir}/man1/hugin_executor.1* |
1ddb2f99 | 185 | %{_mandir}/man1/hugin_hdrmerge.1* |
8d0a3a9e | 186 | %{_mandir}/man1/hugin_lensdb.1* |
1ddb2f99 JB |
187 | %{_mandir}/man1/hugin_stitch_project.1* |
188 | %{_mandir}/man1/icpfind.1* | |
21893981 | 189 | %{_mandir}/man1/linefind.1* |
1ddb2f99 | 190 | %{_mandir}/man1/nona.1* |
1ddb2f99 JB |
191 | %{_mandir}/man1/pano_modify.1* |
192 | %{_mandir}/man1/pano_trafo.1* | |
e2e05e12 | 193 | %{_mandir}/man1/pto_gen.1* |
2c7caafb | 194 | %{_mandir}/man1/pto_lensstack.1* |
1ddb2f99 | 195 | %{_mandir}/man1/pto_merge.1* |
acd0ae4d AM |
196 | %{_mandir}/man1/pto_mask.1* |
197 | %{_mandir}/man1/pto_move.1* | |
198 | %{_mandir}/man1/pto_template.1* | |
2c7caafb | 199 | %{_mandir}/man1/pto_var.1* |
1ddb2f99 JB |
200 | %{_mandir}/man1/tca_correct.1* |
201 | %{_mandir}/man1/vig_optimize.1* | |
8d0a3a9e | 202 | %{_mandir}/man1/verdandi.1* |