]> git.pld-linux.org Git - packages/hugin.git/blob - hugin.spec
- added break,imgs patches (for minor bugs); major crash still exists
[packages/hugin.git] / hugin.spec
1 Summary:        Toolchain to create panoramic images
2 Summary(pl):    Zestaw narzêdzi do tworzenia panoramicznych zdjêæ
3 Name:           hugin
4 Version:        0.5
5 %define bver    beta5
6 Release:        0.%{bver}.1
7 # SIFT is patented in USA and may require license for commercial use
8 License:        GPL, non-commercial SIFT license for some code
9 Group:          Applications/Graphics
10 Source0:        http://dl.sourceforge.net/hugin/%{name}-%{version}-%{bver}.tar.bz2
11 # Source0-md5:  a92d4110e95fdd8b65f87131ff04477d
12 Patch0:         %{name}-pl.po-update.patch
13 Patch1:         %{name}-defaults.patch
14 Patch2:         %{name}-break.patch
15 Patch3:         %{name}-imgs.patch
16 URL:            http://hugin.sf.net/
17 BuildRequires:  autoconf >= 2.50
18 BuildRequires:  automake
19 BuildRequires:  boost-any-devel
20 BuildRequires:  boost-ref-devel
21 BuildRequires:  boost-test-devel
22 BuildRequires:  gettext-devel
23 BuildRequires:  gtk+2-devel >= 2.0.3
24 BuildRequires:  libjpeg-devel
25 BuildRequires:  libpano12-devel
26 BuildRequires:  libpng-devel
27 BuildRequires:  libstdc++-devel
28 BuildRequires:  libtiff-devel
29 BuildRequires:  libtool >= 2:1.5
30 BuildRequires:  sed >= 4.0
31 BuildRequires:  wxGTK2-devel >= 2.6.0
32 BuildRequires:  zlib-devel
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 With hugin you can assemble a mosaic of photographs into a complete
37 immensive panorama, stitch any series of overlapping pictures and much
38 more.
39  
40 Note: Hugin can use autopano-sift package to match images and enblend
41 package for soft blending, so you'll probably want to install them
42 too.
43
44 %description -l pl
45 Przy u¿yciu hugina mo¿na po³±czyæ wiele fotografii w kompletn±, du¿±
46 panoramê, skleiæ dowolny ci±g nak³adaj±cych siê zdjêæ i wiele wiêcej.
47
48 Hugin mo¿e u¿ywaæ pakietu autopano-shift do dopasowania zdjêæ oraz
49 pakiet enblend do wyg³adzenia krawêdzi po ³±czeniu - wiêc warto te
50 pakiety tak¿e zainstalowaæ.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55 %patch1 -p1
56 %patch2 -p1
57 %patch3 -p1
58
59 sed -i -e 's,ac_boost_libdir=.*/lib.*,ac_boost_libdir=/usr/%{_lib},' m4/ax_check_boost.m4
60
61 # to rebuild pl.gmo
62 rm -f src/hugin/po/stamp-po
63
64 %build
65 %{__gettextize}
66 %{__libtoolize}
67 %{__aclocal} -I m4
68 %{__autoconf}
69 %{__autoheader}
70 %{__automake}
71 %configure \
72         --with-wx-config=wx-gtk2-ansi-config
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 # "hugin" and "nona_gui" domains
82 %find_lang %{name} --all-name
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %files -f %{name}.lang
88 %defattr(644,root,root,755)
89 %doc AUTHORS BUGS ChangeLog LICENCE_SIFT README TODO
90 %attr(755,root,root) %{_bindir}/autooptimiser
91 %attr(755,root,root) %{_bindir}/hugin
92 %attr(755,root,root) %{_bindir}/nona
93 %attr(755,root,root) %{_bindir}/nona_gui
94 %attr(755,root,root) %{_bindir}/panosifter
95 %attr(755,root,root) %{_bindir}/sift_keypoints
96 %attr(755,root,root) %{_bindir}/zhang_undistort
97 %{_datadir}/%{name}
This page took 0.387634 seconds and 4 git commands to generate.