Commit graph

21 commits

Author SHA1 Message Date
Miika Alikirri
4218c056ad spec: Support SUSE specic BuildRequires 2024-03-22 21:00:35 +01:00
Martin Pitt
a0f5432f4e Drop remaining vestiges of $LINT
This got removed in commit 15be883595.
2024-02-08 09:10:31 +01:00
Tomas Matus
3b14e61390 build.js: support flags
Adds flags to build.js to use rsync, disable linting and use watch mode.
2023-07-26 13:38:51 +02:00
Martin Pitt
dd38010b9c packaging: Update spec License: to SPDX format 2023-07-26 10:13:14 +02:00
Subho
1c30b49d3d
Move from webpack to esbuild bundler 2023-04-12 10:23:20 +02:00
Martin Pitt
8817969d16 packaging: Declare bundled NPM dependencies in spec file
See https://bugzilla.redhat.com/show_bug.cgi?id=2180520

Turn the pattern make rule into an explicit one, as pattern rules don't
support dependencies. We only need it for our single spec file anyway.
2023-04-05 10:17:28 +02:00
Martin Pitt
0203b962c9 Revert "spec: use nodejs-devel on Fedora"
This reverts commit b47bb4714a.

For the last couple of weeks, nodejs-devel has been uninstallable in
COPR, as it has a different major version than nodejs. This was only
introduced as a formality, not because we actually need it.
2023-03-28 10:25:54 +02:00
Martin Pitt
cd6b2afc15 Generalize bundler language/variable names
These changes are not specific to webpack, but apply to other bundlers
as well.
2023-02-20 10:01:02 +01:00
Martin Pitt
57d7c73d6e Install into /usr/local/ by default
/usr is package manager territory, and not even writable on OSTree based
systems such as Fedora CoreOS or RHEL Edge. This has been common and
good practice in autotools for decades.

You can still override this with `make install PREFIX=...`. Use that in
the RPM spec file.
2022-09-14 09:53:10 +02:00
Martin Pitt
d41744c085 packaging: Disable webpack rebuild in RHEL/CentOS 8
RHEL 8 has node 10, which is too old for current
jest-worker/eslint/stylelint NPM modules.

The webpack rebuild during RPM build was introduced to satisfy Fedora
packaging policy, but it's not a requirement on RHEL 8. So just disable
it there.
2022-06-27 10:50:08 +02:00
Martin Pitt
c069d7b223 packaging: Drop unnecessary cockpit-system dependency
All cockpit extensions should only require the bridge, at least as long
as they are independent from any other page (which is usually the case).
We still need cockpit-system for the tests (thus keep it in
test/browser/main.fmf), but it is perfectly reasonable to look at a
particular Cockpit page via the "remote hosts" panel, cockpit-desktop,
or Cockpit Client.
2022-06-07 21:11:21 +02:00
Pino Toscano
a6508f5d99 spec: move AppStream validation to %check
https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/
suggests that can be in either; it is slightly more logical in %check.

Reported by Neal Gompa, thanks!
2022-05-12 16:43:56 +02:00
Pino Toscano
e3f668b584 spec: use %autosetup
Replace the two %setup calls with %autosetup; the second call was even
redoing the first.

Reported by Neal Gompa, thanks!
2022-05-12 16:43:56 +02:00
Martin Pitt
f86c02c60e spec: Add an empty %check section
Add a comment where and how the package is being tested, to show that
it's not simply a forgotten section.
2022-05-10 09:51:50 +02:00
Martin Pitt
bee838088d spec: Clean up pre-existing dist/ in %prep
By convention.

See https://bugzilla.redhat.com/show_bug.cgi?id=1969450
2022-05-10 09:51:50 +02:00
Martin Pitt
0c954dbf49 spec: Set ExclusiveArch:
This forces the package build to happen on a koji builder which actually
supports node. It's pointless at runtime (as the code runs in a browser,
not through node), but in practice, `nodejs_arches` encompasses all
supported Fedora/RHEL architectures anyway.

https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/#_exclusivearch
2022-05-10 09:51:50 +02:00
Pino Toscano
b47bb4714a spec: use nodejs-devel on Fedora
According to the Fedora guidelines, nodejs-devel is needed for using
nodejs modules:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/#_buildrequires

Since this applies only on Fedora, and that nodejs-devel may not even
exist on other distros (e.g. CentOS 9 Stream), then limit the
nodejs-devel requirement only to Fedora, keep using nodejs
unconditionally everywhere.
2022-05-10 09:51:50 +02:00
Martin Pitt
e069cbbfbd spec: Don't run eslint
It's useless there -- any style error that may happen there has already
slipped through the upstream release, and at RPM build time there is
nothing that can be done about it. It just wastes time.

This allows us to bump eslint to a newer version which is incompatible
with the older node.js on RHEL/CentOS 8.
2022-04-11 07:56:29 +02:00
Pino Toscano
4377c4fe19 po: merge translations for metainfo file
When installing the module, instead of copying the metainfo file to the
destination, merge the available translations for it. Since this is done
at install time, add gettext as BuildRequires for the RPM packaging;
add libappstream-glib-devel as well only on RHEL/CentOS 8, since it
contains the metainfo.its for gettext in order to handle .metainfo.xml
files.

This requires a LINGUAS file with the list of translations currently
available: this is the way msgfmt picks the available languages to
merge. Generate it dynamically from the list of available .po files.
2022-03-09 16:02:26 +01:00
Pino Toscano
e10a8702a7 spec: drop the debug_package %define
The generated RPM is noarch, so by definition has no binaries to extract
debug symbols from. Hence, drop the %define that makes RPM not error out
in case there are no debug symbols around (usually in archful binaries).
2022-03-09 07:15:49 +01:00
Martin Pitt
799d8f5cc9 Move spec file into packaging/
This is cleaner once projects add debian and arch packaging.

Factorize the spec name/path in the Makefile.
2022-02-04 08:47:32 +01:00
Renamed from cockpit-starter-kit.spec.in (Browse further)