]> git.pld-linux.org Git - SPECS.git/blob - quiteinsane.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / quiteinsane.spec
1 #
2 %bcond_with     kde     # integrate with KDE to use KDE styles
3 #
4 Summary:        QuiteInsane - Qt-based graphical frontend for SANE
5 Summary(pl.UTF-8):      QuiteInsane - oparty na Qt graficzny interfejs do SANE
6 Name:           quiteinsane
7 Version:        0.10
8 Release:        1
9 License:        GPL
10 Group:          X11/Applications/Graphics
11 Source0:        http://dl.sourceforge.net/quiteinsane/%{name}-%{version}.tar.gz
12 # Source0-md5:  f07006e5de95a6c326166696638ca3b5
13 Source1:        http://dl.sourceforge.net/quiteinsane/%{name}_cs.qm.gz
14 # Source1-md5:  685234aba48c8bf58b07c581df98a836
15 Source2:        http://dl.sourceforge.net/quiteinsane/%{name}_fr.qm.gz
16 # Source2-md5:  68f9f2be094903df01d6c2134e806cce
17 Patch0:         %{name}-qtstyle.patch
18 URL:            http://quiteinsane.sourceforge.net/index.shtml
19 %{?with_kde:BuildRequires:      kdelibs-devel}
20 BuildRequires:  qt-devel >= 1:3.0.1
21 BuildRequires:  sane-backends-devel >= 1.0.3
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 QuiteInsane is a graphical frontend for SANE ("Scanner Access Now
26 Easy"). The intention behind SANE is to provide a standard application
27 programming interface to access raster scanner hardware.
28
29 %description -l pl.UTF-8
30 QuiteInsane to graficzny interfejs do SANE (projektu mającego na celu
31 dostarczenie standardowego interfejsu programistycznego do dostępu do
32 skanerów rastrowych).
33
34 %prep
35 %setup -q
36 %patch0 -p1
37
38 %build
39 %configure \
40         --enable-mt \
41         %{?with_kde:--enable-kde-app}
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 gzip -dc %{SOURCE1} > $RPM_BUILD_ROOT%{_datadir}/%{name}/locale/%{name}_cs.qm
51 gzip -dc %{SOURCE2} > $RPM_BUILD_ROOT%{_datadir}/%{name}/locale/%{name}_fr.qm
52
53 # TODO: check if our qt can read translations from its own de/LC_MESSAGES/qt.qm
54 #rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/locale/qt_de.qm
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc AUTHORS BUGS ChangeLog PROBLEMS README TODO
62 %attr(755,root,root) %{_bindir}/*
63 %dir %{_datadir}/%{name}
64 %{_datadir}/%{name}/doc
65 %dir %{_datadir}/%{name}/locale
66 %lang(cs) %{_datadir}/%{name}/locale/*cs.qm
67 %lang(de) %{_datadir}/%{name}/locale/*de.qm
68 %lang(es) %{_datadir}/%{name}/locale/*es.qm
69 %lang(fr) %{_datadir}/%{name}/locale/*fr.qm
70 %lang(ru) %{_datadir}/%{name}/locale/*ru.qm
This page took 0.289093 seconds and 3 git commands to generate.