]>
Commit | Line | Data |
---|---|---|
3c21357f ER |
1 | # |
2 | # Conditional build: | |
ba9f9a92 JB |
3 | %bcond_without sysfs # sysfs support |
4 | %bcond_without procfs # procfs support | |
3c21357f | 5 | # |
00175718 | 6 | Summary: Scaling your CPU frequency |
e53c1ad7 | 7 | Summary(pl.UTF-8): Skalowanie częstotliwości procesora |
62e7287f | 8 | Name: cpufrequtils |
00175718 | 9 | Version: 008 |
a02a1ae1 | 10 | Release: 4 |
dc826bc7 | 11 | Epoch: 1 |
62e7287f PG |
12 | License: GPL v2 |
13 | Group: Applications/System | |
19acf9b5 JB |
14 | #Source0: https://www.kernel.org/pub/linux/utils/kernel/cpufreq/%{name}-%{version}.tar.bz2 |
15 | Source0: http://ftp.sunet.se/pub/Linux/kernel.org/linux/utils/kernel/cpufreq/%{name}-%{version}.tar.bz2 | |
00175718 | 16 | # Source0-md5: c59b71c044d463896f3247e8dd83dd7e |
19acf9b5 JB |
17 | # 404 as of Dec 2013, use mirror |
18 | #URL: https://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html | |
19 | URL: http://ftp.sunet.se/pub/Linux/kernel.org/linux/utils/kernel/cpufreq/cpufrequtils.html | |
7859e853 | 20 | BuildRequires: gettext-tools |
ba9f9a92 | 21 | %{?with_sysfs:BuildRequires: sysfsutils-devel >= 1.3.0-3} |
dc826bc7 | 22 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
62e7287f PG |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
00175718 | 26 | Scaling your CPU frequency. |
fb1cc2e3 | 27 | |
c4fb8e9d JR |
28 | %description -l pl.UTF-8 |
29 | Skalowanie częstotliwości procesora. | |
62e7287f | 30 | |
33159304 | 31 | %package libs |
d4deb589 | 32 | Summary: cpufrequtils library |
e53c1ad7 | 33 | Summary(pl.UTF-8): Biblioteka skalująca częstotliwość procesora |
33159304 PG |
34 | Group: Libraries |
35 | ||
36 | %description libs | |
d4deb589 | 37 | cpufrequtils library. |
33159304 | 38 | |
c4fb8e9d JR |
39 | %description libs -l pl.UTF-8 |
40 | Biblioteka skalująca częstotliwość procesora. | |
33159304 | 41 | |
dde7fd6b JB |
42 | %package devel |
43 | Summary: Header file for libcpufreq library | |
e53c1ad7 | 44 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libcpufreq |
dde7fd6b | 45 | Group: Development/Libraries |
dc826bc7 | 46 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
ba9f9a92 | 47 | %{?with_sysfs:Requires: sysfsutils-devel >= 1.3.0-3} |
00175718 | 48 | Obsoletes: cpufrequtils-static |
a02a1ae1 | 49 | Conflicts: kernel-tools-cpupower-libs-devel |
62e7287f | 50 | |
dde7fd6b JB |
51 | %description devel |
52 | Header file for libcpufreq library. | |
3c21357f | 53 | |
c4fb8e9d JR |
54 | %description devel -l pl.UTF-8 |
55 | Plik nagłówkowy biblioteki libcpufreq. | |
3c21357f | 56 | |
dde7fd6b JB |
57 | %prep |
58 | %setup -q | |
3c21357f | 59 | |
dde7fd6b | 60 | %build |
dc826bc7 JB |
61 | %{__make} \ |
62 | CC="%{__cc}" \ | |
63 | OPTIMIZATION="%{rpmcflags}" \ | |
64 | V=true \ | |
65 | %{!?with_sysfs:SYSFS=false} \ | |
66 | %{!?with_procfs:PROC=false} | |
62e7287f PG |
67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install \ | |
dc826bc7 | 72 | DESTDIR=$RPM_BUILD_ROOT \ |
8b9eab1e | 73 | libdir=%{_libdir} \ |
dc826bc7 | 74 | mandir=%{_mandir} |
62e7287f | 75 | |
dde7fd6b JB |
76 | %find_lang %{name} |
77 | ||
62e7287f PG |
78 | %clean |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
33159304 PG |
81 | %post libs -p /sbin/ldconfig |
82 | %postun libs -p /sbin/ldconfig | |
dde7fd6b JB |
83 | |
84 | %files -f %{name}.lang | |
85 | %defattr(644,root,root,755) | |
dc826bc7 | 86 | %doc AUTHORS README |
68416c7f | 87 | %attr(755,root,root) %{_bindir}/cpufreq-* |
dde7fd6b JB |
88 | %{_mandir}/man1/cpufreq-*.1* |
89 | ||
33159304 PG |
90 | %files libs |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_libdir}/libcpufreq.so.*.*.* | |
00175718 | 93 | %attr(755,root,root) %ghost %{_libdir}/libcpufreq.so.0 |
33159304 | 94 | |
dde7fd6b | 95 | %files devel |
62e7287f | 96 | %defattr(644,root,root,755) |
dde7fd6b | 97 | %attr(755,root,root) %{_libdir}/libcpufreq.so |
dde7fd6b | 98 | %{_includedir}/cpufreq.h |