# The following tag is to get correct syntax highlighting for this file in vim text editor # vim: syntax=spec Name: system76-oled Version: 0.1.5 Release: 1 Summary: system76-oled License: LGPLv3 URL: https://github.com/pop-os/system76-oled # Detailed information about the source Git repository and the source commit # for the created rpm package VCS: git+git@github.com:szydell/system76-oled.git#: # git_dir_pack macro places the repository content (the source files) into a tarball # and returns its filename. The tarball will be used to build the rpm. Source: system76-oled-98f778de-dirty.tar.gz #Packages required for build BuildRequires: cargo BuildRequires: dbus-devel BuildRequires: libX11-devel BuildRequires: libXrandr-devel #Packages required to work Requires: dbus-common Requires: libX11 Requires: libXrandr # More detailed description of the package %description Control brightness on OLED displays %define debug_package %{nil} #-- %prep %setup -T -b 0 -q -n system76-oled # This will invoke `make` command in the directory with the extracted sources. %build %make_build DEBUG=1 # This will copy the files generated by the `make` command above into # the installable rpm package. %install %make_install # Those files will be in the rpm %files %{_bindir}/%{name} %{_sysconfdir}/xdg/autostart/%{name}.desktop # Changelog %changelog