commit
fb06b5b456
63
qt5-qtserialport.spec
Normal file
63
qt5-qtserialport.spec
Normal file
@ -0,0 +1,63 @@
|
||||
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}
|
||||
|
||||
Obsoletes: %{name}-examples
|
||||
Provides: %{name}-examples
|
||||
|
||||
%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
|
||||
BIN
qtserialport-everywhere-src-5.11.1.tar.xz
Normal file
BIN
qtserialport-everywhere-src-5.11.1.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user