1 Summary: QuiteInsane-Plugin - Qt plugin to access scanners
2 Summary(pl.UTF-8): QuiteInsane-Plugin - wtyczka Qt umożliwiająca dostęp do skanerów
3 Name: qt-plugin-quiteinsane
8 Source0: http://dl.sourceforge.net/quiteinsane/quiteinsane_plugin-%{version}.tar.gz
9 # Source0-md5: f69678402148ada83f7e59938384a2c9
10 Patch0: %{name}-setstyle.patch
11 URL: http://quiteinsane.sourceforge.net/index.shtml
12 BuildRequires: qt-devel >= 1:3.0
13 BuildRequires: sane-backends-devel >= 1.0.3
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 The intention behind the QuiteInsane-Plugin is to provide a
18 SANE-frontend as a plugin, which can be easily integrated in Qt based
19 applications. If you wonder, what "easy" means in this context, I can
20 assure you, that it's not much more than copying a few lines of code
21 and doing some small modifications. You have to know nothing about the
22 SANE library and it's API.
24 %description -l pl.UTF-8
25 Celem QuiteInsane-Plugin jest dostarczenie frontendu do SANE jako
26 wtyczki, którą można łatwo zintegrować w aplikację opartą na Qt.
27 "Łatwo" w tym kontekście oznacza nie więcej niż skopiowanie kilku
28 linii kodu i uczynienie paru małych modyfikacji. Nie trzeba nic
29 wiedzieć o bibliotece SANE ani jej API.
32 %setup -q -n quiteinsane_plugin-%{version}
36 qmake quiteinsaneplugin.pro -o Makefile \
37 QMAKE_CXX="%{__cxx}" \
38 QMAKE_LINK="%{__cxx}" \
39 QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \
42 %{__make} sub-quiteinsaneplugin \
44 LFLAGS="%{rpmldflags} -shared -Wl,-soname,libquiteinsane_plugin_mt.so" \
45 TARGET="libquiteinsane_plugin_mt.so"
47 %{__make} sub-plugintest \
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt
54 install quiteinsaneplugin/libquiteinsane_plugin_mt.so \
55 $RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc AUTHORS TODO doc/index.html
63 %attr(755,root,root) %{_libdir}/qt/plugins-mt/lib*.so