## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global _default_patch_fuzz 2 %global sdbus_version 2.0.0 Name: hyprlock Version: 0.5.0 Release: %autorelease -e patched Summary: Hyprland's GPU-accelerated screen locking utility License: BSD-3-Clause URL: https://github.com/hyprwm/hyprlock Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source: https://github.com/Kistler-Group/sdbus-cpp/archive/v%{sdbus_version}/sdbus-%{sdbus_version}.tar.gz Patch: add-date-variable.diff # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(gbm) BuildRequires: pkgconfig(hyprlang) BuildRequires: pkgconfig(hyprutils) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libmagic) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libwebp) BuildRequires: pkgconfig(opengl) BuildRequires: pkgconfig(pam) BuildRequires: pkgconfig(pangocairo) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-protocols) BuildRequires: pkgconfig(xkbcommon) Provides: bundled(sdbus-cpp) = %{sdbus_version} %description %{summary}. %prep %autosetup -p1 mkdir -p subprojects/sdbus-cpp tar -xf %{SOURCE1} -C subprojects/sdbus-cpp --strip=1 %build pushd subprojects/sdbus-cpp %cmake \ -DCMAKE_INSTALL_PREFIX=%{_builddir}/sdbus \ -DCMAKE_BUILD_TYPE=Release \ -DSDBUSCPP_BUILD_DOCS=OFF \ -DBUILD_SHARED_LIBS=OFF %cmake_build cmake --install %{_vpath_builddir} popd export PKG_CONFIG_PATH=%{_builddir}/sdbus/%{_lib}/pkgconfig %cmake %cmake_build %install %cmake_install rm %{buildroot}%{_datadir}/hypr/%{name}.conf %files %license LICENSE %doc README.md assets/example.conf %{_bindir}/%{name} %config(noreplace) %{_sysconfdir}/pam.d/%{name} %changelog ## START: Generated by rpmautospec * Wed Dec 18 2024 Unknown User - 0.5.0-1.patched - Uncommitted changes * Mon Jul 22 2024 Pavel Solovev - 0.4.1-1 - Update to 0.4.1 * Thu Jul 18 2024 Fedora Release Engineering - 0.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 17 2024 Pavel Solovev - 0.4.0-2 - hyprutils rebuild * Sat Jul 06 2024 Pavel Solovev - 0.4.0-1 - Update to 0.4.0 * Sat Jun 01 2024 Pavel Solovev - 0.3.0-1 - import rhbz#2266231 ## END: Generated by rpmautospec