]>
Commit | Line | Data |
---|---|---|
1 | %define _beta beta4 | |
2 | Summary: Toolchain to create panoramic images | |
3 | Summary(pl.UTF-8): Zestaw narzędzi do tworzenia panoramicznych zdjęć | |
4 | Name: hugin | |
5 | Version: 0.7 | |
6 | Release: 0.%{_beta}.1 | |
7 | License: GPL v2+ | |
8 | Group: Applications/Graphics | |
9 | Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}_%{_beta}.tar.bz2 | |
10 | # Source0-md5: 28b69d85ae06a22fe9514f7f77e6dddb | |
11 | Patch0: %{name}-pl.po-update.patch | |
12 | Patch1: %{name}-defaults.patch | |
13 | Patch2: %{name}-asneeded.patch | |
14 | URL: http://hugin.sourceforge.net/ | |
15 | BuildRequires: autoconf >= 2.50 | |
16 | BuildRequires: automake | |
17 | BuildRequires: boost-any-devel >= 1.31 | |
18 | BuildRequires: boost-ref-devel >= 1.31 | |
19 | BuildRequires: boost-test-devel >= 1.31 | |
20 | BuildRequires: boost-bind-devel >= 1.31 | |
21 | BuildRequires: boost-thread-devel >= 1.31 | |
22 | BuildRequires: boost-uBLAS-devel >= 1.31 | |
23 | BuildRequires: gettext-devel | |
24 | BuildRequires: gtk+2-devel >= 2.0.3 | |
25 | BuildRequires: libjpeg-devel | |
26 | BuildRequires: libpano12-devel >= 2.8.1 | |
27 | BuildRequires: libpng-devel | |
28 | BuildRequires: libstdc++-devel | |
29 | BuildRequires: libtiff-devel | |
30 | BuildRequires: libtool >= 2:1.5 | |
31 | BuildRequires: sed >= 4.0 | |
32 | BuildRequires: wxGTK2-devel >= 2.6.0 | |
33 | BuildRequires: zip | |
34 | BuildRequires: zlib-devel | |
35 | Requires: libpano12 >= 2.8.1 | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | With hugin you can assemble a mosaic of photographs into a complete | |
40 | immensive panorama, stitch any series of overlapping pictures and much | |
41 | more. | |
42 | ||
43 | Note: Hugin can use autopano-sift package to match images and enblend | |
44 | package for soft blending, so you'll probably want to install them | |
45 | too. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | Przy użyciu hugina można połączyć wiele fotografii w kompletną, dużą | |
49 | panoramę, skleić dowolny ciąg nakładających się zdjęć i wiele więcej. | |
50 | ||
51 | Hugin może używać pakietu autopano-sift do dopasowania zdjęć oraz | |
52 | pakiet enblend do wygładzenia krawędzi po łączeniu - więc warto te | |
53 | pakiety także zainstalować. | |
54 | ||
55 | %prep | |
56 | %setup -q -n %{name}-%{version}_%{_beta} | |
57 | %patch0 -p1 | |
58 | %patch1 -p1 | |
59 | %patch2 -p1 | |
60 | ||
61 | sed -i -e 's,/lib",/%{_lib}",' m4/ax_boost.m4 | |
62 | sed -i -e 's/ca_ES/ca/;s/cs_CZ/cs/;' src/hugin/po/LINGUAS | |
63 | mv -f src/hugin/po/{ca_ES,ca}.po | |
64 | mv -f src/hugin/po/{cs_CZ,cs}.po | |
65 | # missing in LINGUAS | |
66 | echo 'cs'>> src/nona_gui/po/LINGUAS | |
67 | mv -f src/nona_gui/po/{cs_CZ,cs}.po | |
68 | ||
69 | %build | |
70 | %{__gettextize} | |
71 | cp -f po/Makefile.in.in src/hugin/po | |
72 | cp -f po/Makefile.in.in src/nona_gui/po | |
73 | %{__libtoolize} | |
74 | %{__aclocal} -I m4 | |
75 | %{__autoconf} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
78 | %configure \ | |
79 | --with-wx-config=wx-gtk2-ansi-config | |
80 | %{__make} | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT \ | |
87 | gnomemimeicondir=%{_iconsdir}/hicolor/48x48/mimetypes | |
88 | ||
89 | # "hugin" and "nona_gui" domains | |
90 | %find_lang %{name} --all-name | |
91 | ||
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %files -f %{name}.lang | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS BUGS ChangeLog LICENCE_JHEAD LICENCE_VIGRA NEWS README TODO | |
98 | %attr(755,root,root) %{_bindir}/autooptimiser | |
99 | %attr(755,root,root) %{_bindir}/color_correct_tiff | |
100 | %attr(755,root,root) %{_bindir}/fulla | |
101 | %attr(755,root,root) %{_bindir}/hugin | |
102 | %attr(755,root,root) %{_bindir}/nona | |
103 | %attr(755,root,root) %{_bindir}/nona_gui | |
104 | %attr(755,root,root) %{_bindir}/zhang_undistort | |
105 | %{_datadir}/%{name} | |
106 | %{_datadir}/mime/packages/hugin.xml | |
107 | %{_desktopdir}/hugin.desktop | |
108 | %{_iconsdir}/hicolor/*/mimetypes/*.png | |
109 | %{_pixmapsdir}/hugin.png | |
110 | %{_mandir}/man1/fulla.1* |