Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
zramcfg
zramcfg.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zramcfg.spec of Package zramcfg
# # spec file for package zramcfg # # Copyright (c) 2020 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define skip_python2 1 %define version_unconverted 0.2 Name: zramcfg Version: 0.2 Release: 0 Summary: ZRAM configuration License: GPL-2.0-or-later Group: System/Kernel URL: https://github.com/hreinecke/zramcfg Source: %{name}-%{version}.tar.xz Patch0: v0.2-Port-to-Python3.patch BuildRequires: python3 BuildRequires: systemd-rpm-macros BuildArch: noarch %description zramcfg is a script to configure ZRAM devices in the system. It provides a systemd service for enabling saving and loading the ZRAM configuration during bootup and shutdown. %prep %setup %patch0 -p1 %build %python_build %install %python_install chmod a+x "%{buildroot}/%{python_sitelib}/%{name}.py" mkdir -p "%{buildroot}/%{_sbindir}" ln -sf ../..%{python_sitelib}/%{name}.py "%{buildroot}/%{_sbindir}/%{name}" %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %pre %service_add_pre %{name}.service %post %service_add_post %{name}.service %files %defattr(-,root,root,-) %{_unitdir}/%{name}.service %{_sbindir}/%{name} %{_mandir}/man8/*.8* %{python_sitelib}/* %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