qt5-qtcharts/qt5-qtcharts.spec

93 lines
2.6 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: qt5-qtcharts
Version: 5.15.2
Release: 2mamba
Summary: Qt5 charts component
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.qt.io/
Source: https://download.qt.io/official_releases/qt/%{majver}/%{version}/submodules/qtcharts-everywhere-src-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtdeclarative-devel
## AUTOBUILDREQ-END
%description
Qt5 charts component.
%package -n libQt5Charts
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n libQt5Charts
This package contains shared libraries for %{name}.
%package -n libQt5Charts-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: libQt5Charts = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n libQt5Charts-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n qtcharts-everywhere-src-%{version}
%build
%_qt5_qmake
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall INSTALL_ROOT=%{buildroot} STRIP=/bin/true
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libQt5Charts -p /sbin/ldconfig
%postun -n libQt5Charts -p /sbin/ldconfig
%files -n libQt5Charts
%defattr(-,root,root)
%{_libdir}/libQt5Charts.so.*
%dir %{_libdir}/qt5/qml/QtCharts
%dir %{_libdir}/qt5/qml/QtCharts/designer
%{_libdir}/qt5/qml/QtCharts/designer/*
%{_libdir}/qt5/qml/QtCharts/libqtchartsqml2.so
%{_libdir}/qt5/qml/QtCharts/plugins.qmltypes
%{_libdir}/qt5/qml/QtCharts/qmldir
%doc LICENSE.*
%files -n libQt5Charts-devel
%defattr(-,root,root)
%dir %{_includedir}/qt5/QtCharts
%{_includedir}/qt5/QtCharts/*
%{_libdir}/libQt5Charts.la
%{_libdir}/libQt5Charts.prl
%{_libdir}/libQt5Charts.so
%{_libdir}/qt5/mkspecs/modules/qt_lib_charts.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_charts_private.pri
%{_libdir}/pkgconfig/Qt5Charts.pc
%dir %{_libdir}/cmake/Qt5Charts
%{_libdir}/cmake/Qt5Charts/Qt5ChartsConfig*.cmake
%doc README
%changelog
* Sat Nov 06 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-2mamba
- bump release
* Fri Nov 05 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-1mamba
- package created using the webbuild interface