3 %bcond_without verbose # verbose build (V=1)
5 Summary: The Device Tree Compiler
6 Summary(pl.UTF-8): Kompilator drzewiastej struktury urządzeń
10 License: GPL v2 (dtc), GPL/BSD (fdt library)
12 Source0: http://www.jdl.com/software/%{name}-v%{version}.tgz
13 # Source0-md5: 0b94ed452ed3d3b5c1546c27788c416f
14 URL: http://git.jdl.com/gitweb/
17 Requires: libfdt = %{version}-%{release}
18 Obsoletes: dtc-doc < 1.3.0-2
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %{?debug:%define with_verbose 1}
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.
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.
37 Summary: Device tree library
38 Summary(pl.UTF-8): Biblioteka drzewiastej struktury urządzeń
40 Obsoletes: dtc-doc < 1.3.0-2
41 # does not require base. see README.license
43 %description -n libfdt
46 %description -n libfdt -l pl.UTF-8
47 Biblioteka drzewiastej struktury urządzeń.
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}
55 Obsoletes: dtc-doc < 1.3.0-2
56 # does not require base. see README.license
58 %description -n libfdt-devel
59 Header files for fdt library.
61 %description -n libfdt-devel -l pl.UTF-8
62 Pliki nagłówkowe biblioteki fdt.
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}
71 %description -n libfdt-static
74 %description -n libfdt-static -l pl.UTF-8
75 Statyczna biblioteka fdt.
78 %setup -q -n %{name}-v%{version}
82 %{?with_verbose:V=1} \
84 CFLAGS="%{rpmcflags} -fPIC"
87 rm -rf $RPM_BUILD_ROOT
89 DESTDIR=$RPM_BUILD_ROOT \
90 %{?with_verbose:V=1} \
95 rm -rf $RPM_BUILD_ROOT
97 %post -n libfdt -p /sbin/ldconfig
98 %postun -n libfdt -p /sbin/ldconfig
101 %defattr(644,root,root,755)
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
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
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
118 %{_includedir}/libfdt.h
120 %files -n libfdt-static
121 %defattr(644,root,root,755)