/[packages]/cauldron/qtcanvas3d5/current/SPECS/qtcanvas3d5.spec
ViewVC logotype

Contents of /cauldron/qtcanvas3d5/current/SPECS/qtcanvas3d5.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1378527 - (show annotations) (download)
Mon Mar 18 00:57:10 2019 UTC (5 years, 1 month ago) by neoclust
File size: 2389 byte(s)
New version 5.12.0
1 %define snapshot 0
2 %define pre rc
3
4 %ifarch %{arm}
5 %define build_docs 0
6 %else
7 %define build_docs 1
8 %endif
9
10 %define qtmajor 5
11 %define qtminor 12
12 %define qtsubminor 2
13
14 %define rel 1
15
16 %define major_private 1
17 %define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor}
18
19 %if %snapshot
20 %define qttarballdir qtcanvas3d-everywhere-src-%{qtversion}-%pre
21 %else
22 %define qttarballdir qtcanvas3d-everywhere-src-%{qtversion}
23 %endif
24
25 Name: qtcanvas3d5
26 Version: %{qtversion}
27 Release: %mkrel %{rel}
28 Summary: Qt5 - Canvas3d component
29 Group: Development/KDE and Qt
30 License: LGPLv2 with exceptions or GPLv3 with exceptions and GFDL
31 URL: http://www.qt.io
32 Source0: http://download.qt.io/official_releases/qt/%{qtmajor}.%{qtminor}/%{version}/submodules/%{qttarballdir}.tar.xz
33 BuildRequires: qtbase5-devel = %version
34 BuildRequires: pkgconfig(Qt5Qml) = %version
35 BuildRequires: pkgconfig(Qt5Quick) = %version
36 #Branch Patchs
37
38 #Trunk Patchs
39
40 #Patch from Mageia
41
42 %description
43 Qt5 Canvas3D component.
44
45 %files
46 %_qt5_qml/QtCanvas3D
47 %_qt5_examplesdir/canvas3d
48
49 #------------------------------------------------------------------------------
50
51 %if %{build_docs}
52 %package doc
53 Summary: QtCanvas3D%{qtmajor} APIs and tools docs
54 Group: Documentation
55 BuildArch: noarch
56 BuildRequires: qttools5
57 # This one is required to build QCH-format documentation
58 # for APIs and tools in this package set
59 BuildRequires: qttools5-assistant
60 Recommends: qttools5-assistant
61
62 %description doc
63 Documentation for APIs and tools in QtCanvas3D5 package for use with
64 Qt Assistant.
65
66 %files doc
67 %{_qt5_docdir}/qtcanvas3d.qch
68 %{_qt5_docdir}/qtcanvas3d/
69 %endif
70
71 #------------------------------------------------------------------------------
72
73 %prep
74 %setup -q -n qtcanvas3d-everywhere-src-%{qtversion}
75
76 %build
77 %qmake_qt5
78
79 %make_build
80
81 %if %{build_docs}
82 %__make docs
83 %endif
84
85 %install
86 %make_install INSTALL_ROOT=%{buildroot}
87
88 %if %{build_docs}
89 %make_install install_docs INSTALL_ROOT=%{buildroot}
90 %endif
91
92 # Fix all buildroot paths
93 find %{buildroot}/%{_qt5_libdir} -type f -name '*prl' -exec perl -pi -e "s, -L%{_builddir}/\S+,,g" {} \;
94 find %{buildroot}/%{_qt5_libdir} -type f -name '*prl' -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \;
95 find %{buildroot}/%{_qt5_libdir} -type f -name '*la' -print -exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \;
96
97 # .la and .a files, die, die, die.
98 find %{buildroot} -name '*.la' -delete
99 find %{buildroot} -name '*.a' -delete

  ViewVC Help
Powered by ViewVC 1.1.30