Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RPM stuff #23

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README-RPM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Creating the RPM packages
Tested with Fedora-40 and RHEL(or it's clones)-9
## Requirements
- mock
- rpmbuild
## Build
**Without unpacking the archive!!!**
1. rpmbuild -ts gcfflasher-<version>.tar.gz
2. mock -r <change root> <path to generated SRPM file>
38 changes: 38 additions & 0 deletions gcfflasher.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Name: gcfflasher
Version: 4.5.2
Release: 1%{?dist}
Summary: Updater for the firmware of Zigbee devices
License: BSD
URL: https://github.com/dresden-elektronik/gcfflasher/
Suggests: %{name}-old-devices
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake gcc-c++
BuildRequires: pkgconfig(libgpiod)

%description
GCFFlasher is the tool to program the firmware of dresden elektronik
Zigbee products.

%package old-devices
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libgpiod
Summary: Add support for older devices
%description old-devices
Older devices are only supported using libgpiod via dlopen().

%prep
%autosetup

%build
%cmake
%cmake_build

%install
%cmake_install

%files
%doc README.md
%license LICENSE.txt
%{_bindir}/GCFFlasher

%files old-devices
Loading