]>
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: 0.7.0 | |
5 | Release: 5 | |
6 | License: GPL v2+ | |
7 | Group: X11/Applications/Graphics | |
8 | Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 6efbfc72ceba028ca3dff3c23806a7f3 | |
10 | Patch0: %{name}-pl.po-update.patch | |
11 | Patch1: %{name}-asneeded.patch | |
12 | Patch2: %{name}-cppflags.patch | |
13 | URL: http://hugin.sourceforge.net/ | |
14 | BuildRequires: OpenEXR-devel | |
15 | BuildRequires: boost-devel >= 1.35.0 | |
16 | BuildRequires: cmake >= 2.4 | |
17 | BuildRequires: exiv2-devel | |
18 | BuildRequires: gettext-devel | |
19 | BuildRequires: gtk+2-devel >= 1:2.0.3 | |
20 | BuildRequires: libjpeg-devel | |
21 | BuildRequires: libpano13-devel >= 2.9.12 | |
22 | BuildRequires: libpng-devel | |
23 | BuildRequires: libstdc++-devel | |
24 | BuildRequires: libtiff-devel | |
25 | BuildRequires: pkgconfig | |
26 | BuildRequires: rpmbuild(macros) >= 1.471 | |
27 | BuildRequires: sed >= 4.0 | |
28 | BuildRequires: wxGTK2-unicode-devel >= 2.6.0 | |
29 | BuildRequires: zip | |
30 | BuildRequires: zlib-devel | |
31 | Suggests: autopano-sift-C >= 2.5.0 | |
32 | Suggests: enblend-enfuse >= 3.1 | |
33 | # exiftool program | |
34 | Suggests: perl-Image-ExifTool | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | With hugin you can assemble a mosaic of photographs into a complete | |
39 | immensive panorama, stitch any series of overlapping pictures and much | |
40 | more. | |
41 | ||
42 | Note: Hugin can use autopano-sift-C package to match images and | |
43 | enblend package for soft blending, so you'll probably want to install | |
44 | them too. | |
45 | ||
46 | %description -l pl.UTF-8 | |
47 | Przy użyciu hugina można połączyć wiele fotografii w kompletną, dużą | |
48 | panoramę, skleić dowolny ciąg nakładających się zdjęć i wiele więcej. | |
49 | ||
50 | Hugin może używać pakietu autopano-sift-C do dopasowania zdjęć oraz | |
51 | pakiet enblend do wygładzenia krawędzi po łączeniu - więc warto te | |
52 | pakiety także zainstalować. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
56 | %patch0 -p1 | |
57 | %patch1 -p1 | |
58 | %patch2 -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 | # not needed | |
87 | rm $RPM_BUILD_ROOT%{_libdir}/libhugin*.so | |
88 | ||
89 | %find_lang %{name} | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files -f %{name}.lang | |
98 | %defattr(644,root,root,755) | |
99 | %doc AUTHORS ChangeLog LICENCE_JHEAD LICENCE_VIGRA README TODO | |
100 | %lang(ja) %doc README_JP | |
101 | %attr(755,root,root) %{_bindir}/align_image_stack | |
102 | %attr(755,root,root) %{_bindir}/autooptimiser | |
103 | %attr(755,root,root) %{_bindir}/fulla | |
104 | %attr(755,root,root) %{_bindir}/hugin | |
105 | %attr(755,root,root) %{_bindir}/hugin_hdrmerge | |
106 | %attr(755,root,root) %{_bindir}/hugin_stitch_project | |
107 | %attr(755,root,root) %{_bindir}/matchpoint | |
108 | %attr(755,root,root) %{_bindir}/nona | |
109 | %attr(755,root,root) %{_bindir}/nona_gui | |
110 | %attr(755,root,root) %{_bindir}/pto2mk | |
111 | %attr(755,root,root) %{_bindir}/tca_correct | |
112 | %attr(755,root,root) %{_bindir}/vig_optimize | |
113 | %attr(755,root,root) %{_libdir}/libhuginANN.so.*.* | |
114 | %attr(755,root,root) %{_libdir}/libhuginbase.so.*.* | |
115 | %attr(755,root,root) %{_libdir}/libhuginjhead.so.*.* | |
116 | %attr(755,root,root) %{_libdir}/libhuginvigraimpex.so.*.* | |
117 | %{_datadir}/%{name} | |
118 | %{_datadir}/mime/packages/hugin.xml | |
119 | %{_desktopdir}/hugin.desktop | |
120 | %{_desktopdir}/hugin_stitch_project.desktop | |
121 | %{_iconsdir}/hicolor/*/mimetypes/gnome-mime-application-x-ptoptimizer-script.png | |
122 | %{_pixmapsdir}/hugin.png | |
123 | %{_mandir}/man1/fulla.1* |