source: projects/specs/trunk/c/cpufrequtils/cpufrequtils-vl.spec @ 521

Revision 521, 3.4 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1Summary:        CPUFreq utilities
2Summary(ja):    CPUFreq 用のユーティリティ
3Name:           cpufrequtils
4Version:        005
5Release:                1%{?_dist_release}
6Group:          System Environment/Base
7License:        GPL
8
9Source:         %{name}-%{version}.tar.bz2
10Patch0:         disable-gsic.patch
11
12Buildroot:      %{_tmppath}/%{name}-%{version}-root
13BuildRequires:  sysfsutils-devel
14ExclusiveArch:  %{ix86} x86_64 ppc ppc64
15
16%description
17cpufreq-utils contains several utilities that can be used to control
18the cpufreq interface provided by the kernel on hardware that
19supports CPU frequency scaling.
20
21%prep
22%setup -q
23%patch0 -p1
24
25%build
26make CFLAGS="$RPM_OPT_FLAGS"
27%ifarch %{ix86}
28cd debug/i386
29make CFLAGS="$RPM_OPT_FLAGS"
30%endif
31%ifarch x86_64
32cd debug/x86_64
33make CFLAGS="$RPM_OPT_FLAGS"
34%endif
35cd ..
36
37%install
38rm -rf $RPM_BUILD_ROOT
39make DESTDIR=%{buildroot} \
40     mandir=%{_mandir} bindir=%{_bindir} \
41     includedir=%{_includedir} libdir=%{_libdir} \
42     install
43%find_lang cpufrequtils
44
45%ifarch %{ix86}
46cd debug/i386
47install centrino-decode %{buildroot}%{_bindir}/centrino-decode
48install dump_psb %{buildroot}%{_bindir}/dump_psb
49install powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
50cd ../..
51%endif
52%ifarch x86_64
53cd debug/x86_64
54install powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
55cd ../..
56%endif
57
58chmod -R a-s %{buildroot}
59
60## remove unuse files
61rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
62
63%clean
64rm -rf $RPM_BUILD_ROOT;
65
66%post -p /sbin/ldconfig
67
68%postun -p /sbin/ldconfig
69
70%files -f cpufrequtils.lang
71%defattr(-,root,root,0755)
72%{_includedir}/cpufreq.h
73#%{_libdir}/libcpufreq.la
74%{_libdir}/libcpufreq.so*
75%{_libdir}/libcpufreq.a
76%{_bindir}/cpufreq-info
77%{_bindir}/cpufreq-set
78%ifarch %{ix86}
79%{_bindir}/centrino-decode
80%{_bindir}/dump_psb
81%endif
82%ifarch %{ix86} x86_64
83%{_bindir}/powernow-k8-decode
84%endif
85%{_mandir}/*/*
86
87
88%changelog
89* Mon Sep 22 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 005-1
90- new upstream release
91
92* Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 002-1vl5
93- applied new versioning policy, spec in utf-8
94- removed *.la
95
96* Sun Jul 15 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 002-0vl1
97- initial build for Vine Linux
98
99* Tue Jul 11 2006 Karsten Hopp <karsten@redhat.de>
100- buildrequire libsysfs-devel
101
102* Wed Jul  9 2006 Dave Jones <davej@redhat.com>
103- Rebuild against new libsysfs
104
105* Wed Jun  7 2006 Dave Jones <davej@redhat.com>
106- Upstream -002 release.
107
108* Sat Feb 11 2006 Dave Jones <davej@redhat.com>
109- rebuild.
110
111* Thu Feb 09 2006 Dave Jones <davej@redhat.com>
112- rebuild.
113
114* Mon Dec 19 2005 Dave Jones <davej@redhat.com>
115- New upstream 0.4 release.
116
117* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
118- rebuilt for new gcj
119
120* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
121- rebuilt
122
123* Sun Jul 31 2005 Florian La Roche <laroche@redhat.com>
124- package all files
125
126* Mon May  9 2005 Dave Jones <davej@redhat.com>
127- Update to upstream 0.3
128
129* Fri Apr 22 2005 Matthias Saou <http://freshrpms.net/> 0.2-2
130- Major spec file cleanup. (#155731)
131- Use %%find_lang macro.
132- Add missing sysfsutils-devel build requirement.
133
134* Fri Apr 15 2005 Florian La Roche <laroche@redhat.com>
135- remove empty preun script
136
137* Tue Mar  1 2005 Dave Jones <davej@redhat.com>
138- Rebuild for gcc4.
139
140* Sun Feb 27 2005 Dave Jones <davej@redhat.com>
141- Update to upstream 0.2
142
143* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
144- Rebuild with -D_FORTIFY_SOURCE=2
145
146* Sat Dec  4 2004 Dave Jones <davej@redhat.com>
147- Initial packaging
148
Note: See TracBrowser for help on using the repository browser.