/[packages]/backports/8/qtshadertools6/current/SPECS/qtshadertools6.spec
ViewVC logotype

Annotation of /backports/8/qtshadertools6/current/SPECS/qtshadertools6.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1881646 - (hide annotations) (download)
Mon Aug 29 10:48:38 2022 UTC (2 years, 1 month ago) by papoteur
File size: 3968 byte(s)
SILENT: fix BR for Qt6GuiTools
1 daviddavid 1722885 # 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 neoclust 1849143 %define qtminor 3
13 neoclust 1881326 %define qtsubminor 1
14 daviddavid 1722885 %define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor}
15    
16 neoclust 1881326 %define rel 1
17 daviddavid 1722885
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 papoteur 1881646 BuildRequires: cmake(Qt6GuiTools) >= %{version}
48 neoclust 1755850 BuildRequires: qtbase6-qtpaths = %{version}
49 daviddavid 1722885
50     Provides: qt%{qtmajor}-qtshadertools = %{version}-%{release}
51    
52     %description
53     Qt%{qtmajor} shader tools.
54    
55     %files
56     %{_qt6_bindir}/qsb
57    
58     #------------------------------------------------------------------------------
59    
60     %if %{build_docs}
61     %package doc
62     Summary: QtShaderTools%{qtmajor} APIs and tools docs
63     Group: Documentation
64     BuildArch: noarch
65     BuildRequires: qttools6
66     # This one is required to build QCH-format documentation
67     # for APIs and tools in this package set
68     BuildRequires: qttools6-assistant
69     Recommends: qttools6-assistant
70    
71     %description doc
72     Documentation for APIs and tools in QtShaderTools%{qtmajor} package for
73     use with Qt Assistant.
74    
75     %files doc
76     %{_qt6_docdir}/qtshadertools.qch
77     %{_qt6_docdir}/qtshadertools/
78     %endif
79    
80     #------------------------------------------------------------------------------
81    
82     %package -n %{libqtshadertools}
83     Summary: Qt%{qtmajor} Shader Tools Library
84     Group: System/Libraries
85     Requires: %{name} >= %{version}-%{release}
86    
87     %description -n %{libqtshadertools}
88     Qt%{qtmajor} Shader Tools Component Library.
89    
90     %files -n %{libqtshadertools}
91     %{_qt6_libdir}/libQt6ShaderTools.so.%{qtmajor}{,.*}
92    
93     #------------------------------------------------------------------------------
94    
95     %package -n %{libqtshadertools_d}
96     Summary: Devel files needed to build apps based on QtBodymovin
97     Group: Development/KDE and Qt
98     Requires: %{libqtshadertools} = %{version}
99     Provides: libqt6shadertools-devel = %{version}
100     Provides: libqtshadertools6-devel = %{version}
101     Provides: qt6shadertools-devel = %{version}
102     Provides: qtshadertools6-devel = %{version}
103 daviddavid 1723754 Provides: qt%{qtmajor}-qtshadertools-devel = %{version}-%{release}
104 daviddavid 1722885
105     %description -n %{libqtshadertools_d}
106     Devel files needed to build apps based on Qt Bodymovin.
107    
108     %files -n %{libqtshadertools_d}
109     %{_qt6_includedir}/QtShaderTools/
110     %{_qt6_archdatadir}/mkspecs/modules/qt_lib_shadertools.pri
111     %{_qt6_archdatadir}/mkspecs/modules/qt_lib_shadertools_private.pri
112     %{_qt6_libdir}/libQt6ShaderTools.prl
113     %{_qt6_libdir}/libQt6ShaderTools.so
114     %{_qt6_libdir}/cmake/Qt6ShaderTools/
115     %{_qt6_libdir}/cmake/Qt6ShaderToolsTools/
116     %{_qt6_datadir}/modules/ShaderTools.json
117 daviddavid 1723704 #
118 daviddavid 1722885 %{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtShaderToolsTestsConfig.cmake
119 neoclust 1755850 %{_qt6_libdir}/metatypes/qt6shadertools_relwithdebinfo_metatypes.json
120 daviddavid 1722885
121     #------------------------------------------------------------------------------
122    
123     %prep
124     %setup -q -n qtshadertools-everywhere-src-%{qtversion}
125     %autopatch -p1
126    
127     %build
128     %cmake_qt6
129     %cmake_build
130    
131     %if %{build_docs}
132     %__make docs
133     %endif
134    
135     %install
136     %cmake_install
137    
138     %if %{build_docs}
139     %make_install install_docs INSTALL_ROOT=%{buildroot}
140     %endif
141    
142     # .la and .a files, die, die, die.
143     find %{buildroot} -name '*.la' -delete

  ViewVC Help
Powered by ViewVC 1.1.30