Commit Graph

411 Commits

Author SHA1 Message Date
Karel Zak
9c65bc3ff6 use SPDX based identifiers for license field
(cherry picked from commit 0bd50d406feb47fb2a7f2b37a948bf4db506667e)
2024-02-28 11:40:55 +01:00
Colin Walters
1567a60b3a Backport 211a9da0b4
xref https://github.com/coreos/rpm-ostree/issues/4830

(cherry picked from commit 1d94d2966ad14311b3ad3c010f1116e81dc7ed42)
2024-02-16 13:56:28 +01:00
Karel Zak
5854ee9f05 add autorelease and autochangelog 2024-02-07 13:05:18 +01:00
Zbigniew Jędrzejewski-Szmek
ceb56aabcb Replace loop by a single invocation with multiple arguments 2024-02-06 11:31:59 +01:00
Zbigniew Jędrzejewski-Szmek
b15359d1d4 $RPM_BUILD_ROOT → %{buildroot}
It is shorter and also does not mess up the host system if somebody
makes a typo.
2024-02-06 11:31:55 +01:00
Zbigniew Jędrzejewski-Szmek
dc6a971801 Enable fstrim.timer on upgrades
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=2262393 for upgrades.
Since the timer was not enabled previously, we want to enable it here so that
https://fedoraproject.org/wiki/Changes/EnableFSTrimTimer is actually true.
2024-02-06 11:28:02 +01:00
Zbigniew Jędrzejewski-Szmek
e5d9a1e3ef Add unit scriptlets for fstrim.service and .timer
https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_scriptlets

We want to "restart" the timer so that the it's rescheduled if there
are any changes to frequency or other settings. This will not cause the timer
to fire immediately. We don't restart the service itself, because, if it happens
to be running, we want it to just finish as it was.

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=2262393 for new
installations. A preset call was missing for fstrim.timer, so if util-linux
was installed after systemd, the unit would not be enabled.
2024-02-06 11:28:02 +01:00
Zbigniew Jędrzejewski-Szmek
a4d9e81291 Replace systemd dependencies with just ordering
systemd-units has been merged into systemd a long time ago. But we
don't really need this dependency at all. Let's just declare ordering,
so that this package is installed after systemd if both are installed
in the same transaction.

See https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_dependencies_on_the_systemd_package
for discussion and justification.
2024-02-06 11:28:02 +01:00
Zbigniew Jędrzejewski-Szmek
1d0d7588dd Simplify systemd scriplets
It is better to use a single %systemd_* macro to avoid some executions
and repeated checks.
2024-02-06 11:27:58 +01:00
Karel Zak
bac574c283 2.40-0.1: upgrade to v2.40-rc1 2024-02-05 10:29:29 +01:00
Karel Zak
c9ce0bbf54 2.39.3-4: improve util-linux-i18n conflicts 2024-01-25 13:09:13 +01:00
Karel Zak
8ecb7f1bee 2.39.3-3: fix libsmartcols 2024-01-25 11:12:49 +01:00
Karel Zak
a16ce36c6f 2.39.3-2: fix util-linux-i18n conflicts 2024-01-11 15:18:52 +01:00
Karel Zak
302188f833 fix date typo, remove obsolete patch 2023-12-31 12:08:22 +01:00
Karel Zak
58dc9b6959 2.39.3-1: upgrade 2023-12-31 12:05:50 +01:00
Daan De Meyer
9a5289e70c Move sulogin to util-linux-core
An initrd will almost always need sulogin installed for debugging
purposes. This means that we're forced to install the full util-linux
into initrds. Let's allow installing just util-linux-core in initrds
by moving sulogin to util-linux-core.
2023-12-01 20:15:24 +01:00
Karel Zak
59309f26f2 2.39.2-1: upgrade 2023-08-17 12:13:31 +02:00
Fedora Release Engineering
0b1e1d7cfe Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:19:50 +00:00
Python Maint
8760847a17 Rebuilt for Python 3.12 2023-06-28 19:05:08 +02:00
Karel Zak
b2320e7499 2.39.1-1: upgrade 2023-06-28 10:53:17 +02:00
Python Maint
b04999a5a6 Rebuilt for Python 3.12 2023-06-13 20:42:57 +02:00
Karel Zak
7961e208cd 2.39-4: libmount fix 2023-05-25 12:31:34 +02:00
Karel Zak
db855d07b8 2.39-3: fix mount options 2023-05-22 15:57:23 +02:00
Adam Williamson
fe2d027119 Have util-linux obsolete and provide util-linux-user 2023-05-18 09:31:58 -07:00
Karel Zak
844dcc152c 2.39-1: upgrade, add subpackage i18n, remove user 2023-05-18 11:36:49 +02:00
Karel Zak
c87ed81c2c 2.39-0.5: upgrade to 2.39-rc3 2023-04-19 11:39:42 +02:00
Karel Zak
09904cbd56 2.39-0.4: fix libmount 2023-04-05 21:59:20 +02:00
Karel Zak
5fa93ec5e0 fix spec file for -rc2 2023-04-04 19:34:43 +02:00
Karel Zak
3bf1f5a44f 2.39-0.2: upgrade to -rc2 2023-04-04 14:59:49 +02:00
Karel Zak
a228e53a4b 2.39-0.1: upgrade to -rc1 2023-03-20 13:55:14 +01:00
Fedora Release Engineering
a04c11370c Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:01:31 +00:00
Florian Weimer
d65ce0b32c Backport upstream patch to fix C99 issue in kill
It is again necessary to run autotools during the build.

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2022-12-17 21:40:37 +01:00
Karel Zak
260ccc24c5 2.38.1-2: improve tmpfiles.d use 2022-08-22 12:00:27 +02:00
Karel Zak
c96992b25e 2.38.1-1: upgrade 2022-08-04 16:04:00 +02:00
Fedora Release Engineering
dd1f0e5a82 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 11:35:51 +00:00
Python Maint
f64c455630 Rebuilt for Python 3.11 2022-06-13 15:08:44 +02:00
Karel Zak
1f18765a68 2.38-3: fix changelog 2022-04-13 20:47:23 +02:00
Zbigniew Jędrzejewski-Szmek
6c5649c0b6 Simplify creation of /etc/mtab symlink
It was created unconditionally in %post, so the original contents (if
any) were overwritten. Listing is as %config was just misleading.
Let's simply list the symlink as normal contents in the rpm, so that
rpm can install the symlink for us.

