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