]>
Commit | Line | Data |
---|---|---|
f18f0eaf | 1 | # |
6861f1fc ER |
2 | # Conditional build: |
3 | %bcond_without verbose # verbose build (V=1) | |
cff8604d | 4 | |
6861f1fc | 5 | Summary: The Device Tree Compiler |
cff8604d | 6 | Summary(pl.UTF-8): Kompilator drzewiastej struktury urządzeń |
6861f1fc | 7 | Name: dtc |
cc076a48 | 8 | Version: 1.4.1 |
84adb372 | 9 | Release: 2 |
6861f1fc ER |
10 | License: GPL v2 (dtc), GPL/BSD (fdt library) |
11 | Group: Libraries | |
cc076a48 JB |
12 | Source0: https://www.kernel.org/pub/software/utils/dtc/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 2c977ced2e900a397b2db846ae68ef89 | |
14 | URL: http://www.devicetree.org/Device_Tree_Compiler | |
4ecc89ea | 15 | BuildRequires: bison |
16 | BuildRequires: flex | |
cc076a48 JB |
17 | BuildRequires: tar >= 1:1.22 |
18 | BuildRequires: xz | |
fad8e447 | 19 | Requires: libfdt = %{version}-%{release} |
cff8604d | 20 | Obsoletes: dtc-doc < 1.3.0-2 |
6861f1fc ER |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %{?debug:%define with_verbose 1} | |
24 | ||
25 | %description | |
26 | The Device Tree Compiler, dtc, takes as input a device-tree in a given | |
27 | format and outputs a device-tree in another format. Typically, the | |
28 | input format is "dts", a human readable source format, and creates a | |
29 | "dtb", or binary format as output. | |
30 | ||
b14054e0 | 31 | %description -l pl.UTF-8 |
32 | Kompilator drzewiastej struktury urządzeń, dtc, przyjmuje na wejściu | |
33 | dane w jednym formacie by na wyjściu wyprodukować strukturę danych w | |
34 | innym. Najczęściej format wejściowy to "dts", intuicyjny i łatwy w | |
35 | odczycie (tzw. human readable), natomiast wyjściowy to "dtb" lub | |
36 | inaczej format binarny. | |
37 | ||
fad8e447 JR |
38 | %package -n libfdt |
39 | Summary: Device tree library | |
40 | Summary(pl.UTF-8): Biblioteka drzewiastej struktury urządzeń | |
41 | Group: Libraries | |
cff8604d | 42 | Obsoletes: dtc-doc < 1.3.0-2 |
fad8e447 JR |
43 | # does not require base. see README.license |
44 | ||
45 | %description -n libfdt | |
46 | Device tree library. | |
47 | ||
48 | %description -n libfdt -l pl.UTF-8 | |
49 | Biblioteka drzewiastej struktury urządzeń. | |
50 | ||
51 | %package -n libfdt-devel | |
6861f1fc ER |
52 | Summary: Header files for fdt library |
53 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki fdt | |
54 | Group: Development/Libraries | |
fad8e447 JR |
55 | Requires: libfdt = %{version}-%{release} |
56 | Obsoletes: dtc-devel | |
cff8604d | 57 | Obsoletes: dtc-doc < 1.3.0-2 |
6861f1fc ER |
58 | # does not require base. see README.license |
59 | ||
fad8e447 | 60 | %description -n libfdt-devel |
6861f1fc ER |
61 | Header files for fdt library. |
62 | ||
fad8e447 | 63 | %description -n libfdt-devel -l pl.UTF-8 |
6861f1fc ER |
64 | Pliki nagłówkowe biblioteki fdt. |
65 | ||
fad8e447 | 66 | %package -n libfdt-static |
6861f1fc ER |
67 | Summary: Static fdt library |
68 | Summary(pl.UTF-8): Statyczna biblioteka fdt | |
69 | Group: Development/Libraries | |
fad8e447 JR |
70 | Requires: libfdt-devel = %{version}-%{release} |
71 | Obsoletes: dtc-static | |
6861f1fc | 72 | |
fad8e447 | 73 | %description -n libfdt-static |
6861f1fc ER |
74 | Static fdt library. |
75 | ||
fad8e447 | 76 | %description -n libfdt-static -l pl.UTF-8 |
6861f1fc ER |
77 | Statyczna biblioteka fdt. |
78 | ||
79 | %prep | |
cc076a48 | 80 | %setup -q |
6861f1fc ER |
81 | |
82 | %build | |
83 | %{__make} \ | |
84 | %{?with_verbose:V=1} \ | |
85 | CC="%{__cc}" \ | |
fad8e447 | 86 | CFLAGS="%{rpmcflags} -fPIC" |
6861f1fc ER |
87 | |
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | %{__make} install \ | |
cff8604d | 91 | DESTDIR=$RPM_BUILD_ROOT \ |
6861f1fc ER |
92 | %{?with_verbose:V=1} \ |
93 | PREFIX=%{_prefix} \ | |
cff8604d | 94 | LIBDIR=%{_libdir} |
6861f1fc ER |
95 | |
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
f18f0eaf | 99 | %post -n libfdt -p /sbin/ldconfig |
cff8604d | 100 | %postun -n libfdt -p /sbin/ldconfig |
fad8e447 | 101 | |
6861f1fc ER |
102 | %files |
103 | %defattr(644,root,root,755) | |
cc076a48 | 104 | %doc README README.license |
fad8e447 | 105 | %attr(755,root,root) %{_bindir}/convert-dtsv0 |
6861f1fc | 106 | %attr(755,root,root) %{_bindir}/dtc |
fad8e447 | 107 | %attr(755,root,root) %{_bindir}/dtdiff |
cc076a48 JB |
108 | %attr(755,root,root) %{_bindir}/fdtdump |
109 | %attr(755,root,root) %{_bindir}/fdtget | |
110 | %attr(755,root,root) %{_bindir}/fdtput | |
fad8e447 JR |
111 | |
112 | %files -n libfdt | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libfdt-%{version}.so | |
115 | %attr(755,root,root) %ghost %{_libdir}/libfdt.so.1 | |
6861f1fc | 116 | |
fad8e447 | 117 | %files -n libfdt-devel |
6861f1fc | 118 | %defattr(644,root,root,755) |
cff8604d | 119 | %doc TODO Documentation/manual.txt |
fad8e447 | 120 | %attr(755,root,root) %{_libdir}/libfdt.so |
6861f1fc ER |
121 | %{_includedir}/fdt.h |
122 | %{_includedir}/libfdt.h | |
cc076a48 | 123 | %{_includedir}/libfdt_env.h |
6861f1fc | 124 | |
fad8e447 | 125 | %files -n libfdt-static |
6861f1fc ER |
126 | %defattr(644,root,root,755) |
127 | %{_libdir}/libfdt.a |