]>
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 |
20e8ff27 | 4 | Version: 2010.2.0 |
52126dd2 | 5 | Release: 1 |
7b7a27a7 | 6 | License: GPL v2+ |
d325390a JB |
7 | Group: X11/Applications/Graphics |
8 | Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}.tar.gz | |
20e8ff27 | 9 | # Source0-md5: be94c0454924ff5b7dbea4736395f7b1 |
48fac181 | 10 | Patch0: %{name}-pl.po-update.patch |
20e8ff27 | 11 | Patch1: %{name}-cppflags.patch |
9e230f45 | 12 | URL: http://hugin.sourceforge.net/ |
d325390a | 13 | BuildRequires: OpenEXR-devel |
8e4543a9 | 14 | BuildRequires: OpenGL-glut-devel |
015d801d | 15 | BuildRequires: boost-devel >= 1.40.0 |
d325390a JB |
16 | BuildRequires: cmake >= 2.4 |
17 | BuildRequires: exiv2-devel | |
9d98c2c7 | 18 | BuildRequires: gettext-devel |
8e4543a9 | 19 | BuildRequires: glew-devel |
92e0c919 | 20 | BuildRequires: gtk+2-devel >= 1:2.0.3 |
9d98c2c7 | 21 | BuildRequires: libjpeg-devel |
20e8ff27 | 22 | BuildRequires: libpano13-devel >= 2.9.17 |
9d98c2c7 JB |
23 | BuildRequires: libpng-devel |
24 | BuildRequires: libstdc++-devel | |
25 | BuildRequires: libtiff-devel | |
d325390a JB |
26 | BuildRequires: pkgconfig |
27 | BuildRequires: rpmbuild(macros) >= 1.471 | |
6ecc4767 | 28 | BuildRequires: sed >= 4.0 |
20e8ff27 AA |
29 | BuildRequires: wxGTK2-unicode-devel >= 2.7.0 |
30 | BuildRequires: wxGTK2-unicode-gl-devel >= 2.7.0 | |
9d98c2c7 | 31 | BuildRequires: zlib-devel |
d325390a JB |
32 | Suggests: autopano-sift-C >= 2.5.0 |
33 | Suggests: enblend-enfuse >= 3.1 | |
34 | # exiftool program | |
35 | Suggests: perl-Image-ExifTool | |
9d98c2c7 JB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | With hugin you can assemble a mosaic of photographs into a complete | |
40 | immensive panorama, stitch any series of overlapping pictures and much | |
41 | more. | |
9e230f45 | 42 | |
d325390a JB |
43 | Note: Hugin can use autopano-sift-C package to match images and |
44 | enblend package for soft blending, so you'll probably want to install | |
45 | them too. | |
7dba9267 | 46 | |
8b7d4390 JR |
47 | %description -l pl.UTF-8 |
48 | Przy użyciu hugina można połączyć wiele fotografii w kompletną, dużą | |
49 | panoramę, skleić dowolny ciąg nakładających się zdjęć i wiele więcej. | |
9d98c2c7 | 50 | |
d325390a | 51 | Hugin może używać pakietu autopano-sift-C do dopasowania zdjęć oraz |
8b7d4390 JR |
52 | pakiet enblend do wygładzenia krawędzi po łączeniu - więc warto te |
53 | pakiety także zainstalować. | |
7dba9267 | 54 | |
9d98c2c7 | 55 | %prep |
d325390a | 56 | %setup -q |
20e8ff27 AA |
57 | %patch0 -p1 |
58 | %patch1 -p0 | |
9d98c2c7 | 59 | |
aa328ce5 KK |
60 | mv -f src/translations/{ca_ES,ca}.po |
61 | mv -f src/translations/{cs_CZ,cs}.po | |
64a4861a | 62 | |
9d98c2c7 | 63 | %build |
aa328ce5 KK |
64 | install -d build |
65 | cd build | |
d325390a JB |
66 | %cmake .. \ |
67 | -DCMAKE_BUILD_TYPE=%{?debug:Debug}%{!?debug:None} \ | |
68 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
69 | -DCMAKE_VERBOSE_MAKEFILE=ON \ | |
70 | %if "%{_lib}" == "lib64" | |
71 | -DLIB_SUFFIX=64 \ | |
72 | %endif | |
73 | -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config | |
aa328ce5 | 74 | |
d325390a | 75 | %{__make} |
9d98c2c7 JB |
76 | |
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
d325390a JB |
80 | %{__make} -C build install \ |
81 | DESTDIR=$RPM_BUILD_ROOT | |
9d98c2c7 | 82 | |
d325390a JB |
83 | # cmake is so great there is no way to pass proper path |
84 | mv $RPM_BUILD_ROOT%{_iconsdir}/{gnome,hicolor} | |
85 | ||
86 | # not needed | |
87 | rm $RPM_BUILD_ROOT%{_libdir}/libhugin*.so | |
88 | ||
89 | %find_lang %{name} | |
9d98c2c7 JB |
90 | |
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
d325390a JB |
94 | %post -p /sbin/ldconfig |
95 | %postun -p /sbin/ldconfig | |
96 | ||
9d98c2c7 JB |
97 | %files -f %{name}.lang |
98 | %defattr(644,root,root,755) | |
015d801d | 99 | %doc AUTHORS ChangeLog LICENCE_VIGRA README TODO |
d325390a JB |
100 | %lang(ja) %doc README_JP |
101 | %attr(755,root,root) %{_bindir}/align_image_stack | |
9d98c2c7 | 102 | %attr(755,root,root) %{_bindir}/autooptimiser |
015d801d | 103 | %attr(755,root,root) %{_bindir}/autopano-noop.sh |
b311c89b | 104 | %attr(755,root,root) %{_bindir}/calibrate_lens |
015d801d | 105 | %attr(755,root,root) %{_bindir}/celeste_standalone |
b311c89b | 106 | %attr(755,root,root) %{_bindir}/cpclean |
20e8ff27 | 107 | %attr(755,root,root) %{_bindir}/deghosting_mask |
c4b49915 | 108 | %attr(755,root,root) %{_bindir}/fulla |
9d98c2c7 | 109 | %attr(755,root,root) %{_bindir}/hugin |
d325390a JB |
110 | %attr(755,root,root) %{_bindir}/hugin_hdrmerge |
111 | %attr(755,root,root) %{_bindir}/hugin_stitch_project | |
112 | %attr(755,root,root) %{_bindir}/matchpoint | |
9d98c2c7 JB |
113 | %attr(755,root,root) %{_bindir}/nona |
114 | %attr(755,root,root) %{_bindir}/nona_gui | |
015d801d | 115 | %attr(755,root,root) %{_bindir}/PTBatcher |
116 | %attr(755,root,root) %{_bindir}/PTBatcherGUI | |
20e8ff27 AA |
117 | %attr(755,root,root) %{_bindir}/pano_modify |
118 | %attr(755,root,root) %{_bindir}/pano_trafo | |
119 | %attr(755,root,root) %{_bindir}/pto_merge | |
d325390a JB |
120 | %attr(755,root,root) %{_bindir}/pto2mk |
121 | %attr(755,root,root) %{_bindir}/tca_correct | |
122 | %attr(755,root,root) %{_bindir}/vig_optimize | |
015d801d | 123 | %attr(755,root,root) %{_libdir}/libceleste.so* |
d325390a JB |
124 | %attr(755,root,root) %{_libdir}/libhuginANN.so.*.* |
125 | %attr(755,root,root) %{_libdir}/libhuginbase.so.*.* | |
20e8ff27 | 126 | %attr(755,root,root) %{_libdir}/libhuginbasewx.so.*.* |
d325390a | 127 | %attr(755,root,root) %{_libdir}/libhuginvigraimpex.so.*.* |
9d98c2c7 | 128 | %{_datadir}/%{name} |
7b7a27a7 JB |
129 | %{_datadir}/mime/packages/hugin.xml |
130 | %{_desktopdir}/hugin.desktop | |
015d801d | 131 | %{_desktopdir}/PTBatcherGUI.desktop |
d325390a | 132 | %{_iconsdir}/hicolor/*/mimetypes/gnome-mime-application-x-ptoptimizer-script.png |
7b7a27a7 | 133 | %{_pixmapsdir}/hugin.png |
015d801d | 134 | %{_mandir}/man1/* |