diff --git a/.gitignore b/.gitignore index e69de29..ba5d364 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/QCustomPlot.tar.gz diff --git a/qcustomplot.pro b/qcustomplot.pro new file mode 100644 index 0000000..a652329 --- /dev/null +++ b/qcustomplot.pro @@ -0,0 +1,8 @@ +TEMPLATE = lib +VERSION = $$SOVERSION +TARGET = qcustomplot +QT = core gui + +SOURCES = qcustomplot.cpp +HEADERS = qcustomplot.h + diff --git a/qcustomplot.spec b/qcustomplot.spec new file mode 100644 index 0000000..40b545b --- /dev/null +++ b/qcustomplot.spec @@ -0,0 +1,101 @@ +# Bump this as appropriate when doing release updates, check i.e. with abi_compliance_checker +# First digit: major, bump when incompatible changes were performed +# Second digit: minor, bump when interface was extended +%global so_ver 0.0.0 + +Name: qcustomplot +Version: 1.2.1 +Release: 2%{?dist} +Summary: Qt widget for plotting and data visualization + +License: GPLv3+ +URL: http://www.qcustomplot.com/ +Source0: http://www.qcustomplot.com/release/%{version}/QCustomPlot.tar.gz +Source1: %{name}.pro + +BuildRequires: qt4-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. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%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} +BuildArch: noarch + +%description doc +The %{name}-doc package contains the documentation and examples for +%{name}. + + +%prep +%setup -q -n %{name} +cp -a %{SOURCE1} . + + +%build +LDFLAGS="-Wl,--as-needed" %qmake_qt4 SOVERSION=%{so_ver} . +make %{?_smp_mflags} + + +%install +# Install header and library +install -Dpm 0644 qcustomplot.h %{buildroot}%{_includedir}/qcustomplot.h +install -d %{buildroot}%{_libdir} +chmod 0755 libqcustomplot.so.%{so_ver} +cp -a libqcustomplot.so* %{buildroot}%{_libdir} + +# pkg-config file +install -d %{buildroot}%{_libdir}/pkgconfig/ +cat > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc < - 1.2.1-2 +- BuildRequires: qt-devel -> qt4-devel +- Use %%license +- Don't abuse version as so version +- Use -Wl,--as-needed + +* Sat Aug 09 2014 Sandro Mani - 1.2.1-1 +- Initial package diff --git a/sources b/sources index e69de29..6a097eb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b41cff26d9bdfbdd7f453a34c7520300 QCustomPlot.tar.gz