]> git.pld-linux.org Git - packages/brscan.git/blob - brscan.spec
- added
[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 Requires:       sane-backends
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Scanner driver for Brother MFC printers, both USB and network.
20
21 %prep
22 %setup -q -n %{name}-src-%{version}
23 %patch0 -p1
24
25 %build
26 cd brscan
27 rm configure acinclude.m4
28 %{__libtoolize}
29 %{__aclocal}
30 %{__autoconf}
31 #%%{__autoheader}
32 #%%{__automake}
33 %configure
34 cd lib
35 %{__make}
36 cd ..
37 cd netconfig
38 %{__make}
39 cd ..
40 cd sanei
41 %{__make}
42 cd ..
43 cd backend_brscan
44 %{__make}
45 cd ..
46 cd backend_brscan2
47 %{__make}
48 cd ..
49
50 #%{__make} \
51 #       CFLAGS="%{rpmcflags}" \
52 #       LDFLAGS="%{rpmldflags}"
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 # create directories if necessary
57 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}/sane}
58 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59
60 cd brscan
61 cd backend_brscan
62 libtool --mode=install install libsane-brother.la $RPM_BUILD_ROOT%{_libdir}/sane/
63 cd ..
64 cd backend_brscan2
65 libtool --mode=install install libsane-brother2.la $RPM_BUILD_ROOT%{_libdir}/sane/
66 cd ..
67 cd netconfig
68 libtool --mode=install install brsaneconfig $RPM_BUILD_ROOT%{_sbindir}/
69 libtool --mode=install install brsaneconfig2 $RPM_BUILD_ROOT%{_sbindir}/
70 cd ..
71
72
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %{_libdir}/sane/lib*.so
83 %attr(755,root,root) %{_libdir}/sane/lib*.so.*.*.*
84 %attr(755,root,root) %{_sbindir}/brsaneconfig
85 %attr(755,root,root) %{_sbindir}/brsaneconfig2
This page took 0.311334 seconds and 4 git commands to generate.