]>
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 |
aa328ce5 | 4 | Version: 0.7.0 |
3f5c4a76 | 5 | Release: 5 |
7b7a27a7 | 6 | License: GPL v2+ |
d325390a JB |
7 | Group: X11/Applications/Graphics |
8 | Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 6efbfc72ceba028ca3dff3c23806a7f3 | |
48fac181 | 10 | Patch0: %{name}-pl.po-update.patch |
aa328ce5 KK |
11 | Patch1: %{name}-asneeded.patch |
12 | Patch2: %{name}-cppflags.patch | |
9e230f45 | 13 | URL: http://hugin.sourceforge.net/ |
d325390a | 14 | BuildRequires: OpenEXR-devel |
de37cbfb | 15 | BuildRequires: boost-devel >= 1.35.0 |
d325390a JB |
16 | BuildRequires: cmake >= 2.4 |
17 | BuildRequires: exiv2-devel | |
9d98c2c7 | 18 | BuildRequires: gettext-devel |
92e0c919 | 19 | BuildRequires: gtk+2-devel >= 1:2.0.3 |
9d98c2c7 | 20 | BuildRequires: libjpeg-devel |
d325390a | 21 | BuildRequires: libpano13-devel >= 2.9.12 |
9d98c2c7 JB |
22 | BuildRequires: libpng-devel |
23 | BuildRequires: libstdc++-devel | |
24 | BuildRequires: libtiff-devel | |
d325390a JB |
25 | BuildRequires: pkgconfig |
26 | BuildRequires: rpmbuild(macros) >= 1.471 | |
6ecc4767 | 27 | BuildRequires: sed >= 4.0 |
92e0c919 | 28 | BuildRequires: wxGTK2-unicode-devel >= 2.6.0 |
c4b49915 | 29 | BuildRequires: zip |
9d98c2c7 | 30 | BuildRequires: zlib-devel |
d325390a JB |
31 | Suggests: autopano-sift-C >= 2.5.0 |
32 | Suggests: enblend-enfuse >= 3.1 | |
33 | # exiftool program | |
34 | Suggests: perl-Image-ExifTool | |
9d98c2c7 JB |
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. | |
9e230f45 | 41 | |
d325390a JB |
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. | |
7dba9267 | 45 | |
8b7d4390 JR |
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. | |
9d98c2c7 | 49 | |
d325390a | 50 | Hugin może używać pakietu autopano-sift-C do dopasowania zdjęć oraz |
8b7d4390 JR |
51 | pakiet enblend do wygładzenia krawędzi po łączeniu - więc warto te |
52 | pakiety także zainstalować. | |
7dba9267 | 53 | |
9d98c2c7 | 54 | %prep |
d325390a JB |
55 | %setup -q |
56 | %patch0 -p1 | |
f0ce8e08 | 57 | %patch1 -p1 |
d325390a | 58 | %patch2 -p0 |
9d98c2c7 | 59 | |
aa328ce5 KK |
60 | mv -f src/translations/{ca_ES,ca}.po |
61 | mv -f src/translations/{cs_CZ,cs}.po | |
64a4861a | 62 | |
9d98c2c7 | 63 | %build |
aa328ce5 KK |
64 | install -d build |
65 | cd build | |
d325390a JB |
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 | |
aa328ce5 | 74 | |
d325390a | 75 | %{__make} |
9d98c2c7 JB |
76 | |
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
d325390a JB |
80 | %{__make} -C build install \ |
81 | DESTDIR=$RPM_BUILD_ROOT | |
9d98c2c7 | 82 | |
d325390a JB |
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} | |
9d98c2c7 JB |
90 | |
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
d325390a JB |
94 | %post -p /sbin/ldconfig |
95 | %postun -p /sbin/ldconfig | |
96 | ||
9d98c2c7 JB |
97 | %files -f %{name}.lang |
98 | %defattr(644,root,root,755) | |
d325390a JB |
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 | |
9d98c2c7 | 102 | %attr(755,root,root) %{_bindir}/autooptimiser |
c4b49915 | 103 | %attr(755,root,root) %{_bindir}/fulla |
9d98c2c7 | 104 | %attr(755,root,root) %{_bindir}/hugin |
d325390a JB |
105 | %attr(755,root,root) %{_bindir}/hugin_hdrmerge |
106 | %attr(755,root,root) %{_bindir}/hugin_stitch_project | |
107 | %attr(755,root,root) %{_bindir}/matchpoint | |
9d98c2c7 JB |
108 | %attr(755,root,root) %{_bindir}/nona |
109 | %attr(755,root,root) %{_bindir}/nona_gui | |
d325390a JB |
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.*.* | |
9d98c2c7 | 117 | %{_datadir}/%{name} |
7b7a27a7 JB |
118 | %{_datadir}/mime/packages/hugin.xml |
119 | %{_desktopdir}/hugin.desktop | |
d325390a JB |
120 | %{_desktopdir}/hugin_stitch_project.desktop |
121 | %{_iconsdir}/hicolor/*/mimetypes/gnome-mime-application-x-ptoptimizer-script.png | |
7b7a27a7 | 122 | %{_pixmapsdir}/hugin.png |
c4b49915 | 123 | %{_mandir}/man1/fulla.1* |