]> git.pld-linux.org Git - packages/hugin.git/blame - hugin.spec
- release 7 (by relup.sh)
[packages/hugin.git] / hugin.spec
CommitLineData
9d98c2c7 1Summary: Toolchain to create panoramic images
88825902 2Summary(pl.UTF-8): Zestaw narzędzi do tworzenia panoramicznych zdjęć
9d98c2c7 3Name: hugin
2c7caafb 4Version: 2013.0.0
104aba24 5Release: 7
7b7a27a7 6License: GPL v2+
d325390a 7Group: X11/Applications/Graphics
2cc6b667 8Source0: http://downloads.sourceforge.net/hugin/%{name}-%{version}.tar.bz2
2c7caafb 9# Source0-md5: cc6c768df2aedc24a9a081754de05f39
48fac181 10Patch0: %{name}-pl.po-update.patch
20e8ff27 11Patch1: %{name}-cppflags.patch
9e230f45 12URL: http://hugin.sourceforge.net/
d325390a 13BuildRequires: OpenEXR-devel
8e4543a9 14BuildRequires: OpenGL-glut-devel
2c7caafb
JB
15BuildRequires: ZThread-devel
16BuildRequires: boost-devel >= 1.41.0
2cc6b667 17BuildRequires: cmake >= 2.8
d325390a 18BuildRequires: exiv2-devel
2c7caafb 19BuildRequires: flann-devel
9d98c2c7 20BuildRequires: gettext-devel
8e4543a9 21BuildRequires: glew-devel
92e0c919 22BuildRequires: gtk+2-devel >= 1:2.0.3
e2e05e12 23BuildRequires: lensfun-devel
9d98c2c7 24BuildRequires: libjpeg-devel
2cc6b667 25BuildRequires: libpano13-devel >= 2.9.18
9d98c2c7
JB
26BuildRequires: libpng-devel
27BuildRequires: libstdc++-devel
28BuildRequires: libtiff-devel
1ddb2f99 29BuildRequires: perl-tools-pod
d325390a 30BuildRequires: pkgconfig
2c7caafb 31BuildRequires: python-devel
d325390a 32BuildRequires: rpmbuild(macros) >= 1.471
6ecc4767 33BuildRequires: sed >= 4.0
2c7caafb 34BuildRequires: swig-python >= 2.0.4
21893981 35BuildRequires: tclap
2c7caafb
JB
36BuildRequires: wxGTK2-unicode-devel >= 2.8.10
37BuildRequires: wxGTK2-unicode-gl-devel >= 2.8.10
9d98c2c7 38BuildRequires: zlib-devel
2c7caafb
JB
39Requires: libpano13 >= 2.9.18
40Requires: wxGTK2-unicode >= 2.8.10
41Requires: wxGTK2-unicode-gl >= 2.8.10
d325390a
JB
42Suggests: enblend-enfuse >= 3.1
43# exiftool program
44Suggests: perl-Image-ExifTool
9d98c2c7
JB
45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47%description
48With hugin you can assemble a mosaic of photographs into a complete
49immensive panorama, stitch any series of overlapping pictures and much
50more.
9e230f45 51
5d8a0b37
JB
52Note: Hugin can use enblend and enfuse for soft blending/fusing, so
53you'll probably to install enblend-enfuse package too.
7dba9267 54
8b7d4390
JR
55%description -l pl.UTF-8
56Przy użyciu hugina można połączyć wiele fotografii w kompletną, dużą
57panoramę, skleić dowolny ciąg nakładających się zdjęć i wiele więcej.
9d98c2c7 58
5d8a0b37
JB
59Hugin może używać programów enblend i enfuse do wygładzania krawędzi
60i ekspozycji, więc warto zainstalować pakiet enblend-enfuse.
7dba9267 61
9d98c2c7 62%prep
d325390a 63%setup -q
20e8ff27
AA
64%patch0 -p1
65%patch1 -p0
9d98c2c7 66
aa328ce5
KK
67mv -f src/translations/{ca_ES,ca}.po
68mv -f src/translations/{cs_CZ,cs}.po
64a4861a 69
2c7caafb
JB
70%{__sed} -i -e '1s,#! \?/usr/bin/env python,#!/usr/bin/python,' \
71 src/hugin_script_interface/hpi.py \
72 src/hugin_script_interface/plugins/*.py \
73 src/hugin_script_interface/plugins-dev/*.py
74
9d98c2c7 75%build
aa328ce5
KK
76install -d build
77cd build
d325390a
JB
78%cmake .. \
79 -DCMAKE_BUILD_TYPE=%{?debug:Debug}%{!?debug:None} \
80 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
81 -DCMAKE_VERBOSE_MAKEFILE=ON \
82%if "%{_lib}" == "lib64"
83 -DLIB_SUFFIX=64 \
84%endif
2cc6b667 85 -DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-gtk2-unicode-config
aa328ce5 86
d325390a 87%{__make}
9d98c2c7
JB
88
89%install
90rm -rf $RPM_BUILD_ROOT
91
d325390a
JB
92%{__make} -C build install \
93 DESTDIR=$RPM_BUILD_ROOT
9d98c2c7 94
d325390a
JB
95# cmake is so great there is no way to pass proper path
96mv $RPM_BUILD_ROOT%{_iconsdir}/{gnome,hicolor}
97
2c7caafb
JB
98%py_comp $RPM_BUILD_ROOT%{py_sitedir}
99%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
100
d325390a 101%find_lang %{name}
9d98c2c7
JB
102
103%clean
104rm -rf $RPM_BUILD_ROOT
105
106%files -f %{name}.lang
107%defattr(644,root,root,755)
2c7caafb 108%doc AUTHORS ChangeLog LICENCE_VIGRA README TODO src/celeste/LICENCE_{GABOR,LIBSVM}
d325390a 109%lang(ja) %doc README_JP
1ddb2f99
JB
110%attr(755,root,root) %{_bindir}/PTBatcher
111%attr(755,root,root) %{_bindir}/PTBatcherGUI
d325390a 112%attr(755,root,root) %{_bindir}/align_image_stack
9d98c2c7 113%attr(755,root,root) %{_bindir}/autooptimiser
015d801d 114%attr(755,root,root) %{_bindir}/autopano-noop.sh
21893981 115%attr(755,root,root) %{_bindir}/calibrate_lens_gui
015d801d 116%attr(755,root,root) %{_bindir}/celeste_standalone
8705f98f 117%attr(755,root,root) %{_bindir}/checkpto
b311c89b 118%attr(755,root,root) %{_bindir}/cpclean
8705f98f 119%attr(755,root,root) %{_bindir}/cpfind
20e8ff27 120%attr(755,root,root) %{_bindir}/deghosting_mask
c4b49915 121%attr(755,root,root) %{_bindir}/fulla
2c7caafb 122%attr(755,root,root) %{_bindir}/geocpset
9d98c2c7 123%attr(755,root,root) %{_bindir}/hugin
d325390a
JB
124%attr(755,root,root) %{_bindir}/hugin_hdrmerge
125%attr(755,root,root) %{_bindir}/hugin_stitch_project
8705f98f 126%attr(755,root,root) %{_bindir}/icpfind
21893981 127%attr(755,root,root) %{_bindir}/linefind
d325390a 128%attr(755,root,root) %{_bindir}/matchpoint
9d98c2c7
JB
129%attr(755,root,root) %{_bindir}/nona
130%attr(755,root,root) %{_bindir}/nona_gui
20e8ff27
AA
131%attr(755,root,root) %{_bindir}/pano_modify
132%attr(755,root,root) %{_bindir}/pano_trafo
e2e05e12 133%attr(755,root,root) %{_bindir}/pto_gen
2c7caafb 134%attr(755,root,root) %{_bindir}/pto_lensstack
20e8ff27 135%attr(755,root,root) %{_bindir}/pto_merge
2c7caafb 136%attr(755,root,root) %{_bindir}/pto_var
d325390a
JB
137%attr(755,root,root) %{_bindir}/pto2mk
138%attr(755,root,root) %{_bindir}/tca_correct
139%attr(755,root,root) %{_bindir}/vig_optimize
8705f98f 140%dir %{_libdir}/hugin
1ddb2f99 141%attr(755,root,root) %{_libdir}/hugin/libceleste.so.*.*
8705f98f
AA
142%attr(755,root,root) %{_libdir}/hugin/libhuginbase.so.*.*
143%attr(755,root,root) %{_libdir}/hugin/libhuginbasewx.so.*.*
21893981 144%attr(755,root,root) %{_libdir}/hugin/libhuginlines.so.*.*
8705f98f
AA
145%attr(755,root,root) %{_libdir}/hugin/libhuginvigraimpex.so.*.*
146%attr(755,root,root) %{_libdir}/hugin/libicpfindlib.so.*.*
147%attr(755,root,root) %{_libdir}/hugin/liblocalfeatures.so.*.*
148%attr(755,root,root) %{_libdir}/hugin/libmakefilelib.so.*.*
e2e05e12 149%attr(755,root,root) %{_libdir}/hugin/libhugin_python_interface.so.*.*
2c7caafb
JB
150%attr(755,root,root) %{py_sitedir}/_hsi.so
151%{py_sitedir}/hpi.py*
152%{py_sitedir}/hsi.py*
9d98c2c7 153%{_datadir}/%{name}
7b7a27a7
JB
154%{_datadir}/mime/packages/hugin.xml
155%{_desktopdir}/hugin.desktop
e2e05e12 156%{_desktopdir}/pto_gen.desktop
015d801d 157%{_desktopdir}/PTBatcherGUI.desktop
21893981 158%{_desktopdir}/calibrate_lens_gui.desktop
d325390a 159%{_iconsdir}/hicolor/*/mimetypes/gnome-mime-application-x-ptoptimizer-script.png
7b7a27a7 160%{_pixmapsdir}/hugin.png
8705f98f 161%{_pixmapsdir}/ptbatcher.png
21893981 162%{_mandir}/man1/PTBatcher.1*
1ddb2f99
JB
163%{_mandir}/man1/PTBatcherGUI.1*
164%{_mandir}/man1/align_image_stack.1*
165%{_mandir}/man1/autooptimiser.1*
21893981 166%{_mandir}/man1/autopano-noop.sh.1*
167%{_mandir}/man1/calibrate_lens_gui.1*
1ddb2f99
JB
168%{_mandir}/man1/celeste_standalone.1*
169%{_mandir}/man1/checkpto.1*
170%{_mandir}/man1/cpclean.1*
171%{_mandir}/man1/cpfind.1*
172%{_mandir}/man1/deghosting_mask.1*
173%{_mandir}/man1/fulla.1*
2c7caafb 174%{_mandir}/man1/geocpset.1*
1ddb2f99
JB
175%{_mandir}/man1/hugin.1*
176%{_mandir}/man1/hugin_hdrmerge.1*
177%{_mandir}/man1/hugin_stitch_project.1*
178%{_mandir}/man1/icpfind.1*
21893981 179%{_mandir}/man1/linefind.1*
180%{_mandir}/man1/matchpoint.1*
1ddb2f99
JB
181%{_mandir}/man1/nona.1*
182%{_mandir}/man1/nona_gui.1*
183%{_mandir}/man1/pano_modify.1*
184%{_mandir}/man1/pano_trafo.1*
185%{_mandir}/man1/pto2mk.1*
e2e05e12 186%{_mandir}/man1/pto_gen.1*
2c7caafb 187%{_mandir}/man1/pto_lensstack.1*
1ddb2f99 188%{_mandir}/man1/pto_merge.1*
2c7caafb 189%{_mandir}/man1/pto_var.1*
1ddb2f99
JB
190%{_mandir}/man1/tca_correct.1*
191%{_mandir}/man1/vig_optimize.1*
This page took 0.245514 seconds and 4 git commands to generate.