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