]> git.pld-linux.org Git - packages/thunderbolt-software-user-space.git/blame - thunderbolt-software-user-space.spec
- new
[packages/thunderbolt-software-user-space.git] / thunderbolt-software-user-space.spec
CommitLineData
1acd0316
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4#
5Summary: Thunderbolt(TM) Linux Software
6Summary(pl.UTF-8): Oprogramowanie linuksowe do technologii Thunderbolt(TM)
7Name: thunderbolt-software-user-space
8# use "0" until versioning is stabilized:
9# - github/dell release is tagged by date
10# - changelog says it's 16.2.59 release
11# - individual component versions acc. to changelogs:
12# - daemon 16.2.57
13# - libtbtfwu 1.0.0 release 16.2.59
14# - tbtfwucli 0.0.2 release 16.2.59
15Version: 0
16%define subver 2017.01.19
17Release: 0.%{subver}.1
18License: BSD
19Group: Libraries
20# primary repository is https://github.com/01org/thunderbolt-software-user-space, but release exists only in dell repository
21#Source0Download: https://github.com/dell/thunderbolt-software-user-space/releases
22Source0: https://github.com/dell/thunderbolt-software-user-space/archive/%{subver}/%{name}-%{subver}.tar.gz
23# Source0-md5: 2876232d622eb83df0f8ec392826ab55
24Patch0: %{name}-glibc.patch
25Patch1: %{name}-dbus-macros.patch
26Patch2: %{name}-install.patch
27Patch3: %{name}-link.patch
28URL: https://01.org/thunderbolt-sw/
29BuildRequires: cmake >= 2.8.8
30BuildRequires: dbus-c++-devel >= 0.5.0
31BuildRequires: libnl-devel >= 1:3.2
32BuildRequires: libstdc++-devel >= 6:4.7
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36Thunderbolt(TM) Linux Software.
37
38%description -l pl.UTF-8
39Oprogramowanie linuksowe do technologii Thunderbolt(TM).
40
41%package -n thunderbolt-software-daemon
42Summary: Thunderbolt(TM) daemon
43Summary(pl.UTF-8): Demon Thunderbolt(TM)
44Group: Daemons
45
46%description -n thunderbolt-software-daemon
47Thunderbolt(TM) technology is a transformational high-speed, dual
48protocol I/O that provides unmatched performance with up to 40Gbps
49bi-directional transfer speeds. It provides flexibility and simplicity
50by supporting both data (PCIe, USB3.1) and video (DisplayPort) on a
51single cable connection that can daisy-chain up to six devices.
52
53In addition, the Thunderbolt Networking mode allows a connection of
54two computers through a Thunderbolt cable.
55
56The Thunderbolt daemon (thunderboltd) is a user-space daemon that
57implements 2 main functionalities:
581. Completing the Thunderbolt Networking implementation.
592. Implementing the host FW update functionality.
60
61%description -n thunderbolt-software-daemon -l pl.UTF-8
62Technologia Thunderbolt(TM) to szybkie, dwuprotokołowe operacje we/wy
63zapewniające wyjątkową przepustowość do 40Gbps w obie strony. Zapewnia
64elastyczność i prostotę, obsługując zarówno dane (PCIe, USB3.1), jak i
65obraz (DisplayPort) na pojedynczym połączeniu kablowym, którym można
66połączyć szeregowo do sześciu urządzeń.
67
68Ponadto tryb sieciowy Thunderbolt pozwala na połączenie kablem dwóch
69komputerów.
70
71Demon Thunderbolt (thunderboltd) to demon przestrzeni użytkownika
72zapewniający dwie funkcje:
731. Uzupełnienie implementacji Thunderbolt Networking.
742. Aktualizacje firmware'u hosta.
75
76%package -n libtbtfwu
77Summary: Thunderbolt(TM) FW update library
78Summary(pl.UTF-8): Biblioteka do uaktualniania FW systemu Thunderbolt(TM)
79Group: Libraries
80
81%description -n libtbtfwu
82This library supplies simpler, safer and higher-level interface of the
83FW update functionality supplied by Thunderbolt daemon. It currently
84supports FW update for host controller only.
85
86%description -n libtbtfwu -l pl.UTF-8
87Ta biblioteka udostępnia prostszy, bezpieczniejszy interfejs wyższego
88poziomu funkcji uaktualniania FW udostępnianej przez demona
89Thunderbolt. Obecnie obsługuje uaktualnianie firmware'u tylko
90kontrolera hosta.
91
92%package -n libtbtfwu-devel
93Summary: Header files for libtbtfwu library
94Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libtbtfwu
95Group: Development/Libraries
96Requires: libtbtfwu = %{version}-%{release}
97
98%description -n libtbtfwu-devel
99Header files for libtbtfwu library.
100
101%description -n libtbtfwu-devel -l pl.UTF-8
102Pliki nagłówkowe biblioteki libtbtfwu.
103
104%package -n libtbtfwu-static
105Summary: Static libtbtfwu library
106Summary(pl.UTF-8): Statyczna biblioteka libtbtfwu
107Group: Development/Libraries
108Requires: libtbtfwu-devel = %{version}-%{release}
109
110%description -n libtbtfwu-static
111Static libtbtfwu library.
112
113%description -n libtbtfwu-static -l pl.UTF-8
114Statyczna biblioteka libtbtfwu.
115
116%package -n tbtfwucli
117Summary: Thunderbold(TM) FW update sample tool
118Summary(pl.UTF-8): Przykładowe narzędzie do uaktualniania FW systemu Thunderbolt(TM)
119Group: Applications/System
120Requires: libtbtfwu = %{version}-%{release}
121
122%description -n tbtfwucli
123This is a preliminary sample of a command line tool that uses the FW
124update library. It implements a simple user interface for testing
125current FW version of a Thunderbolt host controller, validating FW
126image file compatibility with current controller and writing a new FW
127image file to the controller flash.
128
129%description -n tbtfwucli -l pl.UTF-8
130Ten pakiet zawiera wczesne, przykładowe narzędzie linii poleceń
131wykorzystujące bibliotekę do uaktualniania FW. Implementuje prosty
132interfejs użytkownika do testowania aktualnej wersji FW kontrolera
133hosta Thunderbolt, sprawdzanie zgodności pliku obrazu FW z aktualnym
134kontrolerem oraz zapis nowego pliku obrazu FW do pamięci flash
135kontrolera.
136
137%prep
138%setup -q -n %{name}-%{subver}
139%patch0 -p1
140%patch1 -p1
141%patch2 -p1
142%patch3 -p1
143
144%build
145TOPDIR=$(pwd)
146install -d build-libtbtfwu
147cd build-libtbtfwu
148# CMakeFiles expect relative CMAKE_INSTALL_LIBDIR
149%cmake ../fwupdate/libtbtfwu \
150 -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib}
151%{__make}
152cd ..
153
154install -d build-tbtfwucli
155cd build-tbtfwucli
156%cmake ../fwupdate/tbtfwucli \
157 -DTBT_LIBRARY="$TOPDIR/build-libtbtfwu/libtbtfwu.so"
158%{__make}
159cd ..
160
161install -d build-daemon
162cd build-daemon
163%cmake ../ThunderboltService/Linux
164%{__make}
165cd ..
166
167%install
168rm -rf $RPM_BUILD_ROOT
169
170%{__make} -C build-libtbtfwu install \
171 DESTDIR=$RPM_BUILD_ROOT
172
173%{__make} -C build-tbtfwucli install \
174 DESTDIR=$RPM_BUILD_ROOT
175
176%{__make} -C build-daemon install \
177 DESTDIR=$RPM_BUILD_ROOT
178
179%clean
180rm -rf $RPM_BUILD_ROOT
181
182%post -n libtbtfwu -p /sbin/ldconfig
183%postun -n libtbtfwu -p /sbin/ldconfig
184
185%files -n thunderbolt-software-daemon
186%defattr(644,root,root,755)
187%doc AUTHORS.daemon COPYING.daemon ChangeLog.daemon README README.daemon
188%dir %{_libexecdir}/thunderbolt
189%attr(755,root,root) %{_libexecdir}/thunderbolt/thunderboltd
190%{_datadir}/dbus-1/system-services/com.Intel.Thunderbolt.service
191%{systemdunitdir}/thunderbolt.service
192/etc/dbus-1/system.d/thunderbolt.conf
193/etc/udev/rules.d/10-thunderbolt.rules
194
195%files -n libtbtfwu
196%defattr(644,root,root,755)
197%doc AUTHORS.libtbtfwu COPYING.libtbtfwu ChangeLog.libtbtfwu README.libtbtfwu
198%attr(755,root,root) %{_libdir}/libtbtfwu.so.*.*.*
199%attr(755,root,root) %ghost %{_libdir}/libtbtfwu.so.1
200
201%files -n libtbtfwu-devel
202%defattr(644,root,root,755)
203%attr(755,root,root) %{_libdir}/libtbtfwu.so
204%{_includedir}/tbt
205%{_pkgconfigdir}/libtbtfwu.pc
206
207%files -n libtbtfwu-static
208%defattr(644,root,root,755)
209%{_libdir}/libtbtfwu.a
210
211%files -n tbtfwucli
212%defattr(644,root,root,755)
213%doc AUTHORS.tbtfwucli COPYING.tbtfwucli ChangeLog.tbtfwucli README.tbtfwucli
214%attr(755,root,root) %{_bindir}/tbtfwucli
This page took 0.110832 seconds and 4 git commands to generate.