]> git.pld-linux.org Git - packages/dtc.git/blame - dtc.spec
- README.license is back as main <> devel don't depend on each other
[packages/dtc.git] / dtc.spec
CommitLineData
6861f1fc
ER
1# Conditional build:
2%bcond_without verbose # verbose build (V=1)
3
4Summary: The Device Tree Compiler
5Name: dtc
6Version: 1.1.0
7Release: 0.1
8License: GPL v2 (dtc), GPL/BSD (fdt library)
9Group: Libraries
10Source0: http://www.jdl.com/software/%{name}-v%{version}.tgz
11# Source0-md5: 46bcff355b60d85bd311fc95b9ff0630
12URL: http://git.jdl.com/gitweb/
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%{?debug:%define with_verbose 1}
16
17%description
18The Device Tree Compiler, dtc, takes as input a device-tree in a given
19format and outputs a device-tree in another format. Typically, the
20input format is "dts", a human readable source format, and creates a
21"dtb", or binary format as output.
22
23%package devel
24Summary: Header files for fdt library
25Summary(pl.UTF-8): Pliki nagłówkowe biblioteki fdt
26Group: Development/Libraries
27# does not require base. see README.license
28
29%description devel
30Header files for fdt library.
31
32%description devel -l pl.UTF-8
33Pliki nagłówkowe biblioteki fdt.
34
35%package static
36Summary: Static fdt library
37Summary(pl.UTF-8): Statyczna biblioteka fdt
38Group: Development/Libraries
39Requires: %{name}-devel = %{version}-%{release}
40
41%description static
42Static fdt library.
43
44%description static -l pl.UTF-8
45Statyczna biblioteka fdt.
46
47%prep
48%setup -q -n %{name}-v%{version}
49
50%build
51%{__make} \
52 %{?with_verbose:V=1} \
53 CC="%{__cc}" \
54 CFLAGS="%{rpmcflags}"
55
56%install
57rm -rf $RPM_BUILD_ROOT
58%{__make} install \
59 %{?with_verbose:V=1} \
60 PREFIX=%{_prefix} \
61 LIBDIR=%{_libdir} \
62 DESTDIR=$RPM_BUILD_ROOT
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
69%doc TODO README.license Documentation/manual.txt
70%attr(755,root,root) %{_bindir}/dtc
71
72%files devel
73%defattr(644,root,root,755)
8e9bf1e9 74%doc README.license
6861f1fc
ER
75%{_includedir}/fdt.h
76%{_includedir}/libfdt.h
77
78%files static
79%defattr(644,root,root,755)
80%{_libdir}/libfdt.a
This page took 0.100479 seconds and 4 git commands to generate.