Sync from SUSE:SLFO:Main update-test-trivial revision d899fd9fce43568d678d657ca3730fc3

This commit is contained in:
Adrian Schröter 2024-05-04 01:39:04 +02:00
commit e8b671e324
5 changed files with 337 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
baselibs.conf Normal file
View File

@ -0,0 +1,3 @@
update-test-32bit-pkg
+/usr/share/doc/packages/update-test-32bit-pkg/README.update-test-32bit-pkg -> /usr/share/doc/packages/update-test-32bit-pkg/README.update-test-32bit-pkg<extension>

View File

@ -0,0 +1,96 @@
-------------------------------------------------------------------
Wed Jun 24 17:17:56 UTC 2020 - Gustavo Pichorim Boiko <gboiko@suse.com>
- Add a retracted update test case
-------------------------------------------------------------------
Fri Mar 23 11:03:55 UTC 2018 - rbrown@suse.com
- Make broken fail consistantly regardless of product
-------------------------------------------------------------------
Thu Feb 8 15:37:23 UTC 2018 - mkravec@suse.com
- Fix broken subpackage failing condition for Kubic
-------------------------------------------------------------------
Wed Dec 20 14:45:28 UTC 2017 - bbrunner@suse.com
- Added subpackage which fails during update
-------------------------------------------------------------------
Mon May 23 15:38:34 UTC 2016 - bbrunner@suse.com
- Version bump (bsc#981107)
-------------------------------------------------------------------
Wed Oct 28 09:12:58 UTC 2015 - meissner@suse.com
- renamed from update-test-trival to update-test-trivial
-------------------------------------------------------------------
Wed Feb 4 14:33:14 UTC 2015 - bbrunner@suse.com
- moved 32bit-testpackage into separate subpackage
-------------------------------------------------------------------
Wed Feb 4 15:02:10 CET 2015 - ro@suse.de
- drop noarch
- add baselibs.conf
-------------------------------------------------------------------
Mon Jan 19 14:49:04 UTC 2015 - bbrunner@suse.com
- Version bump
-------------------------------------------------------------------
Thu Aug 21 16:27:09 CEST 2014 - lchiquitto@suse.de
- improve description of packages and fix content of README files
- some minor fixes and clean-ups in the spec file
-------------------------------------------------------------------
Fri Feb 26 14:50:05 CET 2010 - dmueller@suse.de
- add feature subpackage
-------------------------------------------------------------------
Tue May 5 19:06:16 CEST 2009 - dmueller@suse.de
- add relogin-suggested subpackage
-------------------------------------------------------------------
Thu Feb 15 17:32:25 CET 2007 - lrupp@suse.de
- specfile rewrite:
+ create the documentation files inline:
(add version, release and date)
+ use get_version_number.sh and get_release_number.sh
for "easier" preparing mbuild numbers
- version 1.3-0
-------------------------------------------------------------------
Wed Jan 17 12:32:08 CET 2007 - hmuelle@suse.de
- Fixed specfile and downgrade version to 1.2
99.9 is reserved for "universal updates testing" during beta
cycles
-------------------------------------------------------------------
Mon Dec 4 17:16:38 CET 2006 - hmuelle@suse.de
- Fixed specfile to avoid locale issues (Müller -> Mueller)
-------------------------------------------------------------------
Wed Nov 8 17:02:49 CET 2006 - mvidner@suse.cz
- Added subpackages to test other kinds of patches.
- 1.1
-------------------------------------------------------------------
Wed Oct 18 17:51:50 CEST 2006 - hmuelle@suse.de
- created initial update-test-trival package for testing our update
stack

212
update-test-trivial.spec Normal file
View File

@ -0,0 +1,212 @@
#
# spec file for package update-test-trivial
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: update-test-trivial
Version: 5.1
Release: 0
Summary: Package for testing the update stack during product development
License: GPL-2.0+
Group: System/YaST
Source0: %{name}.tar.bz2
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Package for testing the update stack during product development.
We will provide a "always" working update for this package so that the
update stack could be easily tested.
%package -n update-test-reboot-needed
Summary: Test update that requires a system reboot
Group: System/YaST
%description -n update-test-reboot-needed
Package for testing the update stack during product development.
An update for this package should inform the user that a system
reboot is necessary. This is used, for example, in kernel updates.
%package -n update-test-relogin-suggested
Summary: Test update that requires a session restart
Group: System/YaST
%description -n update-test-relogin-suggested
Package for testing the update stack during product development.
An update for this package should inform the user that a session
restart (re-login) is necessary. This is used, for example, in
window manager updates.
%package -n update-test-retracted
Summary: Test update that should be marked as retracted
Group: System/YaST
%description -n update-test-retracted
Package for testing the update stack during product development.
An update for this package should mark the update as retracted
in zypper.
%package -n update-test-interactive
Summary: Test update that requires confirmation
Group: System/YaST
%description -n update-test-interactive
Package for testing the update stack during product development.
An update for this package should show a message to the user
and wait for confirmation before proceeding. This is used, for
example, in package updates that include proprietary licenses.
%package -n update-test-affects-package-manager
Summary: Test update that requires a software stack restart
Group: System/YaST
%description -n update-test-affects-package-manager
Package for testing the update stack during product development.
An update for this package should be installed first by the
update stack and then ask the user to run the update process
again to apply other updates that might be available. This is
used, for example, to update packages from the software update
stack (zypper, libzypp, packagekit, etc).
%package -n update-test-security
Summary: Test update that includes security fixes
Group: System/YaST
%description -n update-test-security
Package for testing the update stack during product development.
An update for this package should have its category set to
"security", indicating that one or more security vulnerabilities
are being fixed.
%package -n update-test-feature
Summary: Test update that includes new features
Group: System/YaST
%description -n update-test-feature
Package for testing the update stack during product development.
An update for this package should have its category set to
"feature", indicating that it includes a new feature and not
only fixes.
%package -n update-test-optional
Summary: Test update that is not mandatory
Group: System/YaST
%description -n update-test-optional
Package for testing the update stack during product development.
An update for this package should have its category set to
"optional". The software stack should not select such updates
for installation by default. This is used, for example, to add
new packages to a product.
%package -n update-test-32bit-pkg
Summary: Test update that contains a 32bit package
Group: System/YaST
%description -n update-test-32bit-pkg
Package for testing the update stack during product development.
An update for this package should contain a 32bit-package.
%package -n update-test-broken
Summary: Test update which should not be installable
Group: System/YaST
%description -n update-test-broken
Package for testing the update stack during product development.
An update for this package should fail.
%prep
%setup -q -n %{name}
%pre -n update-test-broken
if [ $1 -ne 1 ]; then
if [ ! -f /.buildenv ]; then
sed -i -e 's,foo\t,bar\t,g' /some/none/existing/file
fi
fi
%build
echo "Package: %{name}-%{version}-%{release}" > VERSION
echo -n "Build date: " >> VERSION
LANG=POSIX date -u >> VERSION
for readme in README.update-test*; do
echo "---" >> $readme
echo "Package Version : %{version}" >> $readme
echo "Package Release : %{release}" >> $readme
echo -n "Generated on : " >> $readme
date >> $readme
echo >> $readme
echo " Remember to have a lot of fun!" >> $readme
done
%install
%files
%defattr(-,root,root)
%doc README COPYRIGHT AUTHOR VERSION
%files -n update-test-reboot-needed
%defattr(-,root,root)
%doc README.update-test-reboot-needed
%files -n update-test-interactive
%defattr(-,root,root)
%doc README.update-test-interactive
%files -n update-test-affects-package-manager
%defattr(-,root,root)
%doc README.update-test-affects-package-manager
%files -n update-test-security
%defattr(-,root,root)
%doc README.update-test-security
%files -n update-test-feature
%defattr(-,root,root)
%doc README.update-test-feature
%files -n update-test-optional
%defattr(-,root,root)
%doc README.update-test-optional
%files -n update-test-relogin-suggested
%defattr(-,root,root)
%doc README.update-test-relogin-suggested
%files -n update-test-retracted
%defattr(-,root,root)
%doc README.update-test-retracted
%files -n update-test-32bit-pkg
%defattr(-,root,root)
%doc README.update-test-32bit-pkg
%files -n update-test-broken
%defattr(-,root,root)
%doc README.update-test-broken
%changelog

BIN
update-test-trivial.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.