5 Commits

Author SHA256 Message Date
e4fa194cba Accepting request 1286582 from X11:Utilities
OBS-URL: https://build.opensuse.org/request/show/1286582
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/arandr?expand=0&rev=8
2025-06-18 15:58:24 +00:00
2b467e7fac Accepting request 1286168 from home:bmwiedemann:branches:X11:Utilities
Add reproducible.patch for normalizing gzip mtime

please send the patch upstream

OBS-URL: https://build.opensuse.org/request/show/1286168
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/arandr?expand=0&rev=29
2025-06-18 08:26:25 +00:00
000062d13b Accepting request 1286317 from X11:Utilities
OBS-URL: https://build.opensuse.org/request/show/1286317
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/arandr?expand=0&rev=7
2025-06-17 16:21:41 +00:00
72c6d36f3f Accepting request 1286272 from home:nkrapp:branches:X11:Utilities
Fix runtime requirements to not use single-spec

OBS-URL: https://build.opensuse.org/request/show/1286272
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/arandr?expand=0&rev=27
2025-06-17 09:44:39 +00:00
d95badfb51 Accepting request 1286083 from home:nkrapp:branches:X11:Utilities
- convert to pip-based build and update build requirements

OBS-URL: https://build.opensuse.org/request/show/1286083
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/arandr?expand=0&rev=26
2025-06-16 13:11:32 +00:00
3 changed files with 42 additions and 14 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jun 16 16:31:55 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add reproducible.patch for normalizing gzip mtime
-------------------------------------------------------------------
Mon Jun 16 12:02:02 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- convert to pip-based build and update build requirements
-------------------------------------------------------------------
Tue Jul 16 05:15:42 UTC 2024 - Stefan Seyfried <seife+obs@b1-systems.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package arandr
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
# Copyright (c) 2013,2019 B1 Systems GmbH, Vohburg, Germany <seife+obs@b1-systems.com>
#
@@ -18,6 +18,7 @@
#
%define pythons python3
Name: arandr
Version: 0.1.11
Release: 0
@@ -26,20 +27,20 @@ License: GPL-3.0-only
URL: https://christian.amsuess.com/tools/arandr/
Source: http://christian.amsuess.com/tools/arandr/files/%{name}-%{version}.tar.gz
Patch1: arandr-fix_desktop_icon.patch
Patch2: reproducible.patch
BuildRequires: %{python_module base}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: gobject-introspection
BuildRequires: make
BuildRequires: python3
BuildRequires: python3-docutils
Requires: python3-gobject
Requires: python3-gobject-Gdk
Requires: python3-pycairo
BuildRequires: update-desktop-files
BuildArch: noarch
%if 0%{?suse_version} >= 1220
Requires: xrandr
%else
Requires: xorg-x11
%endif
BuildArch: noarch
%description
ARandR is designed to provide a simple visual front end for XRandR. Relative
@@ -50,12 +51,11 @@ way.
%autosetup -p0
%build
python3 ./setup.py build
%pyproject_wheel
%install
python3 ./setup.py install \
--prefix="%{_prefix}" \
--root=%{buildroot}
%pyproject_install
%python_expand %fdupes %{buildroot}%{python3_sitelib}/screenlayout
# removed obsolete suse_update_desktop_file
#suse_update_desktop_file -r "${name}" Settings DesktopSettings
@@ -76,6 +76,6 @@ chmod 0755 "%{buildroot}%{_bindir}"/*
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/unxrandr.1%{?ext_man}
%{python3_sitelib}/screenlayout/
%{python3_sitelib}/arandr-%{version}-py*.egg-info
%{python3_sitelib}/arandr-%{version}.dist-info
%changelog

18
reproducible.patch Normal file
View File

@@ -0,0 +1,18 @@
Date: 2025-06-16
Normalize gzip mtime
for reproducible builds
Index: arandr-0.1.11/setup.py
===================================================================
--- setup.py
+++ setup.py
@@ -111,7 +111,8 @@ class build_man(NoOptionCommand):
info('compressing man page to %s', gzfile)
if not self.dry_run:
- compressed = gzip.open(gzfile, 'w', 9)
+ f = open(gzfile, "wb")
+ compressed = gzip.GzipFile(fileobj=f,mode="wb",filename="",mtime=0)
compressed.write(manpage)
compressed.close()