2024-01-06 04:58:02 +01:00
|
|
|
Name: liblensfun
|
2024-01-06 04:58:03 +01:00
|
|
|
Epoch: 1
|
|
|
|
Version: 0.3.3
|
|
|
|
Release: 1mamba
|
2024-01-06 04:58:02 +01:00
|
|
|
Summary: A library to rectify the defects introduced by your photographic equipment
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 04:58:03 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://lensfun.sourceforge.net/
|
|
|
|
Source: https://github.com/lensfun/lensfun.git/v%{version}/lensfun-%{version}.tar.bz2
|
2024-01-06 04:58:02 +01:00
|
|
|
Patch0: liblensfun-0.2.6-pkgconfig.patch
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libglib-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
License: LGPL
|
2024-01-06 04:58:02 +01:00
|
|
|
Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:58:03 +01:00
|
|
|
Provides: liblensfun1
|
|
|
|
Obsoletes: liblensfun1 < 0.3.33
|
2024-01-06 04:58:02 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The goal of the lensfun library is to provide a open source database of photographic lenses and their characteristics.
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:58:03 +01:00
|
|
|
Provides: liblensfun1-devel
|
|
|
|
Obsoletes: liblensfun1-devel < 0.3.33
|
2024-01-06 04:58:02 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The goal of the lensfun library is to provide a open source database of photographic lenses and their characteristics.
|
|
|
|
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.
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
%package tools
|
|
|
|
Group: Applications/Databases
|
|
|
|
Summary: Utility applications for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:58:03 +01:00
|
|
|
Provides: liblensfun1-tools
|
|
|
|
Obsoletes: liblensfun1-tools < 0.3.33
|
2024-01-06 04:58:02 +01:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package contains utility applications for %{name}.
|
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
%package -n python-lensfun
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Summary: Pythno bindings for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: python3
|
|
|
|
|
|
|
|
%description -n python-lensfun
|
|
|
|
This package contains the python binding for %{name}.
|
|
|
|
|
2024-01-06 04:58:03 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n lensfun-%{version}
|
2024-01-06 04:58:03 +01:00
|
|
|
if [ "%{version}" == "0.3.95" ]; then
|
|
|
|
echo "ERROR: lensfun 0.3.95 is an old version packaged as liblensfun2, will not update liblensfun package."
|
|
|
|
exit 1
|
|
|
|
fi
|
2024-01-06 04:58:02 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 04:58:02 +01:00
|
|
|
%cmake -d build \
|
|
|
|
\
|
|
|
|
%ifarch arm
|
|
|
|
-DBUILD_FOR_SSE=OFF \
|
|
|
|
-DBUILD_FOR_SSE2=OFF
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/liblensfun.so.*
|
|
|
|
%dir %{_datadir}/lensfun
|
|
|
|
%{_datadir}/lensfun/*
|
|
|
|
%doc docs/gpl-3.0.txt
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/lensfun
|
|
|
|
%{_includedir}/lensfun/lensfun.h
|
|
|
|
%{_libdir}/liblensfun.so
|
|
|
|
%{_libdir}/pkgconfig/lensfun.pc
|
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
%files -n python-lensfun
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 04:58:03 +01:00
|
|
|
%{python3_sitelib}/lensfun-%{version}-py*.egg
|
|
|
|
#%{python3_sitelib}/lensfun/*
|
2024-01-06 04:58:02 +01:00
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
%files tools
|
2024-01-06 04:58:02 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 04:58:02 +01:00
|
|
|
%{_bindir}/g-lensfun-update-data
|
|
|
|
%{_bindir}/lensfun-add-adapter
|
|
|
|
%{_bindir}/lensfun-update-data
|
2024-01-06 04:58:03 +01:00
|
|
|
#%{_bindir}/lensfun-convert-lcp
|
2024-01-06 04:58:02 +01:00
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
%changelog
|
2024-01-06 04:58:03 +01:00
|
|
|
* Thu Mar 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.3-1mamba
|
|
|
|
- update to 0.3.3
|
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
* Mon Feb 24 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.95-2mamba
|
|
|
|
- liblensfun: require lliblensfun-tools
|
|
|
|
|
|
|
|
* Sun Feb 02 2020 Automatic Build System <autodist@mambasoft.it> 0.3.95-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
* Tue Feb 16 2016 Automatic Build System <autodist@mambasoft.it> 0.3.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
* Wed Aug 26 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.1-1mamba
|
|
|
|
- update to 0.3.1
|
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
* Thu Oct 16 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-1mamba
|
|
|
|
- update to 0.3.0
|
|
|
|
|
2024-01-06 04:58:02 +01:00
|
|
|
* Fri Dec 06 2013 Automatic Build System <autodist@mambasoft.it> 0.2.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Apr 19 2013 Automatic Build System <autodist@mambasoft.it> 0.2.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Feb 05 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.6-2mamba
|
|
|
|
- patched to add pkgconfig support (required by rawstudio)
|
|
|
|
|
|
|
|
* Mon Jan 07 2013 Automatic Build System <autodist@mambasoft.it> 0.2.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Apr 14 2010 Automatic Build System <autodist@mambasoft.it> 0.2.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 16 2009 Automatic Build System <autodist@mambasoft.it> 0.2.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Mar 20 2009 Davide Madrisan <davide.madrisan@gmail.com> 0.2.3-1mamba
|
|
|
|
- package created by autospec
|