4a9a7bd4a5
patching: only modify temporary files (and fix patch output)
2023-10-03 22:24:59 +02:00
11554c5053
add even more type annotations and start checking with mypy
2023-10-02 01:05:42 +02:00
eb448953a1
patching: refactor to use rust2rpm-helper if available
...
Also fixes test fixtures (some of which were actually *wrong* ...).
2023-10-02 00:33:44 +02:00
1fdcd8ca22
fix wrong type annotations and add a few missing ones
2023-10-01 23:36:20 +02:00
b94ecf1ece
tests: add two missing assert statements
2023-10-01 23:01:38 +02:00
cdc2355460
Release 24.4.2
2023-09-30 16:51:36 +02:00
7a07a61fd8
Release 24.4.1
2023-09-30 15:50:10 +02:00
a58f78d7e8
tests: adapt fixtures for cargo2rpm v0.1.8
2023-09-30 15:48:57 +02:00
1432b5d1a2
generator: fix some type annotations
2023-09-30 15:35:10 +02:00
6cb6cc3f78
generator: correctly mark warning about missing license as comment
2023-09-24 23:28:43 +02:00
be5b992f24
Release 24.4.0
2023-08-08 14:16:51 +02:00
4cfdb49afd
template: move Requires below License tag in binary packages
2023-08-07 21:41:05 +02:00
03156817a9
template: escape cargo_license_summary macro in comment
2023-08-06 22:56:10 +02:00
2df685241e
crate: exclude "target" directory from license file search paths
2023-08-06 11:23:56 +02:00
3231fba9ba
generator: filter out already enabled features from required feature flags
2023-08-06 11:14:45 +02:00
7166b781bd
template: include %cargo_license / %cargo_license_summary macros
...
The macros are now well-tested and can be used unconditionally for
packages that ship statically linked binaries (executables or
shared libraries).
2023-08-06 11:02:26 +02:00
a841ba0c1c
Release 24.3.3
2023-05-17 20:46:45 +02:00
294741a2b1
crate: fix undefined variable error caused by recent commit
2023-05-17 20:43:48 +02:00
bfe8c92989
Release 24.3.2
2023-05-17 20:04:38 +02:00
cf4ed29e5a
conf: fix reading lib+default.requires from rust2rpm.conf
...
The "default" feature is always implicitly defined, so it can always
be used in rust2rpm.conf. However, previous to this commit, it was not
loaded correctly if the crate did not explicitly define a "default"
feature.
2023-05-17 20:00:26 +02:00
jackyzy823
a4f4b0df93
crate: store crate before parsing
2023-04-27 21:28:08 +08:00
30185b6c8d
Release 24.3.1
2023-04-19 19:21:23 +02:00
b67933d097
add "riscv64" to list of target_arch values that are supported
2023-04-19 19:11:33 +02:00
e3c2ef7dda
conf: fix subtle bug in rust2rpm.conf validation
...
The "default" feature is always implicitly defined, even if not
explicitly listed in the crate metadata, so it's always valid.
2023-04-03 00:05:21 +02:00
1fdcc4a2a0
Release 24.3.0
2023-04-01 16:31:36 +02:00
9de25b0a25
conf/generator: support overriding generated RPM summary
2023-04-01 16:20:26 +02:00
267d9fbef9
conf/template: support specifying supported architectures
2023-04-01 15:59:15 +02:00
6f40c1a026
Release 24.2.0
2023-03-20 22:20:35 +01:00
26aa680301
cli: add automatic --compat flag, deprecate manual --suffix argument
2023-03-18 20:15:54 +01:00
d0d3742a07
Release 24.1.0
2023-03-03 19:30:37 +01:00
851f7468ea
conf: simplify rust2rpm.conf file parsing tests
2023-03-03 19:02:50 +01:00
a4475f92da
conf: support explicitly enabling non-default features
2023-03-03 18:53:02 +01:00
bd09ff4106
conf: fix undefined variable and improve test coverage
2023-03-03 00:38:30 +01:00
a0e869199f
generator: add flags for required features to cargo macro calls
2023-03-03 00:13:01 +01:00
0bf11c122d
main: bail if crate version has un-stripped "build metadata"
...
Versions like "0.4.60+curl-7.88.1" currently break package builds.
Stripping "build metadata" automatically and operating with
"crate version" != "rpm version" might be supported in the future,
but this will require changing the %{crate_instdir} macro, among
other things.
Coincidentally, setting the %{crate_version}" macro in cases of
"crate version" != "rpm version" would also render the lua
implementation of the %{version_no_tilde} macro obsolete.
2023-03-02 22:02:21 +01:00
81554651be
main: warn if package uses dependencies that are stricter than SemVer
2023-03-02 21:53:12 +01:00
5705f7e5d2
tests: no longer break every new year
2023-03-02 21:06:40 +01:00
012b99c84c
metadata: add interactive mode for guess_main_package
2023-03-02 20:55:58 +01:00
fb1944d558
conf: factor out rust2rpm.conf file parsing; add validation and tests
2023-03-02 19:35:58 +01:00
539033b196
templates: fix stripping +build metadata from crate versions
2023-02-23 18:38:06 +01:00
15facc465b
Release 24.0.2
2023-02-16 22:10:10 +01:00
4eb2d2bf5d
templates: add FIXME to %install if any shared libraries are built
2023-02-16 22:01:58 +01:00
9696550bb7
meta: require cargo2rpm >= 0.1.2 to fix edge case in "is-lib" checks
2023-02-16 21:39:51 +01:00
64a3f39291
Release 24.0.1
2023-02-16 18:51:21 +01:00
092de1b186
generator: fix application of lib+feature.requires rust2rpm.conf settings
2023-02-16 16:49:20 +01:00
8ca9320328
Release 24.0.0
2023-02-15 21:33:21 +01:00
d248f41cba
remove tools that are obsolete since the %cargo_license macro was added
2023-02-15 21:01:42 +01:00
af0067165c
utils: change fallback editor from vi to nano
2023-02-15 20:30:44 +01:00
4c7b7e42f9
update LICENSE with year and update contributors
2023-02-15 20:30:08 +01:00
de8205940a
generator: do not include %cargo_install for cdylib-only crates
2023-02-15 20:25:34 +01:00