2008-11-10 17:42:56 +00:00
|
|
|
|
2014-11-17 17:49:38 +00:00
|
|
|
%global sse -DBUILD_FOR_SSE:BOOL=OFF
|
2014-11-17 17:13:37 +00:00
|
|
|
%global sse2 -DBUILD_FOR_SSE2:BOOL=OFF
|
2014-11-17 17:49:38 +00:00
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%global sse -DBUILD_FOR_SSE:BOOL=ON
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
|
|
%global sse2 -DBUILD_FOR_SSE2:BOOL=ON
|
2014-11-17 17:13:37 +00:00
|
|
|
%endif
|
|
|
|
|
2012-06-28 14:53:00 +00:00
|
|
|
Name: lensfun
|
2015-05-13 13:19:12 +00:00
|
|
|
Version: 0.3.1
|
2010-06-07 12:13:58 +00:00
|
|
|
Summary: Library to rectify defects introduced by photographic lenses
|
2015-05-13 13:19:12 +00:00
|
|
|
Release: 1%{?dist}
|
2012-06-28 14:53:00 +00:00
|
|
|
|
2010-06-07 12:13:58 +00:00
|
|
|
License: LGPLv3 and CC-BY-SA
|
2014-11-04 13:48:06 +00:00
|
|
|
URL: http://lensfun.sourceforge.net/
|
2015-05-13 13:19:12 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
2012-06-28 14:53:00 +00:00
|
|
|
|
2014-11-17 17:13:37 +00:00
|
|
|
## upstreamable patches
|
|
|
|
# install manpages only when INSTALL_HELPER_SCRIPTS=ON
|
|
|
|
Patch1: lensfun-0.3.0-INSTALL_HELPER_SCRIPTS.patch
|
2014-11-19 18:13:03 +00:00
|
|
|
# install manpages in the correct place
|
|
|
|
Patch2: lensfun-0.3.0-mandir.patch
|
2014-11-17 17:13:37 +00:00
|
|
|
|
2013-03-23 18:45:25 +00:00
|
|
|
BuildRequires: cmake >= 2.8
|
2008-11-10 17:42:56 +00:00
|
|
|
BuildRequires: doxygen
|
2012-06-28 14:53:00 +00:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2014-11-17 17:13:37 +00:00
|
|
|
# for rst2man, if INSTALL_HELPER_SCRIPTS != OFF
|
|
|
|
BuildRequires: python-docutils
|
2008-11-10 17:42:56 +00:00
|
|
|
|
|
|
|
%description
|
2010-06-07 12:13:58 +00:00
|
|
|
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.
|
2008-11-10 17:42:56 +00:00
|
|
|
|
|
|
|
%package devel
|
2010-06-07 12:13:58 +00:00
|
|
|
Summary: Development toolkit for %{name}
|
|
|
|
License: LGPLv3
|
2012-06-28 14:53:00 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2010-06-07 12:13:58 +00:00
|
|
|
%description devel
|
|
|
|
This package contains library and header files needed to build applications
|
|
|
|
using lensfun.
|
2008-11-10 17:42:56 +00:00
|
|
|
|
2014-11-19 18:11:30 +00:00
|
|
|
%package tools
|
|
|
|
Summary: Tools for managing %{name} data
|
|
|
|
License: LGPLv3
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description tools
|
|
|
|
This package contains tools to fetch lens database updates and manage lens
|
|
|
|
adapters in lensfun.
|
|
|
|
|
2012-06-28 14:53:00 +00:00
|
|
|
|
2008-11-10 17:42:56 +00:00
|
|
|
%prep
|
2014-11-17 17:13:37 +00:00
|
|
|
%setup
|
|
|
|
|
|
|
|
%patch1 -p1 -b .INSTALL_HELPER_SCRIPTS
|
2014-11-19 18:13:03 +00:00
|
|
|
%patch2 -p1 -b .mandir
|
2012-06-28 14:53:00 +00:00
|
|
|
|
2008-11-10 17:42:56 +00:00
|
|
|
|
|
|
|
%build
|
2012-06-28 14:53:00 +00:00
|
|
|
|
|
|
|
mkdir -p %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
2014-11-17 17:13:37 +00:00
|
|
|
%{cmake} .. \
|
2012-06-28 14:53:00 +00:00
|
|
|
-DBUILD_DOC:BOOL=ON \
|
|
|
|
-DBUILD_TESTS:BOOL=OFF \
|
2014-11-19 18:13:53 +00:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
2014-11-17 17:49:38 +00:00
|
|
|
%{?sse} %{?sse2}
|
2012-06-28 14:53:00 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
make doc -C %{_target_platform}
|
2008-11-10 17:42:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2014-11-17 17:13:37 +00:00
|
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
2008-11-10 17:42:56 +00:00
|
|
|
|
2014-01-06 14:10:32 +00:00
|
|
|
## unpackaged files
|
|
|
|
# omit cmake-installed doxygen docs, we handle that manually
|
|
|
|
rm -rfv %{buildroot}%{_docdir}/%{name}-%{version}*
|
2014-11-19 18:11:30 +00:00
|
|
|
# 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.*
|
2014-01-06 14:10:32 +00:00
|
|
|
|
2008-11-10 17:42:56 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2012-06-28 14:53:00 +00:00
|
|
|
%doc README
|
|
|
|
%doc docs/cc-by-sa-3.0.txt docs/lgpl-3.0.txt
|
|
|
|
%doc docs/adobe-lens-profile.txt
|
2008-11-10 17:42:56 +00:00
|
|
|
%{_datadir}/lensfun/
|
2009-10-18 17:26:48 +00:00
|
|
|
%{_libdir}/liblensfun.so.0*
|
2008-11-10 17:42:56 +00:00
|
|
|
|
|
|
|
%files devel
|
2012-06-28 14:53:00 +00:00
|
|
|
%doc %{_target_platform}/doc_doxygen/*
|
|
|
|
%{_includedir}/lensfun/
|
2009-10-18 17:26:48 +00:00
|
|
|
%{_libdir}/liblensfun.so
|
2008-11-10 17:42:56 +00:00
|
|
|
%{_libdir}/pkgconfig/lensfun.pc
|
|
|
|
|
2014-11-19 18:11:30 +00:00
|
|
|
%files tools
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
2008-11-10 17:42:56 +00:00
|
|
|
|
|
|
|
%changelog
|
2015-05-13 13:19:12 +00:00
|
|
|
* Wed May 13 2015 Nils Philippsen <nils@redhat.com> - 0.3.1-1
|
|
|
|
- version 0.3.1 (with API/ABI changes)
|
|
|
|
- fix source URL (no tar.bz2 available)
|
|
|
|
|
2015-05-02 13:08:29 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.3.0-5
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2014-11-19 18:14:18 +00:00
|
|
|
* Wed Nov 19 2014 Nils Philippsen <nils@redhat.com> 0.3.0-4
|
2014-11-19 18:11:30 +00:00
|
|
|
- reenable helper scripts
|
2014-11-19 18:13:03 +00:00
|
|
|
- install man pages into their correct place
|
2014-11-19 18:13:53 +00:00
|
|
|
- correct typo
|
2014-11-19 18:11:30 +00:00
|
|
|
|
2014-11-17 17:49:38 +00:00
|
|
|
* Mon Nov 17 2014 Rex Dieter <rdieter@fedoraproject.org> 0.3.0-3
|
|
|
|
- enable sse only in %%ix86 x86_64, sse2 on x86_64, disable elsewhere
|
|
|
|
|
2014-11-17 17:13:37 +00:00
|
|
|
* Mon Nov 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 0.3.0-2
|
|
|
|
- -DINSTALL_HELPER_SCRIPTS=OFF (with patch)
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release (defaults to Debug otherwise)
|
|
|
|
- disable SSE2 on %%ix86 (fedora base i686 platform doesn't support it)
|
|
|
|
- use %%buildroot consistently
|
|
|
|
|
2014-11-17 13:12:48 +00:00
|
|
|
* Mon Nov 17 2014 Nils Philippsen <nils@redhat.com> - 0.3.0-1
|
|
|
|
- version 0.3.0
|
|
|
|
|
|
|
|
* Tue Nov 04 2014 Nils Philippsen <nils@redhat.com> - 0.3.0-1
|
2014-11-04 13:48:06 +00:00
|
|
|
- Lensfun moved from Berlios to SourceForge (#1159993)
|
|
|
|
|
2014-08-17 01:48:28 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 02:14:29 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-01-06 14:10:32 +00:00
|
|
|
* Mon Jan 06 2014 Rex Dieter <rdieter@fedoraproject.org> 0.2.8-1
|
|
|
|
- 0.2.8 (#1048784)
|
|
|
|
|
2013-08-03 04:28:40 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-19 21:33:54 +00:00
|
|
|
* Tue Mar 19 2013 Rex Dieter <rdieter@fedoraproject.org> 0.2.7-1
|
|
|
|
- 0.2.7
|
|
|
|
|
2013-02-14 03:50:43 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-25 08:46:39 +00:00
|
|
|
* Wed Jul 25 2012 Nils Philippsen <nils@redhat.com> - 0.2.6-3
|
|
|
|
- pkgconfig: fix cflags so lensfun.h is found
|
|
|
|
|
2012-07-19 18:59:19 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-28 14:53:00 +00:00
|
|
|
* Thu Jun 28 2012 Rex Dieter <rdieter@fedoraproject.org>
|
|
|
|
- 0.2.6-1
|
|
|
|
- lensfun-0.2.6 (#836156)
|
|
|
|
- use cmake
|
|
|
|
- use pkgconfig-style deps
|
|
|
|
|
2012-06-21 11:29:47 +00:00
|
|
|
* Thu Jun 21 2012 Nils Philippsen <nils@redhat.com> - 0.2.5-8
|
|
|
|
- don't modify doxygen configuration anymore as doxygen carries fixes now
|
|
|
|
(#831399)
|
|
|
|
|
2012-06-15 12:38:07 +00:00
|
|
|
* Fri Jun 15 2012 Nils Philippsen <nils@redhat.com> - 0.2.5-7
|
|
|
|
- multilib: don't embed creation dates in generated docs (#831399)
|
|
|
|
|
2012-01-10 14:56:57 +00:00
|
|
|
* Tue Jan 10 2012 Nils Philippsen <nils@redhat.com> - 0.2.5-6
|
|
|
|
- rebuild for gcc 4.7
|
|
|
|
|
2011-02-08 04:03:26 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-09-29 21:36:29 +00:00
|
|
|
* Wed Sep 29 2010 jkeating - 0.2.5-4
|
|
|
|
- Rebuilt for gcc bug 634757
|
|
|
|
|
2010-09-20 08:30:03 +00:00
|
|
|
* Mon Sep 20 2010 Nils Philippsen <nils@redhat.com> 0.2.5-3
|
|
|
|
- backport cpuid fixes (#631674)
|
|
|
|
|
2010-07-26 12:45:37 +00:00
|
|
|
* Mon Jul 26 2010 Dan Horák <dan[at]danny.cz> 0.2.5-2
|
|
|
|
- disable SSE vectorization on non x86 arches
|
|
|
|
|
2010-06-07 12:13:58 +00:00
|
|
|
* Mon Jun 07 2010 Nils Philippsen <nils@redhat.com> 0.2.5-1
|
|
|
|
- lensfun-0.2.5
|
|
|
|
- add CC-BY-SA to main package license tag for lens data
|
|
|
|
- don't ship GPLv3 text as nothing is licensed under it currently
|
|
|
|
- mark documentation files as such
|
|
|
|
- shorten summaries, expand package descriptions
|
|
|
|
|
2009-10-18 17:26:48 +00:00
|
|
|
* Sun Oct 18 2009 Rex Dieter <rdieter@fedoraproject.orG> 0.2.4-1
|
|
|
|
- lensfun-0.2.4 (#529506)
|
|
|
|
|
2009-07-25 05:04:14 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-25 12:54:51 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-12 20:36:45 +00:00
|
|
|
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.3-3
|
|
|
|
- rebuild for pkgconfig deps
|
|
|
|
|
2008-11-10 17:42:56 +00:00
|
|
|
* Mon Nov 10 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.3-2
|
|
|
|
- -devel: Requires: pkgconfig
|
|
|
|
|
|
|
|
* Mon Nov 10 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.3-1
|
|
|
|
- lensfun-0.2.3
|
|
|
|
- fix SOURCE Url
|
|
|
|
- configure --target=..generic
|
|
|
|
|
|
|
|
* Mon Oct 13 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.2b-3
|
|
|
|
- BR: doxygen
|
|
|
|
|
|
|
|
* Mon Oct 13 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.2b-2
|
|
|
|
- fix subpkg deps
|
|
|
|
|
|
|
|
* Sun Sep 28 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.2b-1
|
|
|
|
- adapt for fedora
|
|
|
|
|
|
|
|
* Tue Jun 24 2008 Helio Chissini de Castro <helio@mandriva.com> 0.2.2b-1mdv2009.0
|
|
|
|
+ Revision: 228769
|
|
|
|
- Added missing buildrequires
|
|
|
|
- import lensfun
|