2 %bcond_without verbose # verbose build (V=1)
4 Summary: The Device Tree Compiler
5 Summary(pl.UTF-8): Kompilator drzewiastej struktury urządzeń
9 License: GPL v2 (dtc), GPL/BSD (fdt library)
11 Source0: http://www.jdl.com/software/%{name}-v%{version}.tgz
12 # Source0-md5: 0f1841de79abbff57691adc31d5f3525
13 URL: http://git.jdl.com/gitweb/
16 Requires: %{name}-doc = %{version}-%{release}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %{?debug:%define with_verbose 1}
22 The Device Tree Compiler, dtc, takes as input a device-tree in a given
23 format and outputs a device-tree in another format. Typically, the
24 input format is "dts", a human readable source format, and creates a
25 "dtb", or binary format as output.
27 %description -l pl.UTF-8
28 Kompilator drzewiastej struktury urządzeń, dtc, przyjmuje na wejściu
29 dane w jednym formacie by na wyjściu wyprodukować strukturę danych w
30 innym. Najczęściej format wejściowy to "dts", intuicyjny i łatwy w
31 odczycie (tzw. human readable), natomiast wyjściowy to "dtb" lub
32 inaczej format binarny.
35 Summary: Header files for fdt library
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki fdt
37 Group: Development/Libraries
38 Requires: %{name}-doc = %{version}-%{release}
39 # does not require base. see README.license
42 Header files for fdt library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki fdt.
48 Summary: Static fdt library
49 Summary(pl.UTF-8): Statyczna biblioteka fdt
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
56 %description static -l pl.UTF-8
57 Statyczna biblioteka fdt.
60 Summary: Dtc documentation
61 Summary(pl.UTF-8): Dokumentacja dla dtc
62 Group: Development/Libraries
65 Dtc package documentation.
67 %description doc -l pl.UTF-8
68 Dokumentacja pakietu dtc.
71 %setup -q -n %{name}-v%{version}
75 %{?with_verbose:V=1} \
80 rm -rf $RPM_BUILD_ROOT
82 %{?with_verbose:V=1} \
85 DESTDIR=$RPM_BUILD_ROOT
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_bindir}/dtc
95 %defattr(644,root,root,755)
97 %{_includedir}/libfdt.h
100 %defattr(644,root,root,755)
104 %doc TODO README.license Documentation/manual.txt