qt5-qtserialport/qt5-qtserialport.spec

64 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-02-14 15:20:08 +08:00
Name: qt5-qtserialport
Version: 5.11.1
Release: 4
Summary: Serialport component of qt5
License: LGPLv2 with exceptions or LGPLv3 with exceptions
URL: http://www.qt.io
Source0: https://download.qt.io/archive/qt/5.11/5.11.1/submodules/qtserialport-everywhere-src-5.11.1.tar.xz
BuildRequires: qt5-qtbase-devel >= %{version} pkgconfig(libudev)
Requires: %{_qt5} = %{_qt5_version}
%description
Qt Serial Port provides the basic functionality, which includes configuring, I/O operations,
getting and setting the control signals of the RS-232 pinouts.
%package devel
Summary: Development files for qt5-qtserialport
Requires: qt5-qtbase-devel %{name} = %{version}-%{release}
2020-02-26 17:48:53 +08:00
Obsoletes: %{name}-examples = %{version}-%{release}
Provides: %{name}-examples < %{version}-%{release}
2020-02-14 15:20:08 +08:00
%description devel
This package contains the development files and examples for %{name}.
%prep
%autosetup -n qtserialport-everywhere-src-%{version} -p1
%build
%{qmake_qt5}
%make_build
%install
make install INSTALL_ROOT=%{buildroot}
pushd %{buildroot}%{_qt5_libdir}
for file in libQt5*.prl; do sed -i '/^QMAKE_PRL_BUILD_DIR/d' $file; done
for la_file in libQt5*.la; do
rm -f $la_file
if [ -f "$(basename $la_file .la).so" ]; then
sed -i '/^QMAKE_PRL_LIBS/d' $(basename $la_file .la).prl
fi
done
popd
%ldconfig_scriptlets
%files
%license LICENSE.*
%{_qt5_libdir}/libQt5*.so.5*
%files devel
%{_qt5_libdir}/libQt5*.{so,prl}
%dir %{_qt5_libdir}/cmake/Qt5SerialPort/
%{_qt5_libdir}/cmake/*/*.cmake
%{_qt5_archdatadir}/*/*/*.pri
%{_qt5_headerdir}/*/
%{_qt5_libdir}/*/*.pc
%{_qt5_examplesdir}/
%changelog
* Fri Feb 14 2020 lingsheng <lingsheng@huawei.com> - 5.11.1-4
- Package init