]>
Commit | Line | Data |
---|---|---|
c759bd4c JB |
1 | Summary: Prosilica GigE Vision Gigabit Ethernet cameras support |
2 | Summary(pl.UTF-8): Obsługa kamer Prosilica GigE Vision podłączanych przez Gigabit Ethernet | |
3 | Name: AVT_GigE_SDK | |
0f8a5695 | 4 | Version: 1.26 |
c759bd4c JB |
5 | Release: 1 |
6 | License: non-distributable | |
7 | Group: Libraries | |
0f8a5695 JB |
8 | Source0: http://www.alliedvisiontec.com/fileadmin/content/PDF/Software/Prosilica_software/Prosilica_SDK/%{name}_Linux.tgz |
9 | # NoSource0-md5: 1caa78c27d069b0fa1adab916433f248 | |
c759bd4c JB |
10 | NoSource: 0 |
11 | URL: http://www.alliedvisiontec.com/us/products/software/linux/gige-linux-sdk.html | |
0f8a5695 | 12 | BuildRequires: wxGTK2-unicode-devel |
c759bd4c JB |
13 | ExclusiveArch: %{ix86} %{x8664} arm ppc |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | # gcc version of static libs (see tarball for available versions) | |
0f8a5695 JB |
17 | %define armgccver 4.4 |
18 | %define ppcgccver 4.4 | |
19 | %define x86gccver 4.5 | |
c759bd4c JB |
20 | |
21 | %description | |
22 | The Linux SDK and Sample Viewer program allows users to control and | |
23 | capture images from Prosilica's GigE Vision Gigabit Ethernet cameras | |
24 | operating in a Linux environment on either an Intel x86 (32- and | |
25 | 64-bit), PowerPC (32-bit), and ARM processors (little endian). The SDK | |
26 | includes sample code to allow programmers to integrate Prosilica's | |
27 | cameras into their Linux-based applications. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Linux SDK i program Sample Viewer pozwala na sterowanie oraz | |
31 | przechwytywanie obrazu z kamer Prosilica GigE Vision podłączanych | |
32 | przez Gigabit Ethernet w środowisku Linux na procesorach Intel x86 | |
33 | (32- i 64-bitowych), PowerPC (32-bitowych) oraz ARM (little endian). | |
34 | SDK zawiera przykładowy kod pozwalający zintegrować kamery firmy | |
35 | Prosilica ze swoimi linuksowymi aplikacjami. | |
36 | ||
37 | %package devel | |
38 | Summary: AVT GigE SDK/PvAPI development package | |
39 | Summary(pl.UTF-8): Pakiet programistyczny AVT GigE SDK/PvAPI | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | AVT GigE SDK development package, containing PvAPI and Imagelib header | |
45 | files and static Imagelib library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pakiet programistyczny AVT GigE SDK, zawierający pliki nagłówkowe | |
49 | PvAPI i Imagelib oraz statyczną bibliotekę Imagelib. | |
50 | ||
51 | %package static | |
52 | Summary: Static PvAPI library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka PvAPI | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static PvAPI library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka PvAPI. | |
62 | ||
0f8a5695 JB |
63 | %package viewer |
64 | Summary: wxWidgets-based sample viewer | |
65 | Summary(pl.UTF-8): Przeglądarka oparta na wxWidgets | |
66 | Group: X11/Applications/Graphics | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | ||
69 | %description viewer | |
70 | wxWidgets-based sample viewer. | |
71 | ||
72 | %description viewer -l pl.UTF-8 | |
73 | Przeglądarka oparta na wxWidgets. | |
74 | ||
c759bd4c JB |
75 | %prep |
76 | %setup -q -n "AVT GigE SDK" | |
77 | ||
0f8a5695 JB |
78 | %build |
79 | %ifarch %{ix86} | |
80 | PLATFORM=x86 | |
81 | %endif | |
82 | %ifarch %{x8664} | |
83 | PLATFORM=x64 | |
84 | %endif | |
85 | %ifarch arm | |
86 | PLATFORM=arm | |
87 | %endif | |
88 | %ifarch ppc | |
89 | PLATFORM=ppc | |
90 | %endif | |
91 | %{__make} -C examples/CLIpConfig sample \ | |
92 | CPU=$PLATFORM \ | |
93 | OPT="%{rpmcxxflags}" \ | |
94 | CC="%{__cxx}" | |
95 | ||
96 | %{__make} -C examples/SampleViewer sample \ | |
97 | CPU=$PLATFORM \ | |
98 | OPT="%{rpmcxxflags}" \ | |
99 | CC="%{__cxx}" \ | |
100 | WX_FLAGS="$(wx-gtk2-unicode-config --cxxflags)" \ | |
101 | WXLIB="$(wx-gtk2-unicode-config --libs)" | |
102 | ||
c759bd4c JB |
103 | %install |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}} | |
106 | ||
107 | %ifarch %{ix86} | |
c759bd4c JB |
108 | install bin-pc/x86/libPv{API,JNI}.so $RPM_BUILD_ROOT%{_libdir} |
109 | install lib-pc/x86/%{x86gccver}/lib*.a $RPM_BUILD_ROOT%{_libdir} | |
110 | %endif | |
111 | %ifarch %{x8664} | |
c759bd4c JB |
112 | install bin-pc/x64/libPv{API,JNI}.so $RPM_BUILD_ROOT%{_libdir} |
113 | install lib-pc/x64/%{x86gccver}/lib*.a $RPM_BUILD_ROOT%{_libdir} | |
114 | %endif | |
115 | %ifarch arm | |
c759bd4c | 116 | install bin-pc/arm/libPvAPI.so $RPM_BUILD_ROOT%{_libdir} |
0f8a5695 | 117 | install lib-pc/arm/%{armgccver}/lib*.a $RPM_BUILD_ROOT%{_libdir} |
c759bd4c JB |
118 | %endif |
119 | %ifarch ppc | |
c759bd4c JB |
120 | install bin-pc/ppc/libPvAPI.so $RPM_BUILD_ROOT%{_libdir} |
121 | install lib-pc/ppc/%{ppcgccver}/lib*.a $RPM_BUILD_ROOT%{_libdir} | |
122 | %endif | |
123 | install inc-pc/*.h $RPM_BUILD_ROOT%{_includedir} | |
0f8a5695 JB |
124 | install examples/CLIpConfig/CLIpConfig $RPM_BUILD_ROOT%{_bindir} |
125 | install examples/SampleViewer/SampleViewer $RPM_BUILD_ROOT%{_bindir}/AVTSampleViewer | |
c759bd4c JB |
126 | |
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
133 | %files | |
134 | %defattr(644,root,root,755) | |
135 | %doc README.txt | |
136 | %attr(755,root,root) %{_bindir}/CLIpConfig | |
137 | %attr(755,root,root) %{_libdir}/libPvAPI.so | |
138 | %ifarch %{ix86} %{x8664} | |
c759bd4c JB |
139 | %attr(755,root,root) %{_libdir}/libPvJNI.so |
140 | %endif | |
141 | ||
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
144 | %doc documents/AVT*.pdf | |
145 | # static-only | |
146 | %{_libdir}/libImagelib.a | |
147 | %{_includedir}/ImageLib.h | |
148 | %{_includedir}/PvApi.h | |
149 | %{_includedir}/PvRegIo.h | |
150 | ||
151 | %files static | |
152 | %defattr(644,root,root,755) | |
153 | %{_libdir}/libPvAPI.a | |
0f8a5695 JB |
154 | |
155 | %files viewer | |
156 | %defattr(644,root,root,755) | |
157 | %attr(755,root,root) %{_bindir}/AVTSampleViewer |