Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > e681953f1cc86da21786a3242ce1ee61 > files > 9

lensfun-0.3.2-2.2.mga6.src.rpm

%define lib_major 1
%define lib_name %mklibname lensfun %{lib_major}
%define lib_dev %mklibname lensfun -d

Name: lensfun
Version: 0.3.2
Summary: A library to rectify defects introduced by photographic lenses
%define subrel 2
Release: %mkrel 2
License: LGPLv3 and CC-BY-SA
Group: System/Libraries
URL: http://lensfun.berlios.de/
Source0: http://downloads.sourceforge.net/lensfun/%{name}-%{version}.tar.gz
# The mageia package uses lens data version 1. Use the lensfun-update-data
# utility to update the lens database and tar the result to add to the pkg.
Source1: lensfun_db_20171215.tar.gz
Patch0: 0001-Only-require-glib-2.40-when-tests-are-build-without-.patch
Patch1: 0038-Only-use-proper-C-new-and-delete-syntax-for-object-c.patch
Patch2: 0058-Use-database-in-source-directory-while-running-tests.patch
Patch3: 0059-Patch-47-respect-DESTDIR-when-installing-python-stuf.patch
Patch4: 0060-Various-CMake-patches-from-the-mailing-list.patch
Patch5: 0113-Added-std-namespace-to-isnan.patch
Patch7: lensfun-0.3.2-INSTALL_HELPER_SCRIPTS.patch
BuildRequires: cmake >= 2.8
BuildRequires: doxygen
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(zlib)
BuildRequires: python3 python3-devel
BuildRequires: python-docutils

%description
The lensfun library provides an open source database of photographic lenses and
their characteristics. It not only provides a way to read and search the
database, but also provides a set of algorithms for correcting images based on
detailed knowledge of lens properties. Right now lensfun is designed to correct
distortion, transversal (also known as lateral) chromatic aberrations,
vignetting and color contribution of a lens.

%files
%{_datadir}/lensfun
%{_bindir}/lensfun-add-adapter
%{_bindir}/lensfun-update-data
%{python3_sitelib}/lensfun/
%{python3_sitelib}/lensfun*.egg-info
%{_docdir}/lensfun/*.html
%{_docdir}/lensfun/*.png
%{_docdir}/lensfun/*.css
%{_docdir}/lensfun/*.js
%{_mandir}/man1/lensfun-add-adapter.1*
%{_mandir}/man1/lensfun-update-data.1*

#------------------------------------------------------------------

%package -n %{lib_name}
Summary: A library to rectify defects introduced by photographic lenses
Group: System/Libraries
Requires: %{name}

%description -n	%{lib_name}
A library to rectify defects introduced by photographic lenses.

%files -n %{lib_name}
%{_libdir}/*.so.%{lib_major}
%{_libdir}/*.so.%{version}

#------------------------------------------------------------------

%package -n	%{lib_dev}
Summary: Development tools for programs which will use the %{name}
Group: Development/C
Requires: %{lib_name} = %{version}
Provides: %{name}-devel = %{version}-%{release}

%description -n	%{lib_dev}
This package contains the header files and .so libraries for developing %{name}.

%files -n %{lib_dev}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/lensfun.pc

#------------------------------------------------------------------

%prep
%setup -q
%{__tar} -C%{_builddir}/%{name}-%{version}/data/db -xf %{SOURCE1}
%autopatch -p1

%build
%cmake -DBUILD_TESTS:BOOL=OFF \
       -DBUILD_DOC:BOOL=ON \
       -DCMAKE_BUILD_TYPE:STRING=Release \
       -DINSTALL_HELPER_SCRIPTS:BOOL=ON \
%ifarch x86_64
	-DBUILD_FOR_SSE=ON -DBUILD_FOR_SSE2=ON \
%else
	-DBUILD_FOR_SSE=OFF -DBUILD_FOR_SSE2=OFF \
%endif

%make_build

%install
%make_install -C build

## unpackaged files
# omit g-lensfun-update-data because it needs gksudo which we don't ship
rm -fv %{buildroot}%{_bindir}/g-lensfun-update-data \
       %{buildroot}%{_mandir}/man1/g-lensfun-update-data.*

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig



%changelog
* Fri Dec 15 2017 mrambo3501 <mrambo3501> 0.3.2-2.2.mga6
+ Revision: 1182726
- get the correct version of the upstream lens database
- add patches from fedora which fix the building of the python module
- fix license
- generally sync with the fedora spec
- update lens and camera database files from upstream sources
- enable upsteam database management scripts

* Thu Feb 11 2016 umeabot <umeabot> 0.3.2-2.mga6
+ Revision: 955233
- Mageia 6 Mass Rebuild

* Fri Jan 08 2016 luigiwalser <luigiwalser> 0.3.2-1.mga6
+ Revision: 920529
- 0.3.2
- library major is now 1
- remove obsolete patch

* Wed Oct 15 2014 umeabot <umeabot> 0.2.8-3.mga5
+ Revision: 747702
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.2.8-2.mga5
+ Revision: 681296
- Mageia 5 Mass Rebuild

* Fri Dec 20 2013 luigiwalser <luigiwalser> 0.2.8-1.mga4
+ Revision: 559249
- 0.2.8

* Sat Oct 19 2013 umeabot <umeabot> 0.2.7-2.mga4
+ Revision: 527775
- Mageia 4 Mass Rebuild

* Thu Jun 13 2013 fwang <fwang> 0.2.7-1.mga4
+ Revision: 442308
- new version 0.2.7

* Sat Jan 12 2013 umeabot <umeabot> 0.2.6-5.mga3
+ Revision: 356750
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Nov 16 2012 luigiwalser <luigiwalser> 0.2.6-4.mga3
+ Revision: 318973
- fix lensfun header file installation path

* Sat Sep 08 2012 fwang <fwang> 0.2.6-3.mga3
+ Revision: 289988
- enable sse for x86_64

* Sat Sep 08 2012 fwang <fwang> 0.2.6-2.mga3
+ Revision: 289936
- more patch

* Sat Sep 08 2012 fwang <fwang> 0.2.6-1.mga3
+ Revision: 289931
- install pkgconfig file
- fix build and lib64 installation dir
- br doxygen
- specify libdir
- disable test
- build doc
- new version 0.2.6

* Sun Dec 11 2011 fwang <fwang> 0.2.5-2.mga2
+ Revision: 180798
- fix build with libpng 1.5
- add fedora patch to fix cpu features detcting

* Mon Feb 07 2011 ahmad <ahmad> 0.2.5-1.mga1
+ Revision: 48708
- imported package lensfun


* Fri Aug 06 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.2.5-1mdv2011.0
+ Revision: 567185
- update to 0.2.5
- drop patch0, not needed any more

* Wed Mar 17 2010 Oden Eriksson <oeriksson@mandriva.com> 0.2.4-2mdv2010.1
+ Revision: 523162
- rebuilt for 2010.1

* Sun Oct 18 2009 Nicolas Lécureuil <nlecureuil@mandriva.com> 0.2.4-1mdv2010.0
+ Revision: 458118
- Update to 0.2.4

* Sat Jul 11 2009 Frederic Crozat <fcrozat@mandriva.com> 0.2.3-1mdv2010.0
+ Revision: 394797
- Patch1: fix build on 64bits
- Release 0.2.3
- Patch0: fix linking

* Tue Jun 24 2008 Helio Chissini de Castro <helio@mandriva.com> 0.2.2b-1mdv2009.0
+ Revision: 228769
- Added missing buildrequires
- import lensfun