/[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 1723704 - (hide annotations) (download)
Sat May 15 14:48:22 2021 UTC (3 years, 3 months ago) by daviddavid
Original Path: cauldron/qtshadertools6/current/SPECS/qtshadertools6.spec
File size: 3775 byte(s)
SILENT: cleanup

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     %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    
103     %description -n %{libqtshadertools_d}
104     Devel files needed to build apps based on Qt Bodymovin.
105    
106     %files -n %{libqtshadertools_d}
107     %{_qt6_includedir}/QtShaderTools/
108     %{_qt6_archdatadir}/mkspecs/modules/qt_lib_shadertools.pri
109     %{_qt6_archdatadir}/mkspecs/modules/qt_lib_shadertools_private.pri
110     %{_qt6_libdir}/libQt6ShaderTools.prl
111     %{_qt6_libdir}/libQt6ShaderTools.so
112     %{_qt6_libdir}/cmake/Qt6ShaderTools/
113     %{_qt6_libdir}/cmake/Qt6ShaderToolsTools/
114     %{_qt6_datadir}/modules/ShaderTools.json
115 daviddavid 1723704 #
116 daviddavid 1722885 %{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtShaderToolsTestsConfig.cmake
117    
118     #------------------------------------------------------------------------------
119    
120     %prep
121     %setup -q -n qtshadertools-everywhere-src-%{qtversion}
122     %autopatch -p1
123    
124     %build
125     %cmake_qt6
126     %cmake_build
127    
128     %if %{build_docs}
129     %__make docs
130     %endif
131    
132     %install
133     %cmake_install
134    
135     %if %{build_docs}
136     %make_install install_docs INSTALL_ROOT=%{buildroot}
137     %endif
138    
139     # .la and .a files, die, die, die.
140     find %{buildroot} -name '*.la' -delete

  ViewVC Help
Powered by ViewVC 1.1.30