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