SHA256
1
0
forked from pool/adriconf
adriconf/adriconf.spec
2022-12-06 13:52:20 +00:00

81 lines
2.5 KiB
RPMSpec

#
# spec file for package adriconf
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: adriconf
Version: 2.5.1
Release: 0
Summary: Advanced DRI Configurator
License: GPL-3.0-only
Group: System/Packages
URL: https://gitlab.freedesktop.org/mesa/adriconf
Source0: https://gitlab.freedesktop.org/mesa/adriconf/-/archive/v%{version}/adriconf-v%{version}.tar.bz2
Source1: adriconf.desktop
Source2: driconf-icon.png
BuildRequires: Mesa-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libboost_filesystem-devel >= 1.60
BuildRequires: libboost_locale-devel >= 1.60
BuildRequires: libboost_system-devel >= 1.60
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(gdkmm-3.0) > 3.24
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libpci)
BuildRequires: pkgconfig(pciaccess)
BuildRequires: pkgconfig(pugixml)
BuildRequires: pkgconfig(x11)
%description
adriconf (Advanced DRI CONFigurator) is a GUI tool used to configure open
source graphics drivers. It works by setting options and writing them to
the standard drirc file used by the Mesa drivers.
%lang_package
%prep
%autosetup -n %{name}-v%{version}
%build
%cmake \
-DENABLE_UNIT_TESTS=OFF
%cmake_build
%install
%cmake_install
mkdir -p %{buildroot}/%{_datadir}/{applications,pixmaps}
install -Dpm 0755 %{SOURCE1} \
%{buildroot}/%{_datadir}/applications/%{name}.desktop
install -Dpm 0755 %{SOURCE2} \
%{buildroot}/%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file %{buildroot}/%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
%files
%license LICENSE
%{_bindir}/adriconf
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%files lang -f %{name}.lang
%changelog