packages: pfstools/pfstools.spec - build with gdal reader and octave binding

qboosh qboosh at pld-linux.org
Fri Feb 3 21:25:33 CET 2012


Author: qboosh                       Date: Fri Feb  3 20:25:33 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build with gdal reader and octave binding

---- Files affected:
packages/pfstools:
   pfstools.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/pfstools/pfstools.spec
diff -u packages/pfstools/pfstools.spec:1.4 packages/pfstools/pfstools.spec:1.5
--- packages/pfstools/pfstools.spec:1.4	Fri Feb  3 15:31:34 2012
+++ packages/pfstools/pfstools.spec	Fri Feb  3 21:25:28 2012
@@ -1,9 +1,7 @@
 # $Revision$, $Date$
 #
 # TODO:
-# - jpeghdr
-# - gdal
-# - octave
+# - jpeghdr (libjpeghdr doesn't seem to be freely available; was attached to some book?)
 # - split progs package by libraries required
 #
 Summary:	pfstools for High Dynamic Range Images and Video
@@ -11,7 +9,7 @@
 Name:		pfstools
 Version:	1.8.5
 Release:	1
-License:	LGPL
+License:	LGPL v2.1+
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/pfstools/%{name}-%{version}.tar.gz
 # Source0-md5:	80dac70bfb6359a6749453477e74b112
@@ -23,12 +21,17 @@
 BuildRequires:	QtGui-devel >= 4
 BuildRequires:	autoconf >= 2.59-9
 BuildRequires:	automake
+BuildRequires:	gdal-devel
 BuildRequires:	libtiff-devel
 BuildRequires:	libtool >= 2:2.0
 BuildRequires:	netpbm-devel
+BuildRequires:	octave-devel
 BuildRequires:	qt4-build >= 4
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		octave_m_dir	%(octave-config --m-site-dir)
+%define		octave_oct_dir	%(octave-config --oct-site-dir)
+
 %description
 pfstools package is a set of command line (and one GUI) programs for
 reading, writing, manipulating and viewing high-dynamic range (HDR)
@@ -75,6 +78,7 @@
 Summary:	pfstools utility programs
 Summary(pl.UTF-8):	Narzędzia pfstools
 Group:		Applications/Graphics
+Requires:	%{name} = %{version}-%{release}
 
 %description progs
 This package contains pfstools utility programs.
@@ -82,6 +86,18 @@
 %description progs -l pl.UTF-8
 Pakiet zawiera narzędzia pfstools.
 
+%package -n octave-pfstools
+Summary:	Octave bindings for pfstools
+Summary(pl.UTF-8):	Wiązania języka Octave do pfstools
+Group:		Development/Languages
+Requires:	%{name} = %{version}-%{release}
+
+%description -n octave-pfstools
+Octave bindings for pfstools.
+
+%description -n octave-pfstools -l pl.UTF-8
+Wiązania języka Octave do pfstools.
+
 %prep
 %setup -q
 
@@ -94,7 +110,6 @@
 
 %configure \
 	--disable-matlab \
-	--disable-octave \
 	%{?debug:--enable-debug}
 
 %{__make}
@@ -136,12 +151,21 @@
 %{_datadir}/pfstools
 %{_mandir}/man1/pfs*.1*
 
+%files -n octave-pfstools
+%defattr(644,root,root,755)
+%dir %{octave_oct_dir}/pfstools
+%attr(755,root,root) %{octave_oct_dir}/pfstools/pfs*.oct
+%{octave_m_dir}/pfstools
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2012/02/03 20:25:28  qboosh
+- build with gdal reader and octave binding
+
 Revision 1.4  2012/02/03 14:31:34  qboosh
 - updated to 1.8.5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pfstools/pfstools.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list