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