]>
Commit | Line | Data |
---|---|---|
38b8113b SS |
1 | # |
2 | # Conditional build: | |
fe08b3cf JB |
3 | %bcond_with pano13 # use libpano13 instead of libpano12 |
4 | # | |
e8b79d2d | 5 | %define _beta beta4 |
9d98c2c7 | 6 | Summary: Toolchain to create panoramic images |
88825902 | 7 | Summary(pl.UTF-8): Zestaw narzędzi do tworzenia panoramicznych zdjęć |
9d98c2c7 | 8 | Name: hugin |
aa328ce5 KK |
9 | Version: 0.7.0 |
10 | Release: 0.rc5.0.1 | |
7b7a27a7 | 11 | License: GPL v2+ |
9d98c2c7 | 12 | Group: Applications/Graphics |
aa328ce5 KK |
13 | Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}_rc5.tar.gz |
14 | # Source0-md5: cd99ce8985aec47b93e300c2be695680 | |
48fac181 | 15 | Patch0: %{name}-pl.po-update.patch |
aa328ce5 KK |
16 | Patch1: %{name}-asneeded.patch |
17 | Patch2: %{name}-cppflags.patch | |
9e230f45 | 18 | URL: http://hugin.sourceforge.net/ |
48fac181 JB |
19 | BuildRequires: autoconf >= 2.50 |
20 | BuildRequires: automake | |
de37cbfb | 21 | BuildRequires: boost-devel >= 1.35.0 |
9d98c2c7 | 22 | BuildRequires: gettext-devel |
92e0c919 | 23 | BuildRequires: gtk+2-devel >= 1:2.0.3 |
9d98c2c7 | 24 | BuildRequires: libjpeg-devel |
38b8113b SS |
25 | %{!?with_pano13:BuildRequires: libpano12-devel >= 2.8.1} |
26 | %{?with_pano13:BuildRequires: libpano13-devel} | |
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 |
92e0c919 | 32 | BuildRequires: wxGTK2-unicode-devel >= 2.6.0 |
c4b49915 | 33 | BuildRequires: zip |
9d98c2c7 | 34 | BuildRequires: zlib-devel |
fe08b3cf | 35 | %{!?with_pano13:BuildConflicts: libpano13-devel} |
38b8113b SS |
36 | %{!?with_pano13:Requires: libpano12 >= 2.8.1} |
37 | %{?with_pano13:Requires: libpano13} | |
178f2015 | 38 | Suggests: autopano-sift |
f52dd924 | 39 | Suggests: enblend >= 2.4 |
9d98c2c7 JB |
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. | |
9e230f45 | 46 | |
7dba9267 JB |
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 | ||
8b7d4390 JR |
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. | |
9d98c2c7 | 54 | |
8b7d4390 JR |
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ć. | |
7dba9267 | 58 | |
9d98c2c7 | 59 | %prep |
aa328ce5 KK |
60 | %setup -q |
61 | # %%patch0 -p1 | |
f0ce8e08 | 62 | %patch1 -p1 |
aa328ce5 | 63 | %patch2 |
9d98c2c7 | 64 | |
aa328ce5 KK |
65 | #sed -i -e 's/ca_ES/ca/;s/cs_CZ/cs/;' src/hugin/po/LINGUAS |
66 | mv -f src/translations/{ca_ES,ca}.po | |
67 | mv -f src/translations/{cs_CZ,cs}.po | |
c4b49915 | 68 | # missing in LINGUAS |
aa328ce5 | 69 | # echo 'cs'>> src/nona_gui/po/LINGUAS |
64a4861a | 70 | |
9d98c2c7 | 71 | %build |
aa328ce5 KK |
72 | install -d build |
73 | cd build | |
74 | ||
75 | export CPPFLAGS="%{rpmcppflags}" | |
76 | %cmake \ | |
77 | -DCMAKE_BUILD_TYPE:STRING="None" \ | |
78 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ | |
79 | -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-ansi-config \ | |
80 | .. | |
81 | %{__make} VERBOSE=1 | |
9d98c2c7 JB |
82 | |
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %{__make} install \ | |
1f9ab152 JB |
87 | DESTDIR=$RPM_BUILD_ROOT \ |
88 | gnomemimeicondir=%{_iconsdir}/hicolor/48x48/mimetypes | |
9d98c2c7 JB |
89 | |
90 | # "hugin" and "nona_gui" domains | |
91 | %find_lang %{name} --all-name | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %files -f %{name}.lang | |
97 | %defattr(644,root,root,755) | |
7b7a27a7 | 98 | %doc AUTHORS BUGS ChangeLog LICENCE_JHEAD LICENCE_VIGRA NEWS README TODO |
9d98c2c7 | 99 | %attr(755,root,root) %{_bindir}/autooptimiser |
c4b49915 JB |
100 | %attr(755,root,root) %{_bindir}/color_correct_tiff |
101 | %attr(755,root,root) %{_bindir}/fulla | |
9d98c2c7 JB |
102 | %attr(755,root,root) %{_bindir}/hugin |
103 | %attr(755,root,root) %{_bindir}/nona | |
104 | %attr(755,root,root) %{_bindir}/nona_gui | |
9d98c2c7 JB |
105 | %attr(755,root,root) %{_bindir}/zhang_undistort |
106 | %{_datadir}/%{name} | |
7b7a27a7 JB |
107 | %{_datadir}/mime/packages/hugin.xml |
108 | %{_desktopdir}/hugin.desktop | |
1f9ab152 | 109 | %{_iconsdir}/hicolor/*/mimetypes/*.png |
7b7a27a7 | 110 | %{_pixmapsdir}/hugin.png |
c4b49915 | 111 | %{_mandir}/man1/fulla.1* |