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