A new user interface for you!

File lensfun.spec of Package lensfun

# norootforbuild

Name:		lensfun
Summary:	A photographic lens database and a library for accessing it
Version:	0.2.3
Release:	1
%define		soname 0
URL:		http://lensfun.berlios.de/
Source0:	lensfun-%{version}.tar.bz2
Patch0:		lensfun-docdir.patch
License:	LGPLv3
Group:		System/Libraries
Requires:	liblensfun%{soname} = %{version}-%{release}
BuildRequires:	python, doxygen, libpng-devel, glib2-devel, zlib, gcc-c++
Packager:	Jörg Lorenzen <joerg.lorenzen@ki.tng.de>
Distribution:	openSUSE 11.0
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
Prefix:		/usr

The goal of the lensfun library is to provide a open source database
of photographic lenses and their characteristics. In the past there
was a effort in this direction (see http://www.epaperpress.com/ptlens/),
but then author decided to take the commercial route and the database
froze at the last public stage. This database was used as the basement
on which lensfun database grew, thanks to PTLens author which gave his
permission for this, while the code was totally rewritten from scratch
(and the database was converted to a totally new, XML-based format).

The lensfun library not only provides a way to read the database and
search for specific things in it, but also provides a set of algorithms
for correcting images based on detailed knowledge of lens properties
and calibration data. Right now lensfun is designed to correct distortion,
transversal (also known as lateral) chromatic aberrations, vignetting
and colour contribution index of the lens.

%package -n liblensfun%{soname}
Summary:	A photographic lens database and a library for accessing it
Group:		System/Libraries
Provides:	liblensfun%{soname} = %{version}-%{release}

%description -n liblensfun%{soname}
Library files for package lensfun/lensfun-devel

%package devel
Summary:	A photographic lens database and a library for accessing it
Group:		Development/Libraries/C and C++
Provides:	lensfun-devel = %{version}-%{release}
Requires:	liblensfun%{soname} = %{version}-%{release}

%description devel
Header and library definition files for developing applications
that use the lensfun library/database.


%setup -q -n %{name}-%{version}
./configure -v \
	--cflags="${CFLAGS:-$RPM_OPT_FLAGS}" \
	--cxxflags="${CXXFLAGS:-$RPM_OPT_FLAGS}" \
	--prefix=%{_prefix} \
	--bindir=%{_bindir} \
	--sysconfdir=%{_sysconfdir} \
	--datadir=%{_datadir}/lensfun \
	--libdir=%{_libdir} \
	--includedir=%{_includedir} \

make AUTODEP=0 %{?_smp_mflags} lensfun manual

make AUTODEP=0 INSTALL_PREFIX=%{?buildroot:%{buildroot}} install


%dir %{_datadir}/lensfun
%dir %{_docdir}/lensfun-%{version}
%dir %{_docdir}/lensfun-%{version}/manual

%files -n liblensfun%{soname}

%files devel

* Sat Oct 04 2008 Jörg Lorenzen <joerg.lorenzen@ki.tng.de>
- build version 0.2.3
* Sat Sep 06 2008 Jörg Lorenzen <joerg.lorenzen@ki.tng.de>
- build version 0.2.2.svn20080721
* Wed Aug 13 2008 Jörg Lorenzen <joerg.lorenzen@ki.tng.de>
- build version 0.2.2.beta