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