Skip to content

Commit

Permalink
feat: Add RPM spec file for Fedora package generation
Browse files Browse the repository at this point in the history
This PR introduces an RPM spec file for the freeipa-webui, enabling Fedora package generation. The spec file is configured to use `autochangelog` and `autorelease` macros for streamlined changelog management and automated release numbering.

Fixes: freeipa#635
Signed-off-by: Francisco Trivino <[email protected]>
  • Loading branch information
f-trivino committed Feb 12, 2025
1 parent 4a82415 commit 7fb886c
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions freeipa-webui.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Name: freeipa-webui
Version: 0.1.1
Release: %autorelease
Summary: New version of the web application for administration of FreeIPA built using React and PatternFly 6.

License: GPL-3.0-only
URL: https://github.com/freeipa/freeipa-webui.git
Source0: %{name}-%{version}.tar.gz

# Build dependencies
BuildRequires: nodejs
BuildRequires: npm
#BuildRequires: nodejs-webpack


# Runtime dependencies
Requires: nodejs


%description
New version of the web application for administration of FreeIPA built using React and PatternFly 5.

# Ensure npm modules are not shipped from upstream
rm -rf node_modules

%prep
%autosetup
npm install -g webpack webpack-cli


%build
# Install npm dependencies
npm install --production
npm run build

%install
# Create the install directory
mkdir -p %{buildroot}%{_datadir}/%{name}

# Copy project files to the install directory
cp -r * %{buildroot}%{_datadir}/%{name}

%files
%{_datadir}/%{name}
%doc README.md
%license LICENSE


%changelog
%autochangelog

0 comments on commit 7fb886c

Please sign in to comment.