Initial import

This commit is contained in:
Sandro Mani 2014-12-22 09:25:41 +01:00
commit a06099a817
4 changed files with 111 additions and 0 deletions

1
.gitignore vendored
View file

@ -0,0 +1 @@
/QCustomPlot.tar.gz

8
qcustomplot.pro Normal file
View file

@ -0,0 +1,8 @@
TEMPLATE = lib
VERSION = $$SOVERSION
TARGET = qcustomplot
QT = core gui
SOURCES = qcustomplot.cpp
HEADERS = qcustomplot.h

101
qcustomplot.spec Normal file
View file

@ -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 <<EOF
libdir=%{_libdir}
includedir=%{_includedir}
Name: %{name}
Description: %{summary}
Version: %{version}
Cflags: -I\${includedir}
Libs: -L\${libdir} -lqcustomplot
EOF
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license GPL.txt
%doc changelog.txt
%{_libdir}/*.so.*
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%files doc
%license GPL.txt
%doc documentation examples
%changelog
* Fri Dec 19 2014 Sandro Mani <manisandro@gmail.com> - 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 <manisandro@gmail.com> - 1.2.1-1
- Initial package

View file

@ -0,0 +1 @@
b41cff26d9bdfbdd7f453a34c7520300 QCustomPlot.tar.gz