Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Compiler-Tools-15.6
qtforkawesome
_service:set_version:qtforkawesome.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:qtforkawesome.spec of Package qtforkawesome
# # spec file for package qtutilities # # Copyright (c) 2021 Martchus # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define reponame qtforkawesome %define reponame_forkawesome Fork-Awesome %define version_forkawesome latest %define soname 1 # define _libqt5_plugindir macro for Fedora %if 0%{?fedora_version} %define _libqt5_plugindir %{_libdir}/qt5/plugins %endif Name: %{reponame} Version: 1709212201.d363a5c Release: 0 Summary: Library that bundles ForkAwesome for use within Qt applications License: GPL-2.0+ Group: System/Packages Url: https://github.com/Martchus/%{reponame} Source0: %{reponame}-%{version}.tar.xz Source1: %{reponame_forkawesome}-%{version_forkawesome}.tar.xz BuildRequires: cmake >= 3.9 %if 0%{?fedora} %else BuildRequires: ninja %endif %if 0%{?sle_version} && 0%{?sle_version} < 160000 BuildRequires: gcc9-c++ %else BuildRequires: gcc-c++ %endif BuildRequires: c++utilities-devel BuildRequires: qtutilities-devel BuildRequires: perl-YAML-LibYAML %if 0%{?fedora_version} BuildRequires: qt5-qtbase-devel >= 5.6.0 BuildRequires: qt5-qtdeclarative-devel >= 5.6.0 %else BuildRequires: libqt5-qtbase-devel >= 5.6.0 BuildRequires: libqt5-qtdeclarative-devel >= 5.6.0 %endif BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Library that bundles ForkAwesome for use within Qt applications. %package -n lib%{reponame}%{soname} Summary: Library that bundles ForkAwesome for use within Qt applications Group: System/Libraries Provides: lib%{reponame} = %{version} Obsoletes: lib%{reponame} < %{version} %description -n lib%{reponame}%{soname} Library that bundles ForkAwesome for use within Qt applications. %package devel Summary: Devel files for %{reponame} Group: Development/Libraries/C and C++ Requires: c++utilities-devel Requires: qtutilities-devel Requires: lib%{reponame}%{soname} = %{version} Requires: qtforkawesomeiconengine = %{version} %description devel Development files for %{reponame} %package -n libqtquickforkawesome%{soname} Summary: Library that bundles ForkAwesome for use within Qt Quick applications Group: System/Packages Provides: libqtquickforkawesome%{reponame} = %{version} Obsoletes: libqtquickforkawesome%{reponame} < %{version} %description -n libqtquickforkawesome%{soname} Library that bundles ForkAwesome for use within Qt Quick applications. %package -n qtquickforkawesome-devel Summary: Devel files for qtquickforkawesome Group: Development/Libraries/C and C++ Requires: %{reponame}-devel Requires: libqtquickforkawesome%{soname} = %{version} %description -n qtquickforkawesome-devel Development files for qtquickforkawesome %package -n qtforkawesomeiconengine Summary: Qt icon engine for %{reponame} Group: Development/Libraries/C and C++ Requires: lib%{reponame}%{soname} = %{version} %description -n qtforkawesomeiconengine Qt icon engine plugin for %{reponame} %prep %setup -q -D -b 1 -n %{reponame_forkawesome}-%{version_forkawesome} %setup -q -n %{reponame}-%{version} %build %if 0%{?sle_version} && 0%{?sle_version} < 160000 export CC=gcc-9 export CXX=g++-9 %endif %if 0%{?fedora} %else %define __builder ninja %endif %cmake \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DBUILTIN_TRANSLATIONS:BOOL=ON \ -DQT_PLUGIN_DIR=%{_libqt5_plugindir} \ %if 0%{?suse_version} > 1500 -DFORK_AWESOME_FONT_FILE="%{_builddir}/%{reponame_forkawesome}-%{version_forkawesome}/fonts/forkawesome-webfont.woff2" \ %else -DFORK_AWESOME_FONT_FILE="%{_builddir}/%{reponame_forkawesome}-%{version_forkawesome}/fonts/forkawesome-webfont.ttf" \ %endif -DFORK_AWESOME_ICON_DEFINITIONS="%{_builddir}/%{reponame_forkawesome}-%{version_forkawesome}/src/icons/icons.yml" %if 0%{?fedora} && 0%{?fedora_version} < 33 make %{?_smp_mflags} %else %cmake_build %endif %check export QT_QPA_PLATFORM=offscreen %if 0%{?fedora} %if 0%{?fedora_version} < 33 make %{?_smp_mflags} check %else export LD_LIBRARY_PATH="$PWD/%{__cmake_builddir}:$LD_LIBRARY_PATH" %cmake_build --target check %endif %else cd "%{__builddir}" export LD_LIBRARY_PATH="$PWD:$LD_LIBRARY_PATH" %cmake_build check %endif %install %if 0%{?fedora} && 0%{?fedora_version} < 33 DESTDIR=%{buildroot} make %{?_smp_mflags} install %else %cmake_install %endif %post -n lib%{reponame}%{soname} -p /sbin/ldconfig %postun -n lib%{reponame}%{soname} -p /sbin/ldconfig %post -n libqtquickforkawesome%{soname} -p /sbin/ldconfig %postun -n libqtquickforkawesome%{soname} -p /sbin/ldconfig %files -n lib%{reponame}%{soname} %license LICENSE %{_libdir}/lib%{reponame}.so.* %files -n libqtquickforkawesome%{soname} %{_libdir}/libqtquickforkawesome.so.* %files devel %doc README.md %{_includedir}/%{reponame} %{_datadir}/%{reponame} %{_datadir}/%{reponame}iconengine %{_libdir}/pkgconfig/%{reponame}.pc %{_libdir}/pkgconfig/%{reponame}iconengine.pc %{_libdir}/lib%{reponame}.so %files -n qtquickforkawesome-devel %{_includedir}/qtquickforkawesome %{_datadir}/qtquickforkawesome %{_libdir}/pkgconfig/qtquickforkawesome.pc %{_libdir}/libqtquickforkawesome.so %files -n qtforkawesomeiconengine %dir %{_libqt5_plugindir}/iconengines %{_libqt5_plugindir}/iconengines/lib%{reponame}iconengine.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor