]>
Commit | Line | Data |
---|---|---|
e8b79d2d | 1 | %define _beta beta4 |
9d98c2c7 | 2 | Summary: Toolchain to create panoramic images |
88825902 | 3 | Summary(pl.UTF-8): Zestaw narzędzi do tworzenia panoramicznych zdjęć |
9d98c2c7 | 4 | Name: hugin |
87e5315f SS |
5 | Version: 0.7 |
6 | Release: 0.%{_beta}.1 | |
7b7a27a7 | 7 | License: GPL v2+ |
9d98c2c7 | 8 | Group: Applications/Graphics |
e8b79d2d SS |
9 | Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}_%{_beta}.tar.bz2 |
10 | # Source0-md5: 28b69d85ae06a22fe9514f7f77e6dddb | |
48fac181 JB |
11 | Patch0: %{name}-pl.po-update.patch |
12 | Patch1: %{name}-defaults.patch | |
c4b49915 | 13 | Patch2: %{name}-asneeded.patch |
9e230f45 | 14 | URL: http://hugin.sourceforge.net/ |
48fac181 JB |
15 | BuildRequires: autoconf >= 2.50 |
16 | BuildRequires: automake | |
c4b49915 JB |
17 | BuildRequires: boost-any-devel >= 1.31 |
18 | BuildRequires: boost-ref-devel >= 1.31 | |
19 | BuildRequires: boost-test-devel >= 1.31 | |
f610e027 | 20 | BuildRequires: boost-bind-devel >= 1.31 |
c4b49915 | 21 | BuildRequires: boost-thread-devel >= 1.31 |
23593532 | 22 | BuildRequires: boost-uBLAS-devel >= 1.31 |
9d98c2c7 JB |
23 | BuildRequires: gettext-devel |
24 | BuildRequires: gtk+2-devel >= 2.0.3 | |
25 | BuildRequires: libjpeg-devel | |
c4b49915 | 26 | BuildRequires: libpano12-devel >= 2.8.1 |
9d98c2c7 JB |
27 | BuildRequires: libpng-devel |
28 | BuildRequires: libstdc++-devel | |
29 | BuildRequires: libtiff-devel | |
48fac181 | 30 | BuildRequires: libtool >= 2:1.5 |
6ecc4767 | 31 | BuildRequires: sed >= 4.0 |
aa82f849 | 32 | BuildRequires: wxGTK2-devel >= 2.6.0 |
c4b49915 | 33 | BuildRequires: zip |
9d98c2c7 | 34 | BuildRequires: zlib-devel |
c4b49915 | 35 | Requires: libpano12 >= 2.8.1 |
9d98c2c7 JB |
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. | |
9e230f45 | 42 | |
7dba9267 JB |
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 | ||
8b7d4390 JR |
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. | |
9d98c2c7 | 50 | |
8b7d4390 JR |
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ć. | |
7dba9267 | 54 | |
9d98c2c7 | 55 | %prep |
e8b79d2d | 56 | %setup -q -n %{name}-%{version}_%{_beta} |
9d98c2c7 | 57 | %patch0 -p1 |
f0ce8e08 | 58 | %patch1 -p1 |
8c843a71 | 59 | %patch2 -p1 |
9d98c2c7 | 60 | |
c4b49915 JB |
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 | |
64a4861a | 68 | |
9d98c2c7 | 69 | %build |
48fac181 | 70 | %{__gettextize} |
c4b49915 JB |
71 | cp -f po/Makefile.in.in src/hugin/po |
72 | cp -f po/Makefile.in.in src/nona_gui/po | |
48fac181 JB |
73 | %{__libtoolize} |
74 | %{__aclocal} -I m4 | |
75 | %{__autoconf} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
9d98c2c7 JB |
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 \ | |
1f9ab152 JB |
86 | DESTDIR=$RPM_BUILD_ROOT \ |
87 | gnomemimeicondir=%{_iconsdir}/hicolor/48x48/mimetypes | |
9d98c2c7 JB |
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) | |
7b7a27a7 | 97 | %doc AUTHORS BUGS ChangeLog LICENCE_JHEAD LICENCE_VIGRA NEWS README TODO |
9d98c2c7 | 98 | %attr(755,root,root) %{_bindir}/autooptimiser |
c4b49915 JB |
99 | %attr(755,root,root) %{_bindir}/color_correct_tiff |
100 | %attr(755,root,root) %{_bindir}/fulla | |
9d98c2c7 JB |
101 | %attr(755,root,root) %{_bindir}/hugin |
102 | %attr(755,root,root) %{_bindir}/nona | |
103 | %attr(755,root,root) %{_bindir}/nona_gui | |
9d98c2c7 JB |
104 | %attr(755,root,root) %{_bindir}/zhang_undistort |
105 | %{_datadir}/%{name} | |
7b7a27a7 JB |
106 | %{_datadir}/mime/packages/hugin.xml |
107 | %{_desktopdir}/hugin.desktop | |
1f9ab152 | 108 | %{_iconsdir}/hicolor/*/mimetypes/*.png |
7b7a27a7 | 109 | %{_pixmapsdir}/hugin.png |
c4b49915 | 110 | %{_mandir}/man1/fulla.1* |