forked from KDAB/KDChart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqt5-kdchart.spec
85 lines (69 loc) · 2.16 KB
/
qt5-kdchart.spec
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
Name: qt5-kdchart
Version: 2.6.2
Release: 1
Summary: A Qt tool for creating business and scientific charts
Source: %{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
URL: https://github.com/KDAB/KDChart
Group: System/Libraries
License: GPL-2.0+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Vendor: Klaralvdalens Datakonsult AB (KDAB)
Packager: Klaralvdalens Datakonsult AB (KDAB) <[email protected]>
BuildRequires: cmake
%if %{defined suse_version}
BuildRequires: libqt5-qtbase-devel libqt5-qtsvg-devel
%endif
%if %{defined fedora}
BuildRequires: gcc-c++ qt5-qtbase-devel qt5-qtsvg-devel desktop-file-utils
%endif
%if %{defined rhel}
BuildRequires: gcc-c++ qt5-qtbase-devel qt5-qtsvg-devel desktop-file-utils
%endif
%description
KDAB's KD Chart a tool for creating business and scientific charts.
It provides developers with a sophisticated way to customize layouts and
to design and manage large numbers of axes. KD Chart targets C++ programmers
who use Qt in their applications.
Authors:
--------
Klaralvdalens Datakonsult AB (KDAB) <[email protected]>
%define debug_package %{nil}
%global __debug_install_post %{nil}
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
This package contains header files and associated tools and libraries to
develop programs using kdchart.
%prep
%setup -q
%build
touch .license.accepted
%if "%{_lib}"=="lib64"
QMAKE_ARGS="LIB_SUFFIX=64" ./configure.sh -shared -release -no-unittests -prefix %{buildroot}/usr
%else
./configure.sh -shared -release -prefix %{buildroot}/usr
%endif
%__make %{?_smp_mflags}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%install
%make_install
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_prefix}/share/doc/KDChart
%{_libdir}/libkdchart.so.*
%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/KDChart
%{_includedir}/KDChart/*
%dir %{_includedir}/KDGantt
%{_includedir}/KDGantt/*
%{_libdir}/libkdchart.so
%changelog
* Mon Apr 22 2019 Allen Winter <[email protected]> 2.6.2
2.6.2 final