]> git.pld-linux.org Git - packages/brscan.git/blob - brscan.spec
- pl
[packages/brscan.git] / brscan.spec
1 # TODO: place SANE drivers in sane-backend-* package
2 Summary:        Brother scanner driver
3 Summary(pl.UTF-8):      Sterownik do skanerów Brother
4 Name:           brscan
5 Version:        0.2.3
6 Release:        1
7 License:        GPL v2
8 Group:          Applications
9 Source0:        http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/sane_source/%{name}-src-%{version}.tar.gz
10 # Source0-md5:  99a7f21fc15661690b296023253bcca6
11 Patch0:         %{name}-fixes.patch
12 URL:            http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libtool
16 BuildRequires:  ncurses-devel
17 Requires:       sane-backends
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Scanner driver for Brother MFC printers, both USB and network.
22
23 %description -l pl.UTF-8
24 Sterownik skanera dla drukarek Brother MFC, zarówno USB jak i
25 sieciowych.
26
27 %prep
28 %setup -q -n %{name}-src-%{version}
29 %patch0 -p1
30
31 %build
32 cd brscan
33 rm configure acinclude.m4
34 %{__libtoolize}
35 %{__aclocal}
36 %{__autoconf}
37 #%%{__autoheader}
38 #%%{__automake}
39 %configure
40 %{__make} -C lib
41 %{__make} -C netconfig
42 %{__make} -C sanei
43 %{__make} -C backend_brscan
44 %{__make} -C backend_brscan2
45
46 #%{__make} \
47 #       CFLAGS="%{rpmcflags}" \
48 #       LDFLAGS="%{rpmldflags}"
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}/sane}
53
54 cd brscan
55 cd backend_brscan
56 libtool --mode=install install libsane-brother.la $RPM_BUILD_ROOT%{_libdir}/sane
57 cd ..
58 cd backend_brscan2
59 libtool --mode=install install libsane-brother2.la $RPM_BUILD_ROOT%{_libdir}/sane
60 cd ..
61 cd netconfig
62 libtool --mode=install install brsaneconfig $RPM_BUILD_ROOT%{_sbindir}
63 libtool --mode=install install brsaneconfig2 $RPM_BUILD_ROOT%{_sbindir}
64 cd ..
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_sbindir}/brsaneconfig
75 %attr(755,root,root) %{_sbindir}/brsaneconfig2
76 %attr(755,root,root) %{_libdir}/sane/lib*.so*
This page took 0.082882 seconds and 4 git commands to generate.