]> git.pld-linux.org Git - packages/zram-init.git/blob - zram-init.spec
up to 11.1
[packages/zram-init.git] / zram-init.spec
1 Summary:        A wrapper script for the zram linux kernel module
2 Name:           zram-init
3 Version:        11.1
4 Release:        1
5 License:        GPL v2
6 Group:          Applications
7 Source0:        https://github.com/vaeth/zram-init/archive/v%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5:  f7d3e48385181156e77c940d707ea3e9
9 URL:            https://github.com/vaeth/zram-init/
10 BuildRequires:  rpmbuild(macros) >= 1.644
11 BuildArch:      noarch
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 This is a small helper script to setup a zram device as swap or as a
16 ramdisk.
17
18 %package -n zsh-completion-zram-init
19 Summary:        ZSH completion for zram-init command line
20 Group:          Applications/Shells
21 Requires:       %{name} = %{version}-%{release}
22 Requires:       zsh
23
24 %description -n zsh-completion-zram-init
25 ZSH completion for zram-init command line.
26
27 %prep
28 %setup -q
29
30 %{__sed} -i -e '1s,/usr/bin/env sh,%{__sh},' sbin/zram-init.in
31
32 %{__make}
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 %{__make} install \
38         BINDIR=$RPM_BUILD_ROOT/sbin \
39         MODPROBED=TRUE \
40         MODPROBEDIR=$RPM_BUILD_ROOT/etc/modprobe.d \
41         MANPAGE=TRUE \
42         MANDIR=$RPM_BUILD_ROOT%{_mandir} \
43         GETTEXT=TRUE \
44         MODIR=$RPM_BUILD_ROOT%{_localedir} \
45         ZSH_COMPLETION=TRUE \
46         COMP_ZSHDIR=$RPM_BUILD_ROOT%{zsh_compdir} \
47         SYSTEMD=TRUE \
48         SYSTEMDDIR=$RPM_BUILD_ROOT%{systemdunitdir} \
49         OPENRC=FALSE
50
51 %find_lang %{name}
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post
57 %systemd_reload
58
59 %postun
60 %systemd_reload
61
62 %files -f %{name}.lang
63 %defattr(644,root,root,755)
64 %doc AUTHORS ChangeLog README.md
65 %attr(755,root,root) /sbin/zram-init
66 %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/zram.conf
67 %{systemdunitdir}/zram_btrfs.service
68 %{systemdunitdir}/zram_swap.service
69 %{systemdunitdir}/zram_tmp.service
70 %{systemdunitdir}/zram_var_tmp.service
71 %{_mandir}/man8/zram-init.8*
72 %lang(de) %{_mandir}/de/man8/zram-init.8*
73
74 %files -n zsh-completion-zram-init
75 %defattr(644,root,root,755)
76 %{zsh_compdir}/_zram-init
This page took 0.094694 seconds and 4 git commands to generate.