Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Herbster0815:HTPC
zramd
_service:set_version:zramd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:zramd.spec of Package zramd
# # spec file for package zramd # # Copyright (c) 2024 SUSE LINUX 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. Name: zramd Version: 0.9.x+git.20220102T034113~a21eb47 Release: 0 Summary: Automatically setup swap on zram License: GPL-2.0 Group: System/Kernel Source0: %{name}-%{version}.tar.xz Source1: vendor.tar.xz Url: https://github.com/maximumadmin/zramd BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: golang(API) >= 1.14 BuildRequires: golang-packaging BuildRequires: git Conflicts: systemd-zram-service Conflicts: zram-generator PreReq: %fillup_prereq %{?systemd_requires} %description Why swap on zram? Significantly improves system responsiveness, especially when swap is under pressure. More secure, user data leaks into swap are on volatile media. Without swap-on-drive, there's better utilization of a limited resource: benefit of swap without the drive space consumption. Further reduces the time to out-of-memory kill, when workloads exceed limits. %prep %autosetup -p1 -a0 tar xJf %{SOURCE1} sed -i 's|-mod=readonly|-mod=vendor|g' Makefile %build %make_build %install install -d -m 755 %{buildroot}%{_sbindir} install -d -m 755 %{buildroot}/%{_bindir} install -d -m 755 %{buildroot}/%{_sysconfdir}/default install -d -m 755 %{buildroot}/%{_unitdir} install -d -m 755 %{buildroot}/%{_datadir}/licenses/%{name} install -D -m 755 dist/%{name}.bin %{buildroot}/%{_bindir}/%{name} install -D -m 644 build/package/%{name}.default %{buildroot}/%{_sysconfdir}/default/%{name} install -D -m 644 build/package/%{name}.service %{buildroot}/%{_unitdir}/ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} install -D -m 644 LICENSE %{buildroot}/%{_datadir}/licenses/%{name}/ %pre %service_add_pre %{name}.service %post %fillup_only %service_add_post %{name}.service %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %files %defattr(-,root,root) %license LICENSE %{_bindir}/zramd %{_sbindir}/rc%{name} %{_sysconfdir}/default/%{name} %{_unitdir}/%{name}.service %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