]>
Commit | Line | Data |
---|---|---|
2634c43b JB |
1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: I2C tools for Linux | |
3 | Summary(en.UTF-8): I²C tools for Linux | |
4 | Summary(pl.UTF-8): Narzędzia I²C dla Linuksa | |
5 | Name: i2c-tools | |
3984fe66 | 6 | Version: 3.0.3 |
2634c43b JB |
7 | Release: 1 |
8 | License: GPL v2+ | |
9 | Group: Applications/System | |
10 | Source0: http://dl.lm-sensors.org/i2c-tools/releases/%{name}-%{version}.tar.bz2 | |
3984fe66 | 11 | # Source0-md5: 511376eed04455cdb277ef19c5f73bb4 |
2634c43b JB |
12 | URL: http://www.lm-sensors.org/wiki/I2CTools |
13 | BuildRequires: perl-modules >= 1:5.6 | |
14 | BuildRequires: rpm-perlprov >= 3.0.3-16 | |
15 | Requires: dev >= 2.9.0-13 | |
16 | Requires: uname(release) >= 2.6.5 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | I2C tools for Linux. | |
21 | ||
22 | %description -l en.UTF-8 | |
23 | I²C tools for Linux. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Narzędzia I²C dla Linuksa. | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
32 | %{__make} \ | |
33 | CC="%{__cc}" \ | |
34 | CFLAGS="%{rpmcflags}" | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %{__make} install \ | |
40 | DESTDIR=$RPM_BUILD_ROOT \ | |
41 | prefix=%{_prefix} \ | |
42 | mandir=%{_mandir} | |
43 | ||
44 | # enhanced (more 2.4-compatible) private copy; public header already in llh | |
894b83ec | 45 | %{__rm} $RPM_BUILD_ROOT%{_includedir}/linux/i2c-dev.h |
2634c43b JB |
46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc CHANGES README | |
53 | %attr(755,root,root) %{_bindir}/ddcmon | |
54 | %attr(755,root,root) %{_bindir}/decode-dimms | |
55 | %attr(755,root,root) %{_bindir}/decode-edid | |
56 | %attr(755,root,root) %{_bindir}/decode-vaio | |
57 | %attr(755,root,root) %{_sbindir}/i2cdetect | |
58 | %attr(755,root,root) %{_sbindir}/i2cdump | |
59 | %attr(755,root,root) %{_sbindir}/i2cget | |
60 | %attr(755,root,root) %{_sbindir}/i2cset | |
61 | %attr(755,root,root) %{_sbindir}/i2c-stub-from-dump | |
62 | %{_mandir}/man8/i2cdetect.8* | |
63 | %{_mandir}/man8/i2cdump.8* | |
64 | %{_mandir}/man8/i2cget.8* | |
65 | %{_mandir}/man8/i2cset.8* | |
66 | %{_mandir}/man8/i2c-stub-from-dump.8* |