Linux / OBS openSUSE:How to detect Tumbleweed?
This tutorial will tell you how to properly detect openSUSE Tumbleweed when building a package targeting multiple openSUSE releases on ...
Linux / OBS How to create a .patch file?
Möglichkeit 1)
diff -Pdpru Original-Path\ Geänderter-PATH\ > foobar.patch
Dann in spec:
Patch0: foobar.patch
und unter %prep nach %setup
%patch0 -p1 einfügen.
Möglichkeit 2):
- Make a copy of the file to patch cp file file.orig - Modify the file ...
Linux / OBS openSUSE:How to detect Leap?
Im Spec am Anfang folgendes einfügen:
%if 0%{?suse_version} == 1315 && 0%{?is_opensuse}
%define is_leap 1
%else
%define is_leap 0
%endif
Dann kann in der Abfrage z.B. ...
Linux Matrix Specifications
https://spec.matrix.org/latest/
Upgrade Room Version: /upgraderoom <new_version>
...
Linux / OBS Versionsnummer eines Projektes herausfinden.
Um die Versionnummer %{?suse_version} für ein spec-File herauszubekommen z.B. folgendes eingeben:
osc meta prjconf openSUSE:Factory | grep suse_version
...
Linux / OBS Source mittels osc herrunterladen
Zu erst die Versionsnummer im spec-File ändern.
Danach:
osc service localrun download_files
...
Linux / OBS Quilt - a really quick howto
As i regularly look it up from my mailbox. lets post it here.
osc co yourproject/yourpackage
cd yourproject/yourpackage
quilt setup -v *spec
cd yourpackage-*/
quilt ...