]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without verbose # verbose build (V=1) | |
4 | ||
5 | Summary: The Device Tree Compiler | |
6 | Summary(pl.UTF-8): Kompilator drzewiastej struktury urządzeń | |
7 | Name: dtc | |
8 | Version: 1.3.0 | |
9 | Release: 2 | |
10 | License: GPL v2 (dtc), GPL/BSD (fdt library) | |
11 | Group: Libraries | |
12 | Source0: http://www.jdl.com/software/%{name}-v%{version}.tgz | |
13 | # Source0-md5: 0b94ed452ed3d3b5c1546c27788c416f | |
14 | URL: http://git.jdl.com/gitweb/ | |
15 | BuildRequires: bison | |
16 | BuildRequires: flex | |
17 | Requires: libfdt = %{version}-%{release} | |
18 | Obsoletes: dtc-doc < 1.3.0-2 | |
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 | ||
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 | ||
36 | %package -n libfdt | |
37 | Summary: Device tree library | |
38 | Summary(pl.UTF-8): Biblioteka drzewiastej struktury urządzeń | |
39 | Group: Libraries | |
40 | Obsoletes: dtc-doc < 1.3.0-2 | |
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 | |
50 | Summary: Header files for fdt library | |
51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki fdt | |
52 | Group: Development/Libraries | |
53 | Requires: libfdt = %{version}-%{release} | |
54 | Obsoletes: dtc-devel | |
55 | Obsoletes: dtc-doc < 1.3.0-2 | |
56 | # does not require base. see README.license | |
57 | ||
58 | %description -n libfdt-devel | |
59 | Header files for fdt library. | |
60 | ||
61 | %description -n libfdt-devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe biblioteki fdt. | |
63 | ||
64 | %package -n libfdt-static | |
65 | Summary: Static fdt library | |
66 | Summary(pl.UTF-8): Statyczna biblioteka fdt | |
67 | Group: Development/Libraries | |
68 | Requires: libfdt-devel = %{version}-%{release} | |
69 | Obsoletes: dtc-static | |
70 | ||
71 | %description -n libfdt-static | |
72 | Static fdt library. | |
73 | ||
74 | %description -n libfdt-static -l pl.UTF-8 | |
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}" \ | |
84 | CFLAGS="%{rpmcflags} -fPIC" | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT \ | |
90 | %{?with_verbose:V=1} \ | |
91 | PREFIX=%{_prefix} \ | |
92 | LIBDIR=%{_libdir} | |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post -n libfdt -p /sbin/ldconfig | |
98 | %postun -n libfdt -p /sbin/ldconfig | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
102 | %doc README.license | |
103 | %attr(755,root,root) %{_bindir}/convert-dtsv0 | |
104 | %attr(755,root,root) %{_bindir}/dtc | |
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 | |
112 | ||
113 | %files -n libfdt-devel | |
114 | %defattr(644,root,root,755) | |
115 | %doc TODO Documentation/manual.txt | |
116 | %attr(755,root,root) %{_libdir}/libfdt.so | |
117 | %{_includedir}/fdt.h | |
118 | %{_includedir}/libfdt.h | |
119 | ||
120 | %files -n libfdt-static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/libfdt.a |