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