]> git.pld-linux.org Git - packages/hugin.git/blobdiff - hugin.spec
- merged from DEVEL
[packages/hugin.git] / hugin.spec
index 6fd6d77a48c9cd95c3fc040db819728fa2782fd9..b0c52ed051b2e20116529b380820611c7e14d61f 100644 (file)
 Summary:       Toolchain to create panoramic images
-Summary(pl):   Zestaw narzêdzi do tworzenia panoramicznych zdjêæ
+Summary(pl.UTF-8):     Zestaw narzędzi do tworzenia panoramicznych zdjęć
 Name:          hugin
-Version:       0.5
-%define        bver    beta4
-Release:       0.%{bver}.2
-# SIFT is patented in USA and may require license for commercial use
-License:       GPL, non-commercial SIFT license for some code
-Group:         Applications/Graphics
-Source0:       http://dl.sourceforge.net/hugin/%{name}-%{version}-%{bver}.tar.bz2
-# Source0-md5: b852b334400ba9d4ae91a5a628846491
-Patch0:                %{name}-cvs.patch
-Patch1:                %{name}-pl.po-update.patch
-Patch2:                %{name}-defaults.patch
-URL:           http://hugin.sf.net/
-BuildRequires: boost-test-devel
+Version:       0.7.0
+Release:       1
+License:       GPL v2+
+Group:         X11/Applications/Graphics
+Source0:       http://dl.sourceforge.net/hugin/%{name}-%{version}.tar.gz
+# Source0-md5: 6efbfc72ceba028ca3dff3c23806a7f3
+Patch0:                %{name}-pl.po-update.patch
+Patch1:                %{name}-asneeded.patch
+Patch2:                %{name}-cppflags.patch
+URL:           http://hugin.sourceforge.net/
+BuildRequires: OpenEXR-devel
+BuildRequires: boost-devel >= 1.35.0
+BuildRequires: cmake >= 2.4
+BuildRequires: exiv2-devel
 BuildRequires: gettext-devel
-BuildRequires: gtk+2-devel >= 2.0.3
+BuildRequires: gtk+2-devel >= 1:2.0.3
 BuildRequires: libjpeg-devel
-BuildRequires: libpano12-devel
+BuildRequires: libpano13-devel >= 2.9.12
 BuildRequires: libpng-devel
 BuildRequires: libstdc++-devel
 BuildRequires: libtiff-devel
-BuildRequires: wxGTK2-devel >= 2.6.0
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.471
+BuildRequires: sed >= 4.0
+BuildRequires: wxGTK2-unicode-devel >= 2.6.0
+BuildRequires: zip
 BuildRequires: zlib-devel
+Suggests:      autopano-sift-C >= 2.5.0
+Suggests:      enblend-enfuse >= 3.1
+# exiftool program
+Suggests:      perl-Image-ExifTool
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 With hugin you can assemble a mosaic of photographs into a complete
 immensive panorama, stitch any series of overlapping pictures and much
 more.
-Note: Hugin can use autopano-sift package to match images and enblend
-package for soft blending, so you'll probably want to install them
-too.
 
-%description -l pl
-Przy u¿yciu hugina mo¿na po³±czyæ wiele fotografii w kompletn±, du¿±
-panoramê, skleiæ dowolny ci±g nak³adaj±cych siê zdjêæ i wiele wiêcej.
+Note: Hugin can use autopano-sift-C package to match images and
+enblend package for soft blending, so you'll probably want to install
+them too.
 
-Hugin mo¿e u¿ywaæ pakietu autopano-shift do dopasowania zdjêæ oraz
-pakiet enblend do wyg³adzenia krawêdzi po ³±czeniu - wiêc warto te
-pakiety tak¿e zainstalowaæ.
+%description -l pl.UTF-8
+Przy użyciu hugina można połączyć wiele fotografii w kompletną, dużą
+panoramę, skleić dowolny ciąg nakładających się zdjęć i wiele więcej.
+
+Hugin może używać pakietu autopano-sift-C do dopasowania zdjęć oraz
+pakiet enblend do wygładzenia krawędzi po łączeniu - więc warto te
+pakiety także zainstalować.
 
 %prep
-%setup -q -n %{name}-%{version}-%{bver}
+%setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
+%patch2 -p0
+
+mv -f src/translations/{ca_ES,ca}.po
+mv -f src/translations/{cs_CZ,cs}.po
 
 %build
-%configure \
-       --with-wx-config=wx-gtk2-ansi-config
+install -d build
+cd build
+%cmake .. \
+       -DCMAKE_BUILD_TYPE=%{?debug:Debug}%{!?debug:None} \
+       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+       -DCMAKE_VERBOSE_MAKEFILE=ON \
+%if "%{_lib}" == "lib64"
+       -DLIB_SUFFIX=64 \
+%endif
+       -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
-# "hugin" and "nona_gui" domains
-%find_lang %{name} --all-name
+# cmake is so great there is no way to pass proper path
+mv $RPM_BUILD_ROOT%{_iconsdir}/{gnome,hicolor}
+
+# not needed
+rm $RPM_BUILD_ROOT%{_libdir}/libhugin*.so
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS BUGS ChangeLog LICENCE_SIFT README TODO
+%doc AUTHORS ChangeLog LICENCE_JHEAD LICENCE_VIGRA README TODO
+%lang(ja) %doc README_JP
+%attr(755,root,root) %{_bindir}/align_image_stack
 %attr(755,root,root) %{_bindir}/autooptimiser
+%attr(755,root,root) %{_bindir}/fulla
 %attr(755,root,root) %{_bindir}/hugin
+%attr(755,root,root) %{_bindir}/hugin_hdrmerge
+%attr(755,root,root) %{_bindir}/hugin_stitch_project
+%attr(755,root,root) %{_bindir}/matchpoint
 %attr(755,root,root) %{_bindir}/nona
 %attr(755,root,root) %{_bindir}/nona_gui
-%attr(755,root,root) %{_bindir}/panosifter
-%attr(755,root,root) %{_bindir}/sift_keypoints
-%attr(755,root,root) %{_bindir}/zhang_undistort
+%attr(755,root,root) %{_bindir}/pto2mk
+%attr(755,root,root) %{_bindir}/tca_correct
+%attr(755,root,root) %{_bindir}/vig_optimize
+%attr(755,root,root) %{_libdir}/libhuginANN.so.*.*
+%attr(755,root,root) %{_libdir}/libhuginbase.so.*.*
+%attr(755,root,root) %{_libdir}/libhuginjhead.so.*.*
+%attr(755,root,root) %{_libdir}/libhuginvigraimpex.so.*.*
 %{_datadir}/%{name}
+%{_datadir}/mime/packages/hugin.xml
+%{_desktopdir}/hugin.desktop
+%{_desktopdir}/hugin_stitch_project.desktop
+%{_iconsdir}/hicolor/*/mimetypes/gnome-mime-application-x-ptoptimizer-script.png
+%{_pixmapsdir}/hugin.png
+%{_mandir}/man1/fulla.1*
This page took 0.03301 seconds and 4 git commands to generate.