## 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 sdbus_version 2.0.0 Name: hyprlock Version: 0.5.0 Release: %autorelease -b2 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 # 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 * Mon Dec 23 2024 John Doe - 0.5.0-2 - Uncommitted changes ## END: Generated by rpmautospec