package created using the webbuild interface [release 0.15.0-1mamba;Fri Oct 02 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 17:18:25 +01:00
parent 34fab8bcce
commit 479c97236c
2 changed files with 98 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# qtermwidget # qtermwidget
A terminal emulator widget for Qt 5.

96
qtermwidget.spec Normal file
View File

@ -0,0 +1,96 @@
Name: qtermwidget
Version: 0.15.0
Release: 1mamba
Summary: A terminal emulator widget for Qt 5
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/lxqt/qtermwidget
Source: https://github.com/lxqt/qtermwidget.git/%{version}/qtermwidget-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libgcc
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A terminal emulator widget for Qt 5.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
find %{buildroot}/usr/share/*/translations/ -name *.qm | \
while read line; do
bn=`echo ${line}|cut -d_ -f2-3`
echo "%lang(${bn/.*}) ${line/*-root}" >> %{name}.lang
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%dir %{_datadir}/qtermwidget5
%dir %{_datadir}/qtermwidget5/color-schemes
%{_datadir}/qtermwidget5/color-schemes/*
%dir %{_datadir}/qtermwidget5/kb-layouts
%dir %{_datadir}/qtermwidget5/kb-layouts/historic
%{_datadir}/qtermwidget5/kb-layouts/historic/*
%{_datadir}/qtermwidget5/kb-layouts/*.keytab
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libqtermwidget5.so.*
%doc AUTHORS LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/qtermwidget5
%{_includedir}/qtermwidget5/*.h
%dir %{_libdir}/cmake/qtermwidget5
%{_libdir}/cmake/qtermwidget5/qtermwidget5-*.cmake
%{_libdir}/libqtermwidget5.so
%{_libdir}/pkgconfig/qtermwidget5.pc
%doc README.md
%changelog
* Fri Oct 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.15.0-1mamba
- package created using the webbuild interface