-
Notifications
You must be signed in to change notification settings - Fork 1
/
ptylie.spec.in
61 lines (51 loc) · 1.79 KB
/
ptylie.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# spec file for package ptylie
#
# Copyright (c) 2015 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ptylie
Version: @VERSION@
Release: 0
Summary: Record a terminal session with automatic keyboard entry
License: GPL-2.0
Group: Productivity/Text/Utilities
Url: http://github.com/p-gen/ptylie.git
Source: %{name}-%{version}.tar.bz2
Source1: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This tool simulates a user typing on a keyboard and saves what is
displayed on the terminal in a file.
Author: Pierre Gentile <p.gen.progs@gmail.com>
%prep
%setup -q
%build
export SUID_CFLAGS=-fPIE
export SUID_LDFLAGS=-pie
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
install -d %{buildroot}%{_defaultdocdir}/%{name}
for FILE in COPYRIGHT *.rst examples; do
mv ${FILE} %{buildroot}%{_defaultdocdir}/%{name}
done
%files
%defattr(-,root,root,-)
%attr(4755,root,root) %{_bindir}/*
%dir %{_defaultdocdir}/%{name}
%doc %{_defaultdocdir}/%{name}/COPYRIGHT
%doc %{_defaultdocdir}/%{name}/examples
%doc %{_defaultdocdir}/%{name}/*.rst
%{_mandir}/man1/*
%changelog