]> git.pld-linux.org Git - packages/cyc_async.git/blob - cyc_async.spec
- massive attack: adding Source-md5
[packages/cyc_async.git] / cyc_async.spec
1 Summary:        Utilities for Cyclades-Z and Cyclom-Y asynchronous multiport boards
2 Summary(pl):    Narzêdzia dla asynchronicznych kart wieloportowych Cyclades-Z i Cyclom-Y
3 Name:           cyc_async
4 Version:        6.6.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/Networking
8 # "stable": ftp://ftp.cyclades.com/pub/cyclades/async/linux/%{name}-659.tgz
9 Source0:        ftp://ftp.cyclades.com/pub/cyclades/async/linux/beta/%{name}-%{version}.tgz
10 # Source0-md5:  12b875027b32842623052b4dba423d17
11 Patch0:         %{name}-system-libpci.patch
12 Patch1:         %{name}-cyzfirm-path.patch
13 URL:            http://www.cyclades.com/
14 BuildRequires:  pciutils-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Utilities for Cyclades-Z and Cyclom-Y asynchronous multiport boards.
19
20 %description -l pl
21 Narzêdzia dla asynchronicznych kart wieloportowych Cyclades-Z i
22 Cyclom-Y.
23
24 %prep
25 %setup -q
26 %patch0 -p1
27 %patch1 -p1
28
29 %build
30 cd common
31 # avoid using precompiled versions
32 rm -f pciutils.h cyclades-z/{lib,pciutils.h}
33 %{__make} clean
34 %{__make} clean -C cyclades-z
35 %{__make} clean -C cyclom-y
36
37 %{__make} \
38         CC="%{__cc}" \
39         OPT="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/include/pci"
40
41 %{__make} -C cyclades-z \
42         CC="%{__cc}" \
43         OPT="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/include/pci"
44
45 %{__make} -C cyclom-y \
46         CC="%{__cc}" \
47         OPT="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/include/pci"
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_datadir}/cyc_async}
52
53 cd common
54 install cylines cyclades-z/{cyzload,cyzutil} cyclom-y/cyyutil \
55         $RPM_BUILD_ROOT%{_sbindir}
56 install cyclades-z/cyzfirm.bin $RPM_BUILD_ROOT%{_datadir}/cyc_async
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc README
64 %attr(755,root,root) %{_sbindir}/*
65 %{_datadir}/%{name}
This page took 0.058667 seconds and 3 git commands to generate.