]> git.pld-linux.org Git - packages/hugin.git/blob - hugin.spec
- ver 0.7-beta1
[packages/hugin.git] / hugin.spec
1 %define         _beta   beta1
2 Summary:        Toolchain to create panoramic images
3 Summary(pl):    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:  1db122330b5b42792808f9f4f85933d8
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
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*
This page took 0.066042 seconds and 4 git commands to generate.