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