Commit graph

19 commits

Author SHA1 Message Date
Martin Pitt
a5f319b804 spec: Avoid repeating package name
Use rpm's `%{name}` macro instead. This makes it easier for forks to
keep the spec file in sync.
2021-09-16 10:32:58 +02:00
Martin Pitt
9574611768 Rebuild webpack during RPM build
This is necessary to comply with Fedora's packaging policy:
https://docs.fedoraproject.org/en-US/packaging-guidelines/JavaScript/

Include the node cache in the source rpm, unpack it into the main source
dir, and force a webpack rebuild in `%build`.
2021-09-10 17:50:06 +02:00
Martin Pitt
4ca75f143c Move to xz dist tarballs
For consistency with the already xz'ed node tarball.

Rename the oddly named `dist-gzip` target to the standard `dist`.
2021-09-10 17:50:06 +02:00
Martin Pitt
a509dde986 Update terser-webpack-plugin
Following our other projects.
2021-07-27 09:42:10 +02:00
Martin Pitt
2624dbb891 Build and ship LICENSE file
Bring back terser-webpack-plugin from commit c52136c051 and re-enable
it. It builds the autogenerated dist/index.js.LICENSE.txt which is quite
important for shipping distribution packages -- c-{podman,machines} both
do this.

Backport 95021c336e
to make sure that the webpack for the release tarball is *actually*
built in production mode.
2021-04-12 08:45:52 +02:00
Martin Pitt
45b8c2a45a spec: Don't fail if there are no map files 2021-04-09 13:01:05 +02:00
Martin Pitt
b9616257c2 spec: Add BuildRequires: make
See https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2020-12-17 08:47:17 +01:00
Martin Pitt
38bd17faef Make cockpit-starter-kit.spec.in rpmspec compliant
Use `%{VERSION}` as version macro instead of `@VERSION@`, so that the
.spec.in file is syntactically a correct spec file that can be parsed
with `rpmspec`.
2020-03-10 11:49:29 +01:00
Martin Pitt
35011e4709 Drop source map
They are large and just for debugging. If they are needed, they should
move into a separate -debugsource package, but this seems a bit overkill
as a default.

Closes #197
2019-07-17 17:43:01 +02:00
Martin Pitt
a0d4171cc8 Validate AppStream metainfo during RPM build
This is a requirement in the Fedora packaging guidelines:
https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/#_app_data_validate_usage

Closes #102
2019-02-12 09:37:42 +01:00
Kirill Glebov
7b67b091f1 Add cockpit dependency
Closes #67
2019-01-17 16:45:15 +01:00
Martin Pitt
959d743452 Drop Python3 build requirement
This is only being used for extracting the package name from package
json, to avoid having to duplicate it in `Makefile`.
But for only this purpose, Python 3 is rather heavyweight. It's also not
available on RHEL/CentOS 7.
2018-08-28 22:51:10 +02:00
Martin Pitt
0c7ff6a896 Fix license tag in spec file
https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
2018-08-28 22:51:10 +02:00
Martin Pitt
a26ef5d27c Simplify spec file
- Entirely drop `%build` section, as there is nothing to do anyway.
- Use `%make_install` macro.
- Replace the complicated file list wrangling with a simple directory
  enumeration.

Thanks to Igor Gnatenko for the suggestions!

See https://bugzilla.redhat.com/show_bug.cgi?id=1603146

Closes #38
2018-08-02 10:16:49 -04:00
Martin Pitt
e9635620c5 spec: Don't try to rebuild webpack when building released tarballs
Release tarballs already have dist/. We can't rebuild the webpack in an
RPM as that requires npm and network access for `npm install`. But we
also don't want to ship the entire `node_modules/` as that is huge and
would require lots of careful license review.

So ship a stub node_modules/ that satisfies the Makefile dependency.
Make sure that this is not newer than package.json or anything in dist/,
so that none of the Makefile's rebuild rules trigger.

Closes #36
2018-07-19 09:11:07 +02:00
Martin Pitt
d3b8811ac6 spec: Add missing python3 build dependency
Required for Makefile to determine the package name from the manifest.
2018-07-19 09:11:07 +02:00
Martin Pitt
d361bbd76c spec: Add %changelog stub
So that cockpituous' release-srpm can properly add the changelog from
the tag.
2018-07-19 09:11:07 +02:00
Martin Pitt
cc7f892897 spec: Fix Release 2018-07-19 09:11:07 +02:00
Martin Pitt
f26741e269 Add git tag derived version to tarball and spec
Stop hardcoding the version in the spec file, and put the version into
dist tarballs.

Closes #27
2018-06-22 20:07:29 +02:00
Renamed from cockpit-starter-kit.spec (Browse further)