Пакет qcustomplot-qt5: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | # Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 %global so_ver 2.0.0 Name: qcustomplot-qt5 Version: 2.1.1 Release: alt1 Summary: Qt widget for plotting and data visualization License: GPL-3.0-or-later Group: Development/C++ Url: http://www.qcustomplot.com/ # Source-url: http://www.qcustomplot.com/release/%version/QCustomPlot.tar.gz Source: qcustomplot-%version.tar Source1: qcustomplot.pro Obsoletes: qcustomplot <= 2.1.0 BuildRequires: gcc-c++ BuildRequires: qt5-base-devel %description QCustomPlot is a Qt C++ widget for plotting and data visualization. This plotting library focuses on making good looking, publication quality 2D plots, graphs and charts, as well as offering high performance for realtime visualization applications. This package contains the Qt5 version. %package devel Summary: Development files for %name Group: Development/C++ Requires: %name Obsoletes: qcustomplot <= 2.1.0 %description devel The %name-devel package contains libraries and header files for developing applications that use %name. %package doc Summary: Documentation and examples for %name Group: Documentation BuildArch: noarch %description doc The %name-doc package contains the documentation and examples for %name. %prep %setup -n qcustomplot-%version cp -a %SOURCE1 . %build LDFLAGS="%optflags -Wl,--as-needed" %qmake_qt5 SOVERSION=%so_ver QTSUFFIX=qt5 LIBDIR=%_libdir . %make_build %install make INSTALL_ROOT=%buildroot install # pkg-config file mkdir -p %buildroot%_pkgconfigdir cat > %buildroot%_pkgconfigdir/%name.pc <<EOF libdir=%_libdir includedir=%_includedir Name: %name Description: %summary Version: %version Cflags: -I\${includedir}/qt5 Libs: -L\${libdir} -lqcustomplot-qt5 EOF %files %doc changelog.txt %_libdir/libqcustomplot-qt5.so.* %files devel %_includedir/qt5/qcustomplot.h %_libdir/libqcustomplot-qt5.so %_pkgconfigdir/%name.pc %files doc %doc documentation examples %changelog * Mon Oct 23 2023 Anton Midyukov <antohami@altlinux.org> 2.1.1-alt1 - new version (2.1.1) with rpmgs script - fix soversion (2.1.0 -> 2.0.0) - fix Name in %%name.pc - add missing 'Obsoletes: qcustomplot <= 2.1.0' * Wed Apr 13 2022 Vladimir Rubanov <august@altlinux.org> 2.1.0-alt2 - Fix include in pc file * Thu Dec 23 2021 Anton Midyukov <antohami@altlinux.org> 2.1.0-alt1 - new version (2.1.0) with rpmgs script - rename srpm to qcustomplot-qt5 - replace header to %_includedir/qt5 - cleanup spec * Mon Sep 17 2018 Anton Midyukov <antohami@altlinux.org> 2.0.1-alt1 - Initial build for ALT Sisyphus |