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