]> git.pld-linux.org Git - packages/hugin.git/blame - hugin.spec
- up to 2010.2.0
[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
52126dd2
CM
4Version: 2010.0.0
5Release: 1
7b7a27a7 6License: GPL v2+
d325390a
JB
7Group: X11/Applications/Graphics
8Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}.tar.gz
52126dd2 9# Source0-md5: 0cd0b78e0d866023e3b6645e5010876f
48fac181 10Patch0: %{name}-pl.po-update.patch
aa328ce5
KK
11Patch1: %{name}-asneeded.patch
12Patch2: %{name}-cppflags.patch
b311c89b 13Patch3: %{name}-libpng.patch
9e230f45 14URL: http://hugin.sourceforge.net/
d325390a 15BuildRequires: OpenEXR-devel
8e4543a9 16BuildRequires: OpenGL-glut-devel
015d801d 17BuildRequires: boost-devel >= 1.40.0
d325390a
JB
18BuildRequires: cmake >= 2.4
19BuildRequires: exiv2-devel
9d98c2c7 20BuildRequires: gettext-devel
8e4543a9 21BuildRequires: glew-devel
92e0c919 22BuildRequires: gtk+2-devel >= 1:2.0.3
9d98c2c7 23BuildRequires: libjpeg-devel
d325390a 24BuildRequires: libpano13-devel >= 2.9.12
9d98c2c7
JB
25BuildRequires: libpng-devel
26BuildRequires: libstdc++-devel
27BuildRequires: libtiff-devel
d325390a
JB
28BuildRequires: pkgconfig
29BuildRequires: rpmbuild(macros) >= 1.471
6ecc4767 30BuildRequires: sed >= 4.0
92e0c919 31BuildRequires: wxGTK2-unicode-devel >= 2.6.0
015d801d 32BuildRequires: wxGTK2-unicode-gl-devel >= 2.6.0
9d98c2c7 33BuildRequires: zlib-devel
d325390a
JB
34Suggests: autopano-sift-C >= 2.5.0
35Suggests: enblend-enfuse >= 3.1
36# exiftool program
37Suggests: perl-Image-ExifTool
9d98c2c7
JB
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%description
41With hugin you can assemble a mosaic of photographs into a complete
42immensive panorama, stitch any series of overlapping pictures and much
43more.
9e230f45 44
d325390a
JB
45Note: Hugin can use autopano-sift-C package to match images and
46enblend package for soft blending, so you'll probably want to install
47them too.
7dba9267 48
8b7d4390
JR
49%description -l pl.UTF-8
50Przy użyciu hugina można połączyć wiele fotografii w kompletną, dużą
51panoramę, skleić dowolny ciąg nakładających się zdjęć i wiele więcej.
9d98c2c7 52
d325390a 53Hugin może używać pakietu autopano-sift-C do dopasowania zdjęć oraz
8b7d4390
JR
54pakiet enblend do wygładzenia krawędzi po łączeniu - więc warto te
55pakiety także zainstalować.
7dba9267 56
9d98c2c7 57%prep
d325390a 58%setup -q
015d801d 59#%patch0 -p1
f0ce8e08 60%patch1 -p1
d325390a 61%patch2 -p0
015d801d 62%patch3 -p1
9d98c2c7 63
aa328ce5
KK
64mv -f src/translations/{ca_ES,ca}.po
65mv -f src/translations/{cs_CZ,cs}.po
64a4861a 66
9d98c2c7 67%build
aa328ce5
KK
68install -d build
69cd build
d325390a
JB
70%cmake .. \
71 -DCMAKE_BUILD_TYPE=%{?debug:Debug}%{!?debug:None} \
72 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
73 -DCMAKE_VERBOSE_MAKEFILE=ON \
74%if "%{_lib}" == "lib64"
75 -DLIB_SUFFIX=64 \
76%endif
77 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config
aa328ce5 78
d325390a 79%{__make}
9d98c2c7
JB
80
81%install
82rm -rf $RPM_BUILD_ROOT
83
d325390a
JB
84%{__make} -C build install \
85 DESTDIR=$RPM_BUILD_ROOT
9d98c2c7 86
d325390a
JB
87# cmake is so great there is no way to pass proper path
88mv $RPM_BUILD_ROOT%{_iconsdir}/{gnome,hicolor}
89
90# not needed
91rm $RPM_BUILD_ROOT%{_libdir}/libhugin*.so
92
93%find_lang %{name}
9d98c2c7
JB
94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
d325390a
JB
98%post -p /sbin/ldconfig
99%postun -p /sbin/ldconfig
100
9d98c2c7
JB
101%files -f %{name}.lang
102%defattr(644,root,root,755)
015d801d 103%doc AUTHORS ChangeLog LICENCE_VIGRA README TODO
d325390a
JB
104%lang(ja) %doc README_JP
105%attr(755,root,root) %{_bindir}/align_image_stack
9d98c2c7 106%attr(755,root,root) %{_bindir}/autooptimiser
015d801d 107%attr(755,root,root) %{_bindir}/autopano-noop.sh
b311c89b 108%attr(755,root,root) %{_bindir}/calibrate_lens
015d801d 109%attr(755,root,root) %{_bindir}/celeste_standalone
b311c89b 110%attr(755,root,root) %{_bindir}/cpclean
c4b49915 111%attr(755,root,root) %{_bindir}/fulla
9d98c2c7 112%attr(755,root,root) %{_bindir}/hugin
d325390a
JB
113%attr(755,root,root) %{_bindir}/hugin_hdrmerge
114%attr(755,root,root) %{_bindir}/hugin_stitch_project
115%attr(755,root,root) %{_bindir}/matchpoint
9d98c2c7
JB
116%attr(755,root,root) %{_bindir}/nona
117%attr(755,root,root) %{_bindir}/nona_gui
015d801d 118%attr(755,root,root) %{_bindir}/PTBatcher
119%attr(755,root,root) %{_bindir}/PTBatcherGUI
d325390a
JB
120%attr(755,root,root) %{_bindir}/pto2mk
121%attr(755,root,root) %{_bindir}/tca_correct
122%attr(755,root,root) %{_bindir}/vig_optimize
015d801d 123%attr(755,root,root) %{_libdir}/libceleste.so*
d325390a
JB
124%attr(755,root,root) %{_libdir}/libhuginANN.so.*.*
125%attr(755,root,root) %{_libdir}/libhuginbase.so.*.*
d325390a 126%attr(755,root,root) %{_libdir}/libhuginvigraimpex.so.*.*
9d98c2c7 127%{_datadir}/%{name}
7b7a27a7
JB
128%{_datadir}/mime/packages/hugin.xml
129%{_desktopdir}/hugin.desktop
015d801d 130%{_desktopdir}/PTBatcherGUI.desktop
d325390a 131%{_iconsdir}/hicolor/*/mimetypes/gnome-mime-application-x-ptoptimizer-script.png
7b7a27a7 132%{_pixmapsdir}/hugin.png
015d801d 133%{_mandir}/man1/*
This page took 0.157508 seconds and 4 git commands to generate.