]>
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 |
015d801d | 4 | Version: 2009.2.0 |
bddb7757 | 5 | Release: 2 |
7b7a27a7 | 6 | License: GPL v2+ |
d325390a JB |
7 | Group: X11/Applications/Graphics |
8 | Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}.tar.gz | |
015d801d | 9 | # Source0-md5: 856fa8016bc990874a71a19cc162f6be |
48fac181 | 10 | Patch0: %{name}-pl.po-update.patch |
aa328ce5 KK |
11 | Patch1: %{name}-asneeded.patch |
12 | Patch2: %{name}-cppflags.patch | |
015d801d | 13 | Patch3: %{name}-boost-1.40-fix.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 |
c4b49915 | 33 | BuildRequires: zip |
9d98c2c7 | 34 | BuildRequires: zlib-devel |
d325390a JB |
35 | Suggests: autopano-sift-C >= 2.5.0 |
36 | Suggests: enblend-enfuse >= 3.1 | |
37 | # exiftool program | |
38 | Suggests: perl-Image-ExifTool | |
9d98c2c7 JB |
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. | |
9e230f45 | 45 | |
d325390a JB |
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. | |
7dba9267 | 49 | |
8b7d4390 JR |
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. | |
9d98c2c7 | 53 | |
d325390a | 54 | Hugin może używać pakietu autopano-sift-C do dopasowania zdjęć oraz |
8b7d4390 JR |
55 | pakiet enblend do wygładzenia krawędzi po łączeniu - więc warto te |
56 | pakiety także zainstalować. | |
7dba9267 | 57 | |
9d98c2c7 | 58 | %prep |
d325390a | 59 | %setup -q |
015d801d | 60 | #%patch0 -p1 |
f0ce8e08 | 61 | %patch1 -p1 |
d325390a | 62 | %patch2 -p0 |
015d801d | 63 | %patch3 -p1 |
9d98c2c7 | 64 | |
aa328ce5 KK |
65 | mv -f src/translations/{ca_ES,ca}.po |
66 | mv -f src/translations/{cs_CZ,cs}.po | |
64a4861a | 67 | |
9d98c2c7 | 68 | %build |
aa328ce5 KK |
69 | install -d build |
70 | cd build | |
d325390a JB |
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 | |
aa328ce5 | 79 | |
d325390a | 80 | %{__make} |
9d98c2c7 JB |
81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
d325390a JB |
85 | %{__make} -C build install \ |
86 | DESTDIR=$RPM_BUILD_ROOT | |
9d98c2c7 | 87 | |
d325390a JB |
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} | |
9d98c2c7 JB |
95 | |
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
d325390a JB |
99 | %post -p /sbin/ldconfig |
100 | %postun -p /sbin/ldconfig | |
101 | ||
9d98c2c7 JB |
102 | %files -f %{name}.lang |
103 | %defattr(644,root,root,755) | |
015d801d | 104 | %doc AUTHORS ChangeLog LICENCE_VIGRA README TODO |
d325390a JB |
105 | %lang(ja) %doc README_JP |
106 | %attr(755,root,root) %{_bindir}/align_image_stack | |
9d98c2c7 | 107 | %attr(755,root,root) %{_bindir}/autooptimiser |
015d801d | 108 | %attr(755,root,root) %{_bindir}/autopano-noop.sh |
109 | %attr(755,root,root) %{_bindir}/celeste_standalone | |
c4b49915 | 110 | %attr(755,root,root) %{_bindir}/fulla |
9d98c2c7 | 111 | %attr(755,root,root) %{_bindir}/hugin |
d325390a JB |
112 | %attr(755,root,root) %{_bindir}/hugin_hdrmerge |
113 | %attr(755,root,root) %{_bindir}/hugin_stitch_project | |
114 | %attr(755,root,root) %{_bindir}/matchpoint | |
9d98c2c7 JB |
115 | %attr(755,root,root) %{_bindir}/nona |
116 | %attr(755,root,root) %{_bindir}/nona_gui | |
015d801d | 117 | %attr(755,root,root) %{_bindir}/PTBatcher |
118 | %attr(755,root,root) %{_bindir}/PTBatcherGUI | |
d325390a JB |
119 | %attr(755,root,root) %{_bindir}/pto2mk |
120 | %attr(755,root,root) %{_bindir}/tca_correct | |
121 | %attr(755,root,root) %{_bindir}/vig_optimize | |
015d801d | 122 | %attr(755,root,root) %{_libdir}/libceleste.so* |
d325390a JB |
123 | %attr(755,root,root) %{_libdir}/libhuginANN.so.*.* |
124 | %attr(755,root,root) %{_libdir}/libhuginbase.so.*.* | |
d325390a | 125 | %attr(755,root,root) %{_libdir}/libhuginvigraimpex.so.*.* |
9d98c2c7 | 126 | %{_datadir}/%{name} |
7b7a27a7 JB |
127 | %{_datadir}/mime/packages/hugin.xml |
128 | %{_desktopdir}/hugin.desktop | |
015d801d | 129 | %{_desktopdir}/PTBatcherGUI.desktop |
d325390a | 130 | %{_iconsdir}/hicolor/*/mimetypes/gnome-mime-application-x-ptoptimizer-script.png |
7b7a27a7 | 131 | %{_pixmapsdir}/hugin.png |
015d801d | 132 | %{_mandir}/man1/* |