1 Summary: Camera lens database with image correction support
2 Summary(pl.UTF-8): Baza danych obiektywów z funkcją korekcji zdjęć
6 License: LGPL v3 (library), CC-BY-SA v3.0 (lens database)
8 Source0: http://downloads.sourceforge.net/lensfun/%{name}-%{version}.tar.gz
9 # Source0-md5: 247e59a0812ec451f6cd0d20b3379cb5
10 Patch0: 0060-Various-CMake-patches-from-the-mailing-list.patch
11 URL: http://lensfun.sourceforge.net/
12 BuildRequires: cmake >= 2.8
13 BuildRequires: docutils
14 BuildRequires: doxygen >= 1.5.0
15 BuildRequires: glib2-devel >= 2.0.0
16 BuildRequires: libpng-devel >= 1.0
17 BuildRequires: libstdc++-devel
18 BuildRequires: make >= 3.81
19 BuildRequires: pkgconfig
21 BuildRequires: rpmbuild(macros) >= 1.605
22 BuildRequires: zlib-devel >= 1.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The project provides a database of photographic lenses and a library
27 that allows advanced access to the database including functions to
28 correct images based on intimate knowledge of lens characteristics and
31 %description -l pl.UTF-8
32 Projekt dostarcza bazę danych obiektywów oraz bibliotekę pozwalającą
33 na dostęp do bazy i dodatkowo oferującą korekcję zdjęć w oparciu o
34 szczegółową charakterystykę obiektywu.
37 Summary: lensfun library header files
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lensfun
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 lensfun library header files.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki lensfun.
50 Summary: lensfun API documentation
51 Summary(pl.UTF-8): Dokumentacja API biblioteki lensfun
53 %if "%{_rpmversion}" >= "5"
58 lensfun API documentation.
60 %description apidocs -l pl.UTF-8
61 Dokumentacja API biblioteki lensfun.
71 -DBUILD_AUXFUN:BOOL=ON \
73 -DBUILD_TESTS:BOOL=OFF \
74 -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
79 rm -rf $RPM_BUILD_ROOT
80 %{__make} -C build install/fast \
81 DESTDIR=$RPM_BUILD_ROOT
83 # packaged as %doc in -apidocs
84 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 %defattr(644,root,root,755)
94 %doc ChangeLog README.md docs/{cc-by-sa-3.0,manual-main,mounts}.txt
95 %attr(755,root,root) %{_libdir}/liblensfun.so.*.*.*
96 %attr(755,root,root) %ghost %{_libdir}/liblensfun.so.1
97 %attr(755,root,root) %{_bindir}/g-lensfun-update-data
98 %attr(755,root,root) %{_bindir}/lensfun-add-adapter
99 %attr(755,root,root) %{_bindir}/lensfun-update-data
100 %{_mandir}/man1/g-lensfun-update-data.1*
101 %{_mandir}/man1/lensfun-add-adapter.1*
102 %{_mandir}/man1/lensfun-update-data.1*
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/liblensfun.so
108 %{_includedir}/lensfun
109 %{_pkgconfigdir}/lensfun.pc
112 %defattr(644,root,root,755)
113 %doc build/doc_doxygen/*