Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:branches:network
skype-poll-fix
skype-poll-fix.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skype-poll-fix.spec of Package skype-poll-fix
# # spec file for package skype-poll-fix # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _name skype Name: skype-poll-fix Version: 0.0~git20141102 Release: 0 Summary: Reduce Skype CPU load License: SUSE-Public-Domain Group: Productivity/Networking/Talk/Clients Url: https://github.com/ValdikSS/skype-poll-fix Source: %{name}-%{version}.tar.gz BuildRequires: gcc Requires: %{_name} ExclusiveArch: i586 %description This library is made to reduce Skype CPU consumption by increasing poll call timeouts. It lowers Skype idle CPU load from 4.4% down to 0.9% and improves battery life on my laptop, while making Skype only a bit slower. %prep %setup -q cat > %{name}.conf << EOF # SET_POLL is a poll() timeout value which would be set if Skype # tries to poll with timeout less than MIN_POLL. SET_POLL= MIN_POLL= EOF cat > poll-fix.sh << EOF # -*- sh -*- source %{_sysconfdir}/default/%{name} if [ -z "\$%{nil}SET_POLL" ]; then unset SET_POLL else export SET_POLL fi if [ -z "\$%{nil}MIN_POLL" ]; then unset MIN_POLL else export MIN_POLL fi EOF %build make %{?_smp_mflags} %install mkdir -p %{buildroot}%{_libdir}/%{_name}/ mv -f %{name}.so %{buildroot}%{_libdir}/%{_name}/lib%{name}.so.0 install -Dm 0644 %{name}.conf %{buildroot}%{_sysconfdir}/default/%{name} install -Dm 0644 poll-fix.sh %{buildroot}%{_datadir}/%{_name}/scripts-4/30-poll-fix %files %defattr(-,root,root) %doc README.md %config(noreplace) %{_sysconfdir}/default/%{name} %{_libdir}/%{_name}/ %{_datadir}/%{_name}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor