From f6325e0f40066eef2234334f192ea920db0f524e Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Wed, 24 Nov 2021 00:30:44 +0100 Subject: [PATCH 1/1] new --- libptytty.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 libptytty.spec diff --git a/libptytty.spec b/libptytty.spec new file mode 100644 index 0000000..ec593dd --- /dev/null +++ b/libptytty.spec @@ -0,0 +1,56 @@ +Summary: OS independent and secure pty/tty and utmp/wtmp/lastlog handling +Name: libptytty +Version: 2.0 +Release: 1 +License: GPL v2+ +Group: Libraries +Source0: http://dist.schmorp.de/libptytty/%{name}-%{version}.tar.gz +# Source0-md5: 2a7f3f3c0d3ef71902da745dc7959529 +URL: http://software.schmorp.de/pkg/libptytty.html +BuildRequires: cmake >= 3.6 +BuildRequires: libstdc++-devel >= 6:4.8.1 +BuildRequires: rpmbuild(macros) >= 1.605 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +libptytty is an offspring of rxvt-unicode that handles +pty/tty/utmp/wtmp/lastlog handling in mostly OS-independent ways + +%package devel +Summary: Header files for the libptytty library +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for libptytty library. + +%prep +%setup -q + +%build +%cmake -B build +%{__make} -C build + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} -C build install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc Changes README +%attr(755,root,root) %{_libdir}/libptytty.so.0 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libptytty.so +%{_includedir}/libptytty.h +%{_pkgconfigdir}/libptytty.pc +%{_mandir}/man3/libptytty.3* -- 2.43.0