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