]> git.pld-linux.org Git - SPECS.git/blob - qt-plugin-quiteinsane.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / qt-plugin-quiteinsane.spec
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
4 Version:        0.2
5 Release:        1
6 License:        GPL
7 Group:          Libraries
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)
15
16 %description
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.
23
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.
30
31 %prep
32 %setup -q -n quiteinsane_plugin-%{version}
33 %patch0 -p1
34
35 %build
36 qmake quiteinsaneplugin.pro -o Makefile \
37         QMAKE_CXX="%{__cxx}" \
38         QMAKE_LINK="%{__cxx}" \
39         QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \
40         QMAKE_RPATH=
41
42 %{__make} sub-quiteinsaneplugin \
43         QTDIR=%{_prefix} \
44         LFLAGS="%{rpmldflags} -shared -Wl,-soname,libquiteinsane_plugin_mt.so" \
45         TARGET="libquiteinsane_plugin_mt.so"
46
47 %{__make} sub-plugintest \
48         QTDIR=%{_prefix}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt
53
54 install quiteinsaneplugin/libquiteinsane_plugin_mt.so \
55         $RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc AUTHORS TODO doc/index.html
63 %attr(755,root,root) %{_libdir}/qt/plugins-mt/lib*.so
This page took 0.338495 seconds and 3 git commands to generate.