new
[packages/libptytty.git] / libptytty.spec
1 Summary:        OS independent and secure pty/tty and utmp/wtmp/lastlog handling
2 Name:           libptytty
3 Version:        2.0
4 Release:        1
5 License:        GPL v2+
6 Group:          Libraries
7 Source0:        http://dist.schmorp.de/libptytty/%{name}-%{version}.tar.gz
8 # Source0-md5:  2a7f3f3c0d3ef71902da745dc7959529
9 URL:            http://software.schmorp.de/pkg/libptytty.html
10 BuildRequires:  cmake >= 3.6
11 BuildRequires:  libstdc++-devel >= 6:4.8.1
12 BuildRequires:  rpmbuild(macros) >= 1.605
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 libptytty is an offspring of rxvt-unicode that handles
17 pty/tty/utmp/wtmp/lastlog handling in mostly OS-independent ways
18
19 %package devel
20 Summary:        Header files for the libptytty library
21 Group:          Development/Libraries
22 Requires:       %{name} = %{version}-%{release}
23
24 %description devel
25 Header files for libptytty library.
26
27 %prep
28 %setup -q
29
30 %build
31 %cmake -B build
32 %{__make} -C build
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 %{__make} -C build install \
38         DESTDIR=$RPM_BUILD_ROOT
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %post   -p /sbin/ldconfig
44 %postun -p /sbin/ldconfig
45
46 %files
47 %defattr(644,root,root,755)
48 %doc Changes README
49 %attr(755,root,root) %{_libdir}/libptytty.so.0
50
51 %files devel
52 %defattr(644,root,root,755)
53 %attr(755,root,root) %{_libdir}/libptytty.so
54 %{_includedir}/libptytty.h
55 %{_pkgconfigdir}/libptytty.pc
56 %{_mandir}/man3/libptytty.3*
This page took 0.113729 seconds and 3 git commands to generate.