0683244fa78947dd1a068a1325d99da24a278aad
[packages/kde4-kfilemetadata.git] / kde4-kfilemetadata.spec
1 %define         _state          stable
2 %define         orgname         kfilemetadata
3 %define         qt_ver          4.8.3
4
5 Summary:        A library for extracting file metadata
6 Summary(pl.UTF-8):      Biblioteka do wydobywania metadanych plików
7 Name:           kde4-kfilemetadata
8 Version:        4.14.3
9 Release:        5
10 License:        LGPL v2.1 or LGPL v3
11 Group:          X11/Applications
12 Source0:        http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
13 # Source0-md5:  2e7143fd470bf84ac05475871119d9eb
14 URL:            http://www.kde.org/
15 BuildRequires:  QtCore-devel >= %{qt_ver}
16 BuildRequires:  ebook-tools-devel
17 BuildRequires:  exiv2-devel >= 0.21
18 BuildRequires:  ffmpeg-devel >= 1.0
19 BuildRequires:  kde4-kdegraphics-mobipocket-devel >= %{version}
20 BuildRequires:  kde4-kdelibs-devel >= %{version}
21 BuildRequires:  pkgconfig
22 BuildRequires:  poppler-qt4-devel >= 0.12.1
23 BuildRequires:  taglib-devel
24 Requires:       exiv2-libs >= 0.21
25 Requires:       ffmpeg-libs >= 1.0
26 Requires:       kde4-kdelibs >= %{version}
27 Requires:       poppler-qt4 >= 0.12.1
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 A library for extracting file metadata.
32
33 %description -l pl.UTF-8
34 Biblioteka do wydobywania metadanych plików.
35
36 %package devel
37 Summary:        Developer files for KFileMetaData library
38 Summary(pl.UTF-8):      Pliki programistyczne biblioteki KFileMetaData
39 Group:          X11/Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       QtCore-devel >= %{qt_ver}
42 Requires:       kde4-kdelibs-devel >= %{version}
43
44 %description devel
45 KFileMetaData development files.
46
47 %description devel -l pl.UTF-8
48 Pliki programistyczne biblioteki KFileMetaData.
49
50 %prep
51 %setup -q -n %{orgname}-%{version}
52
53 %build
54 install -d build
55 cd build
56 %cmake \
57         -DHTML_INSTALL_DIR=%{_kdedocdir} \
58         -DKDE_DISTRIBUTION_TEXT="PLD-Linux" \
59         -DKDE4_ENABLE_FINAL=OFF \
60         ../
61
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 %{__make} -C build install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post   -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
75
76 %files
77 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_libdir}/libkfilemetadata.so.*.*.*
79 %attr(755,root,root) %ghost %{_libdir}/libkfilemetadata.so.4
80 %attr(755,root,root) %{_libdir}/kde4/kfilemetadata_*.so
81 %{_datadir}/kde4/services/kfilemetadata_*.desktop
82 %{_datadir}/kde4/servicetypes/kfilemetadata*.desktop
83
84 %files devel
85 %defattr(644,root,root,755)
86 %{_includedir}/kfilemetadata
87 %attr(755,root,root) %{_libdir}/libkfilemetadata.so
88 %{_libdir}/cmake/KFileMetaData
This page took 0.048026 seconds and 2 git commands to generate.