]> git.pld-linux.org Git - packages/hugin.git/blame - hugin.spec
- outdated
[packages/hugin.git] / hugin.spec
CommitLineData
38b8113b
SS
1#
2# Conditional build:
fe08b3cf
JB
3%bcond_with pano13 # use libpano13 instead of libpano12
4#
e8b79d2d 5%define _beta beta4
9d98c2c7 6Summary: Toolchain to create panoramic images
88825902 7Summary(pl.UTF-8): Zestaw narzędzi do tworzenia panoramicznych zdjęć
9d98c2c7 8Name: hugin
aa328ce5
KK
9Version: 0.7.0
10Release: 0.rc5.0.1
7b7a27a7 11License: GPL v2+
9d98c2c7 12Group: Applications/Graphics
aa328ce5
KK
13Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}_rc5.tar.gz
14# Source0-md5: cd99ce8985aec47b93e300c2be695680
48fac181 15Patch0: %{name}-pl.po-update.patch
aa328ce5
KK
16Patch1: %{name}-asneeded.patch
17Patch2: %{name}-cppflags.patch
9e230f45 18URL: http://hugin.sourceforge.net/
48fac181
JB
19BuildRequires: autoconf >= 2.50
20BuildRequires: automake
de37cbfb 21BuildRequires: boost-devel >= 1.35.0
9d98c2c7 22BuildRequires: gettext-devel
92e0c919 23BuildRequires: gtk+2-devel >= 1:2.0.3
9d98c2c7 24BuildRequires: libjpeg-devel
38b8113b
SS
25%{!?with_pano13:BuildRequires: libpano12-devel >= 2.8.1}
26%{?with_pano13:BuildRequires: libpano13-devel}
9d98c2c7
JB
27BuildRequires: libpng-devel
28BuildRequires: libstdc++-devel
29BuildRequires: libtiff-devel
48fac181 30BuildRequires: libtool >= 2:1.5
6ecc4767 31BuildRequires: sed >= 4.0
92e0c919 32BuildRequires: wxGTK2-unicode-devel >= 2.6.0
c4b49915 33BuildRequires: zip
9d98c2c7 34BuildRequires: zlib-devel
fe08b3cf 35%{!?with_pano13:BuildConflicts: libpano13-devel}
38b8113b
SS
36%{!?with_pano13:Requires: libpano12 >= 2.8.1}
37%{?with_pano13:Requires: libpano13}
178f2015 38Suggests: autopano-sift
f52dd924 39Suggests: enblend >= 2.4
9d98c2c7
JB
40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42%description
43With hugin you can assemble a mosaic of photographs into a complete
44immensive panorama, stitch any series of overlapping pictures and much
45more.
9e230f45 46
7dba9267
JB
47Note: Hugin can use autopano-sift package to match images and enblend
48package for soft blending, so you'll probably want to install them
49too.
50
8b7d4390
JR
51%description -l pl.UTF-8
52Przy użyciu hugina można połączyć wiele fotografii w kompletną, dużą
53panoramę, skleić dowolny ciąg nakładających się zdjęć i wiele więcej.
9d98c2c7 54
8b7d4390
JR
55Hugin może używać pakietu autopano-sift do dopasowania zdjęć oraz
56pakiet enblend do wygładzenia krawędzi po łączeniu - więc warto te
57pakiety także zainstalować.
7dba9267 58
9d98c2c7 59%prep
aa328ce5
KK
60%setup -q
61# %%patch0 -p1
f0ce8e08 62%patch1 -p1
aa328ce5 63%patch2
9d98c2c7 64
aa328ce5
KK
65#sed -i -e 's/ca_ES/ca/;s/cs_CZ/cs/;' src/hugin/po/LINGUAS
66mv -f src/translations/{ca_ES,ca}.po
67mv -f src/translations/{cs_CZ,cs}.po
c4b49915 68# missing in LINGUAS
aa328ce5 69# echo 'cs'>> src/nona_gui/po/LINGUAS
64a4861a 70
9d98c2c7 71%build
aa328ce5
KK
72install -d build
73cd build
74
75export CPPFLAGS="%{rpmcppflags}"
76%cmake \
77 -DCMAKE_BUILD_TYPE:STRING="None" \
78 -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
79 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-ansi-config \
80 ..
81%{__make} VERBOSE=1
9d98c2c7
JB
82
83%install
84rm -rf $RPM_BUILD_ROOT
85
86%{__make} install \
1f9ab152
JB
87 DESTDIR=$RPM_BUILD_ROOT \
88 gnomemimeicondir=%{_iconsdir}/hicolor/48x48/mimetypes
9d98c2c7
JB
89
90# "hugin" and "nona_gui" domains
91%find_lang %{name} --all-name
92
93%clean
94rm -rf $RPM_BUILD_ROOT
95
96%files -f %{name}.lang
97%defattr(644,root,root,755)
7b7a27a7 98%doc AUTHORS BUGS ChangeLog LICENCE_JHEAD LICENCE_VIGRA NEWS README TODO
9d98c2c7 99%attr(755,root,root) %{_bindir}/autooptimiser
c4b49915
JB
100%attr(755,root,root) %{_bindir}/color_correct_tiff
101%attr(755,root,root) %{_bindir}/fulla
9d98c2c7
JB
102%attr(755,root,root) %{_bindir}/hugin
103%attr(755,root,root) %{_bindir}/nona
104%attr(755,root,root) %{_bindir}/nona_gui
9d98c2c7
JB
105%attr(755,root,root) %{_bindir}/zhang_undistort
106%{_datadir}/%{name}
7b7a27a7
JB
107%{_datadir}/mime/packages/hugin.xml
108%{_desktopdir}/hugin.desktop
1f9ab152 109%{_iconsdir}/hicolor/*/mimetypes/*.png
7b7a27a7 110%{_pixmapsdir}/hugin.png
c4b49915 111%{_mandir}/man1/fulla.1*
This page took 0.059136 seconds and 4 git commands to generate.