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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1723754 - (show annotations) (download)
Sat May 15 15:29:25 2021 UTC (3 years, 4 months ago) by daviddavid
File size: 3848 byte(s)
SILENT: add provide

1 # Build configuration
2
3 %ifarch %{arm} aarch64 %{ix86}
4 %define build_docs 0
5 %else
6 %define build_docs 0
7 %endif
8
9 # Versioning
10
11 %define qtmajor 6
12 %define qtminor 1
13 %define qtsubminor 0
14 %define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor}
15
16 %define rel 1
17
18 %define snapshot 0
19
20 %if 0%{?snapshot}
21 %define pre rc
22 %endif
23
24 %define qttarballdir qtshadertools-everywhere-src-%{qtversion}%{?pre:-%{pre}}
25
26 # Library names
27 %define libqtshadertools %mklibname qt%{qtmajor}shadertools %{qtmajor}
28 %define libqtshadertools_d %mklibname qt%{qtmajor}shadertools -d
29
30 Name: qtshadertools6
31 Version: %{qtversion}
32 Release: %mkrel %{rel}
33 Summary: Qt%{qtmajor} Shader Tools
34 Group: Development/KDE and Qt
35 License: LGPLv2 with exceptions or GPLv3 with exceptions and GFDL
36 URL: https://www.qt.io/
37 Source0: https://download.qt.io/official_releases/qt/%{qtmajor}.%{qtminor}/%{version}/submodules/%{qttarballdir}.tar.xz
38 ## Branch Patchs
39
40 ## Trunk Patchs
41
42 ## Patch from Mageia
43
44 BuildRequires: cmake
45 BuildRequires: ninja
46 BuildRequires: cmake(Qt6Core) >= %{version}
47 BuildRequires: cmake(Qt6Gui) >= %{version}
48
49 Provides: qt%{qtmajor}-qtshadertools = %{version}-%{release}
50
51 %description
52 Qt%{qtmajor} shader tools.
53
54 %files
55 %{_qt6_bindir}/qsb
56
57 #------------------------------------------------------------------------------
58
59 %if %{build_docs}
60 %package doc
61 Summary: QtShaderTools%{qtmajor} APIs and tools docs
62 Group: Documentation
63 BuildArch: noarch
64 BuildRequires: qttools6
65 # This one is required to build QCH-format documentation
66 # for APIs and tools in this package set
67 BuildRequires: qttools6-assistant
68 Recommends: qttools6-assistant
69
70 %description doc
71 Documentation for APIs and tools in QtShaderTools%{qtmajor} package for
72 use with Qt Assistant.
73
74 %files doc
75 %{_qt6_docdir}/qtshadertools.qch
76 %{_qt6_docdir}/qtshadertools/
77 %endif
78
79 #------------------------------------------------------------------------------
80
81 %package -n %{libqtshadertools}
82 Summary: Qt%{qtmajor} Shader Tools Library
83 Group: System/Libraries
84 Requires: %{name} >= %{version}-%{release}
85
86 %description -n %{libqtshadertools}
87 Qt%{qtmajor} Shader Tools Component Library.
88
89 %files -n %{libqtshadertools}
90 %{_qt6_libdir}/libQt6ShaderTools.so.%{qtmajor}{,.*}
91
92 #------------------------------------------------------------------------------
93
94 %package -n %{libqtshadertools_d}
95 Summary: Devel files needed to build apps based on QtBodymovin
96 Group: Development/KDE and Qt
97 Requires: %{libqtshadertools} = %{version}
98 Provides: libqt6shadertools-devel = %{version}
99 Provides: libqtshadertools6-devel = %{version}
100 Provides: qt6shadertools-devel = %{version}
101 Provides: qtshadertools6-devel = %{version}
102 Provides: qt%{qtmajor}-qtshadertools-devel = %{version}-%{release}
103
104 %description -n %{libqtshadertools_d}
105 Devel files needed to build apps based on Qt Bodymovin.
106
107 %files -n %{libqtshadertools_d}
108 %{_qt6_includedir}/QtShaderTools/
109 %{_qt6_archdatadir}/mkspecs/modules/qt_lib_shadertools.pri
110 %{_qt6_archdatadir}/mkspecs/modules/qt_lib_shadertools_private.pri
111 %{_qt6_libdir}/libQt6ShaderTools.prl
112 %{_qt6_libdir}/libQt6ShaderTools.so
113 %{_qt6_libdir}/cmake/Qt6ShaderTools/
114 %{_qt6_libdir}/cmake/Qt6ShaderToolsTools/
115 %{_qt6_datadir}/modules/ShaderTools.json
116 #
117 %{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtShaderToolsTestsConfig.cmake
118
119 #------------------------------------------------------------------------------
120
121 %prep
122 %setup -q -n qtshadertools-everywhere-src-%{qtversion}
123 %autopatch -p1
124
125 %build
126 %cmake_qt6
127 %cmake_build
128
129 %if %{build_docs}
130 %__make docs
131 %endif
132
133 %install
134 %cmake_install
135
136 %if %{build_docs}
137 %make_install install_docs INSTALL_ROOT=%{buildroot}
138 %endif
139
140 # .la and .a files, die, die, die.
141 find %{buildroot} -name '*.la' -delete

  ViewVC Help
Powered by ViewVC 1.1.30