]> git.pld-linux.org Git - packages/lensfun.git/blob - lensfun.spec
fde402466daaed9c55891f532f4bde59fc785fcf
[packages/lensfun.git] / lensfun.spec
1 Summary:        Camera lens database with image correction support
2 Summary(pl.UTF-8):      Baza danych obiektywów z funkcją korekcji zdjęć
3 Name:           lensfun
4 Version:        0.3.2
5 Release:        2
6 License:        LGPL v3 (library), CC-BY-SA v3.0 (lens database)
7 Group:          Libraries
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
20 BuildRequires:  python
21 BuildRequires:  rpmbuild(macros) >= 1.605
22 BuildRequires:  zlib-devel >= 1.0
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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
29 calibration data.
30
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.
35
36 %package devel
37 Summary:        lensfun library header files
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki lensfun
39 License:        LGPL v3
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42
43 %description devel
44 lensfun library header files.
45
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki lensfun.
48
49 %package apidocs
50 Summary:        lensfun API documentation
51 Summary(pl.UTF-8):      Dokumentacja API biblioteki lensfun
52 Group:          Documentation
53 %if "%{_rpmversion}" >= "5"
54 BuildArch:      noarch
55 %endif
56
57 %description apidocs
58 lensfun API documentation.
59
60 %description apidocs -l pl.UTF-8
61 Dokumentacja API biblioteki lensfun.
62
63 %prep
64 %setup -q
65 %patch0 -p1
66
67 %build
68 install -d build
69 cd build
70 %cmake .. \
71         -DBUILD_AUXFUN:BOOL=ON \
72         -DBUILD_DOC:BOOL=ON \
73         -DBUILD_TESTS:BOOL=OFF \
74         -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 %{__make} -C build install/fast \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 # packaged as %doc in -apidocs
84 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
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*
103 %{_datadir}/lensfun
104
105 %files devel
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/liblensfun.so
108 %{_includedir}/lensfun
109 %{_pkgconfigdir}/lensfun.pc
110
111 %files apidocs
112 %defattr(644,root,root,755)
113 %doc build/doc_doxygen/*
This page took 0.052783 seconds and 2 git commands to generate.