qtermwidget/qtermwidget.spec

110 lines
3.1 KiB
RPMSpec

Name: qtermwidget
Version: 1.1.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: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%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
* Mon Apr 18 2022 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba
- automatic version update by autodist
* Wed Nov 10 2021 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
- automatic version update by autodist
* Fri Apr 16 2021 Automatic Build System <autodist@mambasoft.it> 0.17.0-1mamba
- automatic version update by autodist
* Sun Nov 15 2020 Automatic Build System <autodist@mambasoft.it> 0.16.1-1mamba
- automatic version update by autodist
* Mon Nov 09 2020 Automatic Build System <autodist@mambasoft.it> 0.16.0-1mamba
- automatic version update by autodist
* Fri Oct 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.15.0-1mamba
- package created using the webbuild interface