LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File lensfun.spec of Package lensfun (Project home:hfiguiere)

# 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

%description
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.

%prep
rm -rf $RPM_BUILD_ROOT 
mkdir $RPM_BUILD_ROOT

%setup -q -n %{name}-%{version}
%patch0
./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} \
	--libexecdir=%{_libexecdir}

make AUTODEP=0 %{?_smp_mflags} lensfun manual

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

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%dir %{_datadir}/lensfun
%{_datadir}/lensfun/*
%dir %{_docdir}/lensfun-%{version}
%{_docdir}/lensfun-%{version}/README
%{_docdir}/lensfun-%{version}/*.txt
%dir %{_docdir}/lensfun-%{version}/manual
%{_docdir}/lensfun-%{version}/manual/*

%files -n liblensfun%{soname}
%defattr(-,root,root)
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*.h

%changelog
* 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