(The scriplet was missing a dependency on coreutils for ln, but let's
not add that if we can drop the whole thing.)

[kzak@redhat.com: - add %changelog entry]
2022-03-30 13:33:13 +02:00
Karel Zak
6578411a87 2.38-1: upgrade, spec file cleanup 2022-03-30 13:15:41 +02:00
Zbigniew Jędrzejewski-Szmek
3b965f951d Modernize style
Guidelines say %global should be used instead of %define.
Also drop periods from Summary, add them to %description.
%__sed and friends are deprecated.
2022-03-30 13:05:58 +02:00
Zbigniew Jędrzejewski-Szmek
c409cb5073 Drop very old upgrade scriptlet for libblkid
It was there in the initial commit in 2011, but it looks like it is
older than that.
2022-03-30 12:58:54 +02:00
Karel Zak
f3b1a65177 2.38-rc3: upgrade 2022-03-16 09:54:43 +01:00
Karel Zak
5abc3df64a 2.38-0.3: add /usr/lib/tmpfiles.d/uuidd.conf 2022-02-02 12:23:05 +01:00
Zbigniew Jędrzejewski-Szmek
f9a78e1def 2.38-0.2: Release ownership of /var/log/lastlog
/var/log directory is provided by filesystem package, no need to create
it. And systemd >= 235 will create /var/log/lastlog owned by utmp. So
release ownership of the file, and let systemd manage it.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1798685.
Similar change in setup: https://pagure.io/setup/pull-request/30.
2022-02-02 11:23:26 +01:00
Karel Zak
93b5e7b623 2.38-0.1: upgrade to v2.38-rc1 2022-01-31 16:22:25 +01:00
Fedora Release Engineering
b3ca809df8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 03:42:53 +00:00
Karel Zak
2abaf6eb96 2.37.2-1: upgrade 2021-08-17 10:43:34 +02:00
Fedora Release Engineering
f9f53d46a2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 20:13:49 +00:00
Karel Zak
31097faf0c 2.37-5: remove util-linux-60-raw.rules 2021-07-14 18:20:13 +02:00
Karel Zak
e7be6ae5f5 2.37-4: fix #1981729 (close_range(), remove raw(8) and PCRE2 use) 2021-07-14 18:08:26 +02:00