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: %{name}-doc = %{version}-%{release}
18 Requires: libfdt = %{version}-%{release}
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 Requires: %{name}-doc = %{version}-%{release}
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: %{name}-doc = %{version}-%{release}
54 Requires: libfdt = %{version}-%{release}
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 Summary: Dtc documentation
79 Summary(pl.UTF-8): Dokumentacja dla dtc
80 Group: Development/Libraries
83 Dtc package documentation.
85 %description doc -l pl.UTF-8
86 Dokumentacja pakietu dtc.
89 %setup -q -n %{name}-v%{version}
93 %{?with_verbose:V=1} \
95 CFLAGS="%{rpmcflags} -fPIC"
98 rm -rf $RPM_BUILD_ROOT
100 %{?with_verbose:V=1} \
103 DESTDIR=$RPM_BUILD_ROOT
106 rm -rf $RPM_BUILD_ROOT
108 %post -n libfdt -p /sbin/ldconfig
109 %postun -n libfdt -p /sbin/ldconfig
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_bindir}/convert-dtsv0
114 %attr(755,root,root) %{_bindir}/dtc
115 %attr(755,root,root) %{_bindir}/dtdiff
116 %attr(755,root,root) %{_bindir}/ftdump
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libfdt-%{version}.so
121 %attr(755,root,root) %ghost %{_libdir}/libfdt.so.1
123 %files -n libfdt-devel
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libfdt.so
127 %{_includedir}/libfdt.h
129 %files -n libfdt-static
130 %defattr(644,root,root,755)
134 %defattr(644,root,root,755)
135 %doc TODO README.license Documentation/manual.txt