|
|
c0612d6 |
%undefine __cmake_in_source_build
|
|
|
6865cdc |
%global uuid org.%{name}.%{name}
|
|
|
b51e881 |
|
|
|
b51e881 |
Name: corectrl
|
|
|
6483663 |
Version: 1.2.2
|
|
|
90a912d |
Release: 1%{?dist}
|
|
|
33b6361 |
Summary: Friendly hardware control
|
|
|
b51e881 |
|
|
|
b51e881 |
# The entire source code is GPLv3+ except bundled libs:
|
|
|
4e2c7a2 |
# * Boost: tests/3rdparty/catch
|
|
|
4e2c7a2 |
# tests/3rdparty/trompeloeil
|
|
|
4e2c7a2 |
# * BSD: 3rdparty/fmt
|
|
|
4e2c7a2 |
# * MIT: 3rdparty/easyloggingpp
|
|
|
4e2c7a2 |
# 3rdparty/pugixml
|
|
|
4e2c7a2 |
# 3rdparty/units
|
|
|
4e2c7a2 |
# * Public Domain FindBotan.cmake
|
|
|
b51e881 |
License: GPLv3+ and Boost and BSD and MIT and Public Domain
|
|
|
b51e881 |
URL: https://gitlab.com/corectrl/corectrl
|
|
|
6865cdc |
Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
|
|
|
b51e881 |
Source1: README.fedora.md
|
|
|
b51e881 |
|
|
|
b51e881 |
BuildRequires: cmake
|
|
|
6cb9e0d |
BuildRequires: desktop-file-utils
|
|
|
6cb9e0d |
BuildRequires: extra-cmake-modules
|
|
|
6cb9e0d |
BuildRequires: gcc-c++
|
|
|
6cb9e0d |
BuildRequires: libappstream-glib
|
|
|
1869d4e |
BuildRequires: libdrm-devel
|
|
|
6cb9e0d |
BuildRequires: ninja-build
|
|
|
e847508 |
|
|
|
b51e881 |
BuildRequires: cmake(KF5Archive)
|
|
|
b51e881 |
BuildRequires: cmake(KF5Auth)
|
|
|
b51e881 |
BuildRequires: cmake(KF5CoreAddons)
|
|
|
b51e881 |
BuildRequires: cmake(Qt5Charts)
|
|
|
b51e881 |
BuildRequires: cmake(Qt5Concurrent)
|
|
|
b51e881 |
BuildRequires: cmake(Qt5Core)
|
|
|
b51e881 |
BuildRequires: cmake(Qt5DBus)
|
|
|
b51e881 |
BuildRequires: cmake(Qt5LinguistTools)
|
|
|
b51e881 |
BuildRequires: cmake(Qt5Multimedia)
|
|
|
b51e881 |
BuildRequires: cmake(Qt5Network)
|
|
|
b51e881 |
BuildRequires: cmake(Qt5Svg)
|
|
|
b51e881 |
BuildRequires: cmake(Qt5Widgets)
|
|
|
e847508 |
|
|
|
b51e881 |
BuildRequires: pkgconfig(botan-2)
|
|
|
b51e881 |
BuildRequires: pkgconfig(x11)
|
|
|
dd41806 |
|
|
|
b51e881 |
Requires: dbus-common
|
|
|
b51e881 |
Requires: hicolor-icon-theme
|
|
|
b51e881 |
Requires: polkit%{?_isa}
|
|
|
b51e881 |
Requires: qca-qt5-ossl%{?_isa}
|
|
|
b51e881 |
Requires: qt5-qtquickcontrols2%{?_isa}
|
|
|
dd41806 |
|
|
|
dd41806 |
# Used to gather more information
|
|
|
dd41806 |
# * For glxinfo
|
|
|
b51e881 |
Recommends: mesa-demos%{?_isa}
|
|
|
4e2c7a2 |
|
|
|
dd41806 |
# * For lscpu
|
|
|
b51e881 |
Recommends: util-linux%{?_isa}
|
|
|
4e2c7a2 |
|
|
|
dd41806 |
# * For vulkaninfo
|
|
|
b51e881 |
Recommends: vulkan-tools%{?_isa}
|
|
|
6865cdc |
|
|
|
b51e881 |
# https://gitlab.com/corectrl/corectrl/issues/13
|
|
|
b51e881 |
Provides: bundled(easyloggingpp) = 9.96.7
|
|
|
b51e881 |
Provides: bundled(fmt) = 5.2.1
|
|
|
b51e881 |
Provides: bundled(pugixml) = 1.9
|
|
|
b51e881 |
Provides: bundled(units)
|
|
|
b51e881 |
|
|
|
b51e881 |
%description
|
|
|
b51e881 |
CoreCtrl is a Free and Open Source GNU/Linux application that allows you to
|
|
|
dd41806 |
control with ease your computer hardware using application profiles. It aims to
|
|
|
dd41806 |
be flexible, comfortable and accessible to regular users.
|
|
|
b51e881 |
|
|
|
6cb9e0d |
- For setup instructions run:
|
|
|
b51e881 |
|
|
|
b51e881 |
xdg-open %{_docdir}/%{name}/README.fedora.md
|
|
|
b51e881 |
|
|
|
6cb9e0d |
- or go to the project wiki:
|
|
|
b51e881 |
|
|
|
b51e881 |
https://gitlab.com/corectrl/corectrl/wikis
|
|
|
b51e881 |
|
|
|
6865cdc |
|
|
|
b51e881 |
%prep
|
|
|
dd41806 |
%autosetup -n %{name}-v%{version} -p1
|
|
|
6865cdc |
|
|
|
b51e881 |
# 'lib64' path fix
|
|
|
b51e881 |
sed -e 's@DESTINATION lib@DESTINATION %{_lib}@g' -i src/CMakeLists.txt
|
|
|
6865cdc |
|
|
|
b51e881 |
# lib soversion fix
|
|
|
b51e881 |
echo "set_property(TARGET corectrl_lib PROPERTY SOVERSION 0)" >> src/CMakeLists.txt
|
|
|
b51e881 |
|
|
|
6865cdc |
|
|
|
b51e881 |
%build
|
|
|
4605c15 |
%cmake \
|
|
|
4605c15 |
-G Ninja \
|
|
|
4605c15 |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
e847508 |
-DBUILD_TESTING=ON \
|
|
|
e847508 |
%{nil}
|
|
|
4605c15 |
%ninja_build -C %{_vpath_builddir}
|
|
|
b51e881 |
|
|
|
6865cdc |
|
|
|
b51e881 |
%install
|
|
|
4605c15 |
%ninja_install -C %{_vpath_builddir}
|
|
|
4605c15 |
install -m0644 -Dp %{SOURCE1} %{buildroot}%{_docdir}/%{name}/README.fedora.md
|
|
|
b51e881 |
find README.md -type f -perm /111 -exec chmod 644 {} \;
|
|
|
dd41806 |
find %{buildroot}/%{_datadir}/. -type f -executable -exec chmod -x "{}" \;
|
|
|
6865cdc |
|
|
|
b51e881 |
# Useless symlink without headers
|
|
|
dd41806 |
rm %{buildroot}/%{_libdir}/libcorectrl.so
|
|
|
b51e881 |
|
|
|
6865cdc |
|
|
|
b51e881 |
%check
|
|
|
4605c15 |
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml
|
|
|
6865cdc |
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
|
|
6865cdc |
|
|
|
b51e881 |
|
|
|
b51e881 |
%files
|
|
|
b51e881 |
%license COPYING LICENSE
|
|
|
e99936f |
%doc README.md README.fedora.md
|
|
|
b51e881 |
%{_bindir}/%{name}
|
|
|
b51e881 |
%{_datadir}/applications/*.desktop
|
|
|
b51e881 |
%{_datadir}/dbus-1/system-services/*.service
|
|
|
b51e881 |
%{_datadir}/dbus-1/system.d/*.conf
|
|
|
6cb9e0d |
%{_datadir}/icons/hicolor/*/*/*.svg
|
|
|
b51e881 |
%{_datadir}/polkit-1/actions/*.policy
|
|
|
b51e881 |
%{_libdir}/libcorectrl.so.0*
|
|
|
b51e881 |
%{_libexecdir}/kf5/kauth/*
|
|
|
6cb9e0d |
%{_metainfodir}/*.xml
|
|
|
b51e881 |
|
|
|
6865cdc |
|
|
|
b51e881 |
%changelog
|
|
|
6483663 |
* Sun Nov 14 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 1.2.2-1
|
|
|
6483663 |
- chore(update): 1.2.2
|
|
|
6483663 |
|
|
|
95b4d1c |
* Sun Sep 19 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 1.2.1-1
|
|
|
95b4d1c |
- build(update): 1.2.1
|
|
|
95b4d1c |
|
|
|
9e7422e |
* Tue Sep 07 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 1.2.0-1
|
|
|
9e7422e |
- build(update): 1.2.0
|
|
|
9e7422e |
|
|
|
90ed657 |
* Mon Aug 23 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.5-1
|
|
|
90ed657 |
- build(update): 1.1.5
|
|
|
90ed657 |
|
|
|
90a912d |
* Wed Jul 28 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.4-1
|
|
|
90a912d |
- build(update): 1.1.4
|
|
|
90a912d |
|
|
|
013bf87 |
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
|
|
|
013bf87 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
013bf87 |
|
|
|
03dbe23 |
* Sun May 09 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.3-1
|
|
|
03dbe23 |
- build(update): 1.1.3
|
|
|
03dbe23 |
|
|
|
734cd22 |
* Mon May 03 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.2-2
|
|
|
734cd22 |
- fix: Tests compilation with newer glibc
|
|
|
734cd22 |
|
|
|
e847508 |
* Sun May 02 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.2-1
|
|
|
e847508 |
- build(update): 1.1.2
|
|
|
e847508 |
|
|
|
002f969 |
* Tue Apr 27 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.1-5
|
|
|
002f969 |
- build(rebuild): 'botan2' soname bump
|
|
|
002f969 |
|
|
|
2534ef4 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
|
|
|
2534ef4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
2534ef4 |
|
|
|
4e7525c |
* Mon Nov 23 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.1-3
|
|
|
4e7525c |
- build(rebuild): 'botan2' soname bump | rh#1892850
|
|
|
4e7525c |
|
|
|
4e7525c |
* Fri Oct 30 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.1-2
|
|
|
f311c4b |
- build(rebuild): 'botan2' soname bump | rh#1892850
|
|
|
f311c4b |
|
|
|
dadf087 |
* Wed Aug 19 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.1-1
|
|
|
dadf087 |
- Update to 1.1.1
|
|
|
dadf087 |
|
|
|
4605c15 |
* Tue Jul 28 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.0-3
|
|
|
4605c15 |
- Rebuild with out-of-source builds new CMake macros
|
|
|
4605c15 |
|
|
|
8cff7e7 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
|
8cff7e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
8cff7e7 |
|
|
|
134e255 |
* Sun May 31 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.1.0-1
|
|
|
134e255 |
- Update to 1.1.0
|
|
|
134e255 |
- Disable LTO
|
|
|
134e255 |
|
|
|
4e2c7a2 |
* Mon Apr 20 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.0.9-1
|
|
|
4e2c7a2 |
- Update to 1.0.9 (basically the same as previous build but now patch upstreamed)
|
|
|
4e2c7a2 |
|
|
|
dd41806 |
* Mon Mar 16 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.0.8-1
|
|
|
dd41806 |
- Update to 1.0.8
|
|
|
dd41806 |
|
|
|
e274968 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-3
|
|
|
e274968 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
e274968 |
|
|
|
1869d4e |
* Sat Nov 23 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 1.0.7-2
|
|
|
1869d4e |
- Add new missed BR dep: libdrm-devel
|
|
|
1869d4e |
|
|
|
6865cdc |
* Sat Nov 23 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 1.0.7-1
|
|
|
6865cdc |
- Update to 1.0.7
|
|
|
6865cdc |
|
|
|
6cb9e0d |
* Wed Sep 04 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 1.0.6-2
|
|
|
6cb9e0d |
- Remove '$(nproc)' from '-flto' for reproducible builds
|
|
|
6cb9e0d |
- Tiny cosmetic spec file fixes
|
|
|
6cb9e0d |
|
|
|
e99936f |
* Sat Aug 10 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 1.0.6-1
|
|
|
e99936f |
- Update to 1.0.6
|
|
|
e99936f |
|
|
|
f87a2e0 |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
|
|
|
f87a2e0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
f87a2e0 |
|
|
|
33b6361 |
* Tue Jul 23 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 1.0.5-1
|
|
|
33b6361 |
- Update to 1.0.5
|
|
|
33b6361 |
- App summary more descriptive now (upstream suggestion)
|
|
|
33b6361 |
|
|
|
b51e881 |
* Wed Jul 17 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 1.0.4-4
|
|
|
b51e881 |
- Update to 1.0.4
|
|
|
b51e881 |
|
|
|
b51e881 |
* Mon Jul 15 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 1.0.3-15
|
|
|
b51e881 |
- Initial package
|
|
|
b51e881 |
- Thanks to Dead_Mozay <dead_mozay@opensuse.org> for initial spec file
|
|
|
6cb9e0d |
- Thanks to Vitaly Zaitsev <vitaly@easycoding.org> for significant help with packaging and review
|