From b922afb46c32860adf3cb5ee37ded92f41820d7f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:58:11 +0100 Subject: [PATCH] legacy package [release 0.3.95-3mamba;Thu Mar 09 2023] --- README.md | 3 + liblensfun-0.2.6-pkgconfig.patch | 25 ++++++ liblensfun2.spec | 141 +++++++++++++++++++++++++++++++ 3 files changed, 169 insertions(+) create mode 100644 liblensfun-0.2.6-pkgconfig.patch create mode 100644 liblensfun2.spec diff --git a/README.md b/README.md index d9b3db7..2920ccd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # liblensfun2 +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. + diff --git a/liblensfun-0.2.6-pkgconfig.patch b/liblensfun-0.2.6-pkgconfig.patch new file mode 100644 index 0000000..1724da9 --- /dev/null +++ b/liblensfun-0.2.6-pkgconfig.patch @@ -0,0 +1,25 @@ +--- libs/lensfun/CMakeLists.txt.pkgconfig 2012-02-12 19:19:39.000000000 +0800 ++++ libs/lensfun/CMakeLists.txt 2012-09-08 15:35:41.654073909 +0800 +@@ -26,3 +26,11 @@ + RUNTIME DESTINATION ${BINDIR} + LIBRARY DESTINATION ${LIBDIR} + ARCHIVE DESTINATION ${LIBDIR}) ++ ++set(CONF_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO}) ++set(CONF_LIBDIR ${LIBDIR}) ++set(CONF_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include) ++ ++configure_file(lensfun.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lensfun.pc) ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lensfun.pc ++ DESTINATION ${LIBDIR}/pkgconfig) +--- CMakeLists.txt.pkgconfig 2012-11-16 16:43:44.642505859 -0500 ++++ CMakeLists.txt 2012-11-16 16:50:00.503317741 -0500 +@@ -125,7 +125,7 @@ + ENDIF() + + # install include files +-INSTALL(FILES ${CMAKE_BINARY_DIR}/lensfun.h DESTINATION ${INCLUDEDIR}/lensfun) ++INSTALL(FILES ${CMAKE_BINARY_DIR}/lensfun.h DESTINATION ${INCLUDEDIR}) + IF(NOT HAVE_REGEX_H) + INSTALL(FILES include/regex/regex.h DESTINATION ${INCLUDEDIR}/regex) + ENDIF() diff --git a/liblensfun2.spec b/liblensfun2.spec new file mode 100644 index 0000000..0a63af5 --- /dev/null +++ b/liblensfun2.spec @@ -0,0 +1,141 @@ +Name: liblensfun2 +Version: 0.3.95 +Release: 3mamba +Summary: A library to rectify the defects introduced by your photographic equipment +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://lensfun.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/lensfun/%{version}/lensfun-%{version}.tar.gz +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 +#Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release} + +%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} + +%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. + +%package tools +Group: Applications/Databases +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%package -n python-lensfun2 +Group: System/Libraries/Python +Summary: Pythno bindings for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: python3 + +%description -n python-lensfun2 +This package contains the python binding for %{name}. + +%debug_package + +%prep +%setup -q -n lensfun-%{version} + +%build +%cmake -d build \ +\ +%ifarch arm + -DBUILD_FOR_SSE=OFF \ + -DBUILD_FOR_SSE2=OFF +%endif + +%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/version_2 +%{_datadir}/lensfun/version_2/* +%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 + +%files -n python-lensfun2 +%defattr(-,root,root) +%{python3_sitelib}/lensfun-%{version}-py*.egg +#%{python3_sitelib}/lensfun/* + +%files tools +%defattr(-,root,root) +%{_bindir}/g-lensfun-update-data +%{_bindir}/lensfun-add-adapter +%{_bindir}/lensfun-update-data +%{_bindir}/lensfun-convert-lcp + +%changelog +* Thu Mar 09 2023 Silvan Calarco 0.3.95-3mamba +- legacy package + +* Mon Feb 24 2020 Silvan Calarco 0.3.95-2mamba +- liblensfun: require lliblensfun-tools + +* Sun Feb 02 2020 Automatic Build System 0.3.95-1mamba +- automatic version update by autodist + +* Tue Feb 16 2016 Automatic Build System 0.3.2-1mamba +- automatic version update by autodist + +* Wed Aug 26 2015 Silvan Calarco 0.3.1-1mamba +- update to 0.3.1 + +* Thu Oct 16 2014 Silvan Calarco 0.3.0-1mamba +- update to 0.3.0 + +* Fri Dec 06 2013 Automatic Build System 0.2.8-1mamba +- automatic version update by autodist + +* Fri Apr 19 2013 Automatic Build System 0.2.7-1mamba +- automatic version update by autodist + +* Tue Feb 05 2013 Silvan Calarco 0.2.6-2mamba +- patched to add pkgconfig support (required by rawstudio) + +* Mon Jan 07 2013 Automatic Build System 0.2.6-1mamba +- automatic version update by autodist + +* Wed Apr 14 2010 Automatic Build System 0.2.5-1mamba +- automatic update by autodist + +* Fri Oct 16 2009 Automatic Build System 0.2.4-1mamba +- automatic update by autodist + +* Fri Mar 20 2009 Davide Madrisan 0.2.3-1mamba +- package created by autospec