1 |
Name: kipi-plugins |
2 |
Version: 1.8.0 |
3 |
Release: %mkrel 1 |
4 |
Summary: KDE image Interface Plugins |
5 |
License: GPLv2+ |
6 |
Group: System/Libraries |
7 |
Source0: http://downloads.sourceforge.net/kipi/%{name}-%{version}.tar.bz2 |
8 |
URL: http://www.kipi-plugins.org |
9 |
Epoch: 1 |
10 |
Requires: mjpegtools |
11 |
Requires: vorbis-tools |
12 |
Requires: mpg123 |
13 |
Requires: imagemagick >= 5.5.4 |
14 |
Suggests: hugin |
15 |
BuildRequires: kdepimlibs4-devel |
16 |
BuildRequires: libkipi-devel |
17 |
BuildRequires: libgpod-devel |
18 |
BuildRequires: kdegraphics4-devel |
19 |
BuildRequires: tiff-devel |
20 |
BuildRequires: libMagick-devel |
21 |
BuildRequires: libxslt-devel |
22 |
BuildRequires: libgphoto-devel |
23 |
BuildRequires: imlib2-devel |
24 |
BuildRequires: libxml2-utils |
25 |
BuildRequires: libmesaglu-devel |
26 |
BuildRequires: opencv-devel |
27 |
Obsoletes: %{_lib}kipi-plugins0 < 1:0.2.0-0.824094.3 |
28 |
|
29 |
%description |
30 |
The library of the KDE Image Plugin Interface. |
31 |
|
32 |
Libkipi allows image applications to use a plugin architecture |
33 |
for additional functionality such as: RawConverter, SlideShow, |
34 |
ImagesGallery, HTMLExport, PrintAssistant... |
35 |
|
36 |
%files -f %name.lang |
37 |
%defattr(-,root,root) |
38 |
%doc README |
39 |
%{_kde_bindir}/dngconverter |
40 |
%{_kde_bindir}/dnginfo |
41 |
%{_kde_bindir}/scangui |
42 |
%{_kde_bindir}/expoblending |
43 |
%{_kde_datadir}/apps/* |
44 |
%{_kde_libdir}/kde4/kipiplugin_* |
45 |
%{_kde_iconsdir}/*/*/*/* |
46 |
%{_kde_datadir}/kde4/services/kipiplugin_* |
47 |
|
48 |
#---------------------------------------------------------------------------- |
49 |
|
50 |
%define kipiplugins_major 1 |
51 |
%define lib_name %mklibname kipiplugins %kipiplugins_major |
52 |
|
53 |
%package -n %lib_name |
54 |
Summary: Library files for %{name} |
55 |
Group: System/Libraries |
56 |
Requires: %{name} = %{epoch}:%{version}-%{release} |
57 |
Conflicts: %{_lib}kipi-plugins0 |
58 |
|
59 |
%description -n %lib_name |
60 |
Library files for %{name} |
61 |
|
62 |
%files -n %lib_name |
63 |
%defattr(-,root,root) |
64 |
%{_kde_libdir}/libkipiplugins.so.%{kipiplugins_major}* |
65 |
|
66 |
#---------------------------------------------------------------------------- |
67 |
|
68 |
%package devel |
69 |
Summary: Development files for %{name} |
70 |
Group: Development/C |
71 |
Requires: %{lib_name} = %{epoch}:%{version}-%{release} |
72 |
Obsoletes: %{_lib}kipi-plugins-devel < 1:0.2.0 |
73 |
|
74 |
%description devel |
75 |
Development files for %{name} |
76 |
|
77 |
%files devel |
78 |
%defattr(-,root,root) |
79 |
%{_kde_libdir}/*.so |
80 |
|
81 |
#---------------------------------------------------------------------------- |
82 |
|
83 |
%prep |
84 |
%setup -q -n %{name}-%{version} |
85 |
|
86 |
%build |
87 |
%cmake_kde4 |
88 |
%make |
89 |
|
90 |
%install |
91 |
rm -rf %buildroot |
92 |
%makeinstall_std -C build |
93 |
|
94 |
install -d %{buildroot}/%{_kde_datadir}/doc/%{name}/htmlexport/ |
95 |
install -d %{buildroot}/%{_kde_datadir}/doc/%{name}/printimages/ |
96 |
install -m644 %{buildroot}/%{_kde_datadir}/apps/kipiplugin_htmlexport/THEME_HOWTO -D %{buildroot}/%{_kde_datadir}/doc/%{name}/htmlexport/THEME_HOWTO |
97 |
install -m644 %{buildroot}/%{_kde_datadir}/apps/kipiplugin_printimages/TEMPLATE_HOWTO -D %{buildroot}/%{_kde_datadir}/doc/%{name}/printimages/TEMPLATE_HOWTO |
98 |
|
99 |
#removing wrong files |
100 |
rm -f %{buildroot}/%{_kde_datadir}/apps/kipiplugin_htmlexport/THEME_HOWTO |
101 |
rm -f %{buildroot}/%{_kde_datadir}/apps/kipiplugin_printimages/TEMPLATE_HOWTO |
102 |
rm -f %{buildroot}/%{_kde_datadir}/applications/kde4/*.desktop |
103 |
|
104 |
%find_lang %name --all-name |
105 |
|
106 |
%clean |
107 |
rm -rf %buildroot |