]>
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: 2010.4.0 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
7 | Group: X11/Applications/Graphics | |
8 | Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: bfd716655461987312b2f2f00c90dcc5 | |
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: boost-devel >= 1.40.0 | |
16 | BuildRequires: cmake >= 2.4 | |
17 | BuildRequires: exiv2-devel | |
18 | BuildRequires: gettext-devel | |
19 | BuildRequires: glew-devel | |
20 | BuildRequires: gtk+2-devel >= 1:2.0.3 | |
21 | BuildRequires: libjpeg-devel | |
22 | BuildRequires: libpano13-devel >= 2.9.17 | |
23 | BuildRequires: libpng-devel | |
24 | BuildRequires: libstdc++-devel | |
25 | BuildRequires: libtiff-devel | |
26 | BuildRequires: pkgconfig | |
27 | BuildRequires: rpmbuild(macros) >= 1.471 | |
28 | BuildRequires: sed >= 4.0 | |
29 | BuildRequires: wxGTK2-unicode-devel >= 2.7.0 | |
30 | BuildRequires: wxGTK2-unicode-gl-devel >= 2.7.0 | |
31 | BuildRequires: zlib-devel | |
32 | Suggests: autopano-sift-C >= 2.5.0 | |
33 | Suggests: enblend-enfuse >= 3.1 | |
34 | # exiftool program | |
35 | Suggests: perl-Image-ExifTool | |
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. | |
42 | ||
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. | |
46 | ||
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. | |
50 | ||
51 | Hugin może używać pakietu autopano-sift-C do dopasowania zdjęć oraz | |
52 | pakiet enblend do wygładzenia krawędzi po łączeniu - więc warto te | |
53 | pakiety także zainstalować. | |
54 | ||
55 | %prep | |
56 | %setup -q | |
57 | %patch0 -p1 | |
58 | %patch1 -p0 | |
59 | ||
60 | mv -f src/translations/{ca_ES,ca}.po | |
61 | mv -f src/translations/{cs_CZ,cs}.po | |
62 | ||
63 | %build | |
64 | install -d build | |
65 | cd build | |
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 | |
74 | ||
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} -C build install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | # cmake is so great there is no way to pass proper path | |
84 | mv $RPM_BUILD_ROOT%{_iconsdir}/{gnome,hicolor} | |
85 | ||
86 | %find_lang %{name} | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %files -f %{name}.lang | |
95 | %defattr(644,root,root,755) | |
96 | %doc AUTHORS ChangeLog LICENCE_VIGRA README TODO | |
97 | %lang(ja) %doc README_JP | |
98 | %attr(755,root,root) %{_bindir}/align_image_stack | |
99 | %attr(755,root,root) %{_bindir}/autooptimiser | |
100 | %attr(755,root,root) %{_bindir}/autopano-noop.sh | |
101 | %attr(755,root,root) %{_bindir}/calibrate_lens | |
102 | %attr(755,root,root) %{_bindir}/celeste_standalone | |
103 | %attr(755,root,root) %{_bindir}/checkpto | |
104 | %attr(755,root,root) %{_bindir}/cpclean | |
105 | %attr(755,root,root) %{_bindir}/cpfind | |
106 | %attr(755,root,root) %{_bindir}/deghosting_mask | |
107 | %attr(755,root,root) %{_bindir}/fulla | |
108 | %attr(755,root,root) %{_bindir}/hugin | |
109 | %attr(755,root,root) %{_bindir}/hugin_hdrmerge | |
110 | %attr(755,root,root) %{_bindir}/hugin_stitch_project | |
111 | %attr(755,root,root) %{_bindir}/icpfind | |
112 | %attr(755,root,root) %{_bindir}/matchpoint | |
113 | %attr(755,root,root) %{_bindir}/nona | |
114 | %attr(755,root,root) %{_bindir}/nona_gui | |
115 | %attr(755,root,root) %{_bindir}/PTBatcher | |
116 | %attr(755,root,root) %{_bindir}/PTBatcherGUI | |
117 | %attr(755,root,root) %{_bindir}/pano_modify | |
118 | %attr(755,root,root) %{_bindir}/pano_trafo | |
119 | %attr(755,root,root) %{_bindir}/pto_merge | |
120 | %attr(755,root,root) %{_bindir}/pto2mk | |
121 | %attr(755,root,root) %{_bindir}/tca_correct | |
122 | %attr(755,root,root) %{_bindir}/vig_optimize | |
123 | %dir %{_libdir}/hugin | |
124 | %attr(755,root,root) %{_libdir}/hugin/libceleste.so* | |
125 | %attr(755,root,root) %{_libdir}/hugin/libhuginANN.so.*.* | |
126 | %attr(755,root,root) %{_libdir}/hugin/libhuginbase.so.*.* | |
127 | %attr(755,root,root) %{_libdir}/hugin/libhuginbasewx.so.*.* | |
128 | %attr(755,root,root) %{_libdir}/hugin/libhuginvigraimpex.so.*.* | |
129 | %attr(755,root,root) %{_libdir}/hugin/libicpfindlib.so.*.* | |
130 | %attr(755,root,root) %{_libdir}/hugin/liblocalfeatures.so.*.* | |
131 | %attr(755,root,root) %{_libdir}/hugin/libmakefilelib.so.*.* | |
132 | %{_datadir}/%{name} | |
133 | %{_datadir}/mime/packages/hugin.xml | |
134 | %{_desktopdir}/hugin.desktop | |
135 | %{_desktopdir}/PTBatcherGUI.desktop | |
136 | %{_iconsdir}/hicolor/*/mimetypes/gnome-mime-application-x-ptoptimizer-script.png | |
137 | %{_pixmapsdir}/hugin.png | |
138 | %{_pixmapsdir}/ptbatcher.png |