Initial example

This commit is contained in:
Adrian Schröter 2024-08-23 11:31:25 +02:00
commit 7cf53c7d24
No known key found for this signature in database
GPG Key ID: 918D8C954C08DB67
13 changed files with 600 additions and 0 deletions

17
README.md Normal file
View File

@ -0,0 +1,17 @@
An example how to have package sets in subdirectories.
working:
- subdirectories need to be specified in _subdirs yaml file.
top level packages won't be used.
- overlaying of packages with identical name is working.
Means the first one wins and get imported only.
not (yet) working, but might get added:
- enabling top level packages if _subdirs file is present
- supporting cascading git submodules
- single package picking
- single package excluding

3
_subdirs Normal file
View File

@ -0,0 +1,3 @@
subdirs:
- devel_area_A
- devel_area_B

View File

@ -0,0 +1,2 @@
# Blahfasel

View File

@ -0,0 +1,4 @@
--- TODO
+++ TODO 1997/09/04 09:57:22
@@ -0,0 +1 @@
+Add sound support

View File

@ -0,0 +1,160 @@
-------------------------------------------------------------------
Tue Oct 15 07:13:53 UTC 2019 - Ludwig Nussel <lnussel@suse.de>
- don't recommend -lang package as the lang packages uses a
supplements already
- remove install-info macros (boo#1152105)
-------------------------------------------------------------------
Mon Jan 16 10:12:25 UTC 2017 - meissner@suse.com
- new keyring fetched from savannah homepage, for new maintainer.
-------------------------------------------------------------------
Sat Jan 17 19:12:38 UTC 2015 - p.drouand@gmail.com
- Updateto version 2.10
* The 'Hello, World' message is now part of translations. The
translation bug was introduced in release 2.9.
* Make use of none-recursive build.
* Removal of user-defined new-style.
* Include an example how to add a section to a manual page, such as BUGS.
* Rather than 'fprintf (stderr' use libc 'error()' reporting facility.
* Start using 'make update-copyright' facility.
* Generate ChangeLog from git commit logs.
* Avoid manual page generation errors when cross-compiling.
- Split out translation files into a lang subpackage
- Make main package recommend hello-lang
-------------------------------------------------------------------
Sun Nov 16 07:58:25 UTC 2014 - meissner@suse.com
- removed gpg-offline usage as its checked by source services.
-------------------------------------------------------------------
Wed Nov 13 14:02:46 UTC 2013 - sweet_f_a@gmx.de
- update to version 2.9:
* modernized and improved build system
* added the possibility of user-defined new-style greetings
* added support for unicode
* various translations have been updated
-------------------------------------------------------------------
Mon Feb 18 15:32:50 UTC 2013 - abergmann@novell.com
- Added GPG Offline checking.
-------------------------------------------------------------------
Thu Jul 26 14:58:25 UTC 2012 - meissner@suse.com
- buildrequire makeinfo
-------------------------------------------------------------------
Sun Apr 22 10:50:38 UTC 2012 - puzel@suse.com
- update to version 2.8
- use newer autotools and friends
- update translations
-------------------------------------------------------------------
Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de
- make patch0 usage consistent
-------------------------------------------------------------------
Sat Feb 7 18:55:52 CET 2009 - schwab@suse.de
- Rebuild broken info file.
-------------------------------------------------------------------
Sun Mar 16 03:36:00 CET 2008 - crrodriguez@suse.de
- fix file-not-in-lang errors
-------------------------------------------------------------------
Mon Jul 9 10:48:34 CEST 2007 - meissner@suse.de
- upgraded to version 2.3
- bugfixes, updates to buildsystem
- now GPLv3 licensed.
-------------------------------------------------------------------
Wed Jan 25 21:30:22 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Sep 14 22:42:16 CEST 2005 - cthiel@suse.de
- specfile cleanup
-------------------------------------------------------------------
Wed Mar 10 14:37:08 CET 2004 - meissner@suse.de
- run make check
- added feedback based profiling optimization.
-------------------------------------------------------------------
Sun Jan 11 10:30:27 CET 2004 - adrian@suse.de
- build as user
-------------------------------------------------------------------
Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
-------------------------------------------------------------------
Fri Feb 7 16:13:31 CET 2003 - ke@suse.de
- Use install_info macro [# 23424].
-------------------------------------------------------------------
Tue Jun 11 13:17:42 CEST 2002 - schwab@suse.de
- Don't package %{_infodir}/dir.
-------------------------------------------------------------------
Tue Jun 11 11:45:01 CEST 2002 - ke@suse.de
- Update to version 2.1.1; from NEWS:
* Automake support.
* Experimental NLS ("Native Language Support").
* Translations for ca, da, de, el, eo, es, et, fi, fr, gl, he, hr, hu,
id, it, ja, ko, lv, nb, nl, nn, pl, pt, pt_BR, ru, sk, sl, sv, tr, and
uk.
* Test suite.
* Add a contrib directory.
* Manual page, produced with 'help2man'.
* Create proper copyright statement for all output formats.
* New greeting message ('-n', '--next-generation').
* Bugfixes:
*. GNU hello ('-m') does not loop forever if MAIL environment variable is
not set.
- spec file: Use DESTDIR; use predefined RPM macros; add %clean section.
-------------------------------------------------------------------
Sun Feb 20 16:06:32 CET 2000 - ke@suse.de
- General spec file cleanup:
- Add group tag.
- ./configure -> %build.
- Use %{version} and %{_infodir} macros.
- Add `#neededforbuild automake' to use the suse_update_config macro.
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Thu Jul 16 08:45:05 MEST 1998 - ke@suse.de
- Use the BuildRoot feature properly.
- Update home site (the Source: tag).
Sun Sep 14 19:35:40 1997 - Karl Eichwalder <ke@suse.de>
- initial package: version 1.3

Binary file not shown.

View File

@ -0,0 +1,92 @@
#
# spec file for package hello
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: hello
# How to define macros
%define hello echo "hello world"
Provides: mailreader
Summary: A Friendly Greeting Program
License: GPL-3.0-or-later
Group: Development/Tools/Other
Version: 2.10
Release: 0
Url: http://www.gnu.org/software/hello
#!RemoteAsset: sha256:31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b
Source0: http://ftp.gnu.org/pub/gnu/hello/hello-%{version}.tar.gz
#!RemoteAsset: sha256:4ea69de913428a4034d30dcdcb34ab84f5c4a76acf9040f3091f0d3fac411b60
Source1: http://ftp.gnu.org/pub/gnu/hello/hello-%{version}.tar.gz.sig
# https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=hello&download=1
Source2: %{name}.keyring
Patch0: hello-1.3.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: makeinfo
%description
The GNU hello program produces a familiar, friendly greeting. It
allows nonprogrammers to use a classic computer science tool that would
otherwise be unavailable to them. Because it is protected by the GNU
General Public License, users are free to share and change it.
GNU hello supports many native languages.
%lang_package
%prep
# Use defined macro
%{hello}
%setup -q
%patch0
# force rebuild with non-broken makeinfo
rm -f doc/*.info
%build
export CFLAGS="%{optflags}"
%configure
%if %do_profiling && !0%{?is_cross}
make CFLAGS="$CFLAGS %cflags_profile_generate" LDFLAGS="-fprofile-arcs"
make check
make clean
make CFLAGS="$CFLAGS %cflags_profile_feedback" LDFLAGS="-fprofile-arcs"
%else
make
%endif
%check
%if 0%{?is_cross}
exit 0
%endif
make check
%install
%make_install
%find_lang %{name}
# without mandir and infodir
rm -rf %buildroot/%_mandir
rm -rf %buildroot/%_infodir
%files
%defattr(-, root, root)
%doc COPYING TODO NEWS README THANKS ABOUT-NLS
%{_bindir}/*
%files lang -f %{name}.lang
%changelog

View File

@ -0,0 +1,2 @@
# Blahfasel

View File

@ -0,0 +1,4 @@
--- TODO
+++ TODO 1997/09/04 09:57:22
@@ -0,0 +1 @@
+Add sound support

View File

@ -0,0 +1,160 @@
-------------------------------------------------------------------
Tue Oct 15 07:13:53 UTC 2019 - Ludwig Nussel <lnussel@suse.de>
- don't recommend -lang package as the lang packages uses a
supplements already
- remove install-info macros (boo#1152105)
-------------------------------------------------------------------
Mon Jan 16 10:12:25 UTC 2017 - meissner@suse.com
- new keyring fetched from savannah homepage, for new maintainer.
-------------------------------------------------------------------
Sat Jan 17 19:12:38 UTC 2015 - p.drouand@gmail.com
- Updateto version 2.10
* The 'Hello, World' message is now part of translations. The
translation bug was introduced in release 2.9.
* Make use of none-recursive build.
* Removal of user-defined new-style.
* Include an example how to add a section to a manual page, such as BUGS.
* Rather than 'fprintf (stderr' use libc 'error()' reporting facility.
* Start using 'make update-copyright' facility.
* Generate ChangeLog from git commit logs.
* Avoid manual page generation errors when cross-compiling.
- Split out translation files into a lang subpackage
- Make main package recommend hello-lang
-------------------------------------------------------------------
Sun Nov 16 07:58:25 UTC 2014 - meissner@suse.com
- removed gpg-offline usage as its checked by source services.
-------------------------------------------------------------------
Wed Nov 13 14:02:46 UTC 2013 - sweet_f_a@gmx.de
- update to version 2.9:
* modernized and improved build system
* added the possibility of user-defined new-style greetings
* added support for unicode
* various translations have been updated
-------------------------------------------------------------------
Mon Feb 18 15:32:50 UTC 2013 - abergmann@novell.com
- Added GPG Offline checking.
-------------------------------------------------------------------
Thu Jul 26 14:58:25 UTC 2012 - meissner@suse.com
- buildrequire makeinfo
-------------------------------------------------------------------
Sun Apr 22 10:50:38 UTC 2012 - puzel@suse.com
- update to version 2.8
- use newer autotools and friends
- update translations
-------------------------------------------------------------------
Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de
- make patch0 usage consistent
-------------------------------------------------------------------
Sat Feb 7 18:55:52 CET 2009 - schwab@suse.de
- Rebuild broken info file.
-------------------------------------------------------------------
Sun Mar 16 03:36:00 CET 2008 - crrodriguez@suse.de
- fix file-not-in-lang errors
-------------------------------------------------------------------
Mon Jul 9 10:48:34 CEST 2007 - meissner@suse.de
- upgraded to version 2.3
- bugfixes, updates to buildsystem
- now GPLv3 licensed.
-------------------------------------------------------------------
Wed Jan 25 21:30:22 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Sep 14 22:42:16 CEST 2005 - cthiel@suse.de
- specfile cleanup
-------------------------------------------------------------------
Wed Mar 10 14:37:08 CET 2004 - meissner@suse.de
- run make check
- added feedback based profiling optimization.
-------------------------------------------------------------------
Sun Jan 11 10:30:27 CET 2004 - adrian@suse.de
- build as user
-------------------------------------------------------------------
Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
-------------------------------------------------------------------
Fri Feb 7 16:13:31 CET 2003 - ke@suse.de
- Use install_info macro [# 23424].
-------------------------------------------------------------------
Tue Jun 11 13:17:42 CEST 2002 - schwab@suse.de
- Don't package %{_infodir}/dir.
-------------------------------------------------------------------
Tue Jun 11 11:45:01 CEST 2002 - ke@suse.de
- Update to version 2.1.1; from NEWS:
* Automake support.
* Experimental NLS ("Native Language Support").
* Translations for ca, da, de, el, eo, es, et, fi, fr, gl, he, hr, hu,
id, it, ja, ko, lv, nb, nl, nn, pl, pt, pt_BR, ru, sk, sl, sv, tr, and
uk.
* Test suite.
* Add a contrib directory.
* Manual page, produced with 'help2man'.
* Create proper copyright statement for all output formats.
* New greeting message ('-n', '--next-generation').
* Bugfixes:
*. GNU hello ('-m') does not loop forever if MAIL environment variable is
not set.
- spec file: Use DESTDIR; use predefined RPM macros; add %clean section.
-------------------------------------------------------------------
Sun Feb 20 16:06:32 CET 2000 - ke@suse.de
- General spec file cleanup:
- Add group tag.
- ./configure -> %build.
- Use %{version} and %{_infodir} macros.
- Add `#neededforbuild automake' to use the suse_update_config macro.
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Thu Jul 16 08:45:05 MEST 1998 - ke@suse.de
- Use the BuildRoot feature properly.
- Update home site (the Source: tag).
Sun Sep 14 19:35:40 1997 - Karl Eichwalder <ke@suse.de>
- initial package: version 1.3

Binary file not shown.

View File

@ -0,0 +1,90 @@
#
# spec file for package hello
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: hello
# How to define macros
%define hello echo "hello world"
Provides: mailreader
Summary: A Friendly Greeting Program
License: GPL-3.0-or-later
Group: Development/Tools/Other
Version: 2.10
Release: 0
Url: http://www.gnu.org/software/hello
#!RemoteAsset: sha256:31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b
Source0: http://ftp.gnu.org/pub/gnu/hello/hello-%{version}.tar.gz
#!RemoteAsset: sha256:4ea69de913428a4034d30dcdcb34ab84f5c4a76acf9040f3091f0d3fac411b60
Source1: http://ftp.gnu.org/pub/gnu/hello/hello-%{version}.tar.gz.sig
# https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=hello&download=1
Source2: %{name}.keyring
Patch0: hello-1.3.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: makeinfo
%description
The GNU hello program produces a familiar, friendly greeting. It
allows nonprogrammers to use a classic computer science tool that would
otherwise be unavailable to them. Because it is protected by the GNU
General Public License, users are free to share and change it.
GNU hello supports many native languages.
%lang_package
%prep
# Use defined macro
%{hello}
%setup -q
%patch0
# force rebuild with non-broken makeinfo
rm -f doc/*.info
%build
export CFLAGS="%{optflags}"
%configure
%if %do_profiling && !0%{?is_cross}
make CFLAGS="$CFLAGS %cflags_profile_generate" LDFLAGS="-fprofile-arcs"
make check
make clean
make CFLAGS="$CFLAGS %cflags_profile_feedback" LDFLAGS="-fprofile-arcs"
%else
make
%endif
%check
%if 0%{?is_cross}
exit 0
%endif
make check
%install
%make_install
%find_lang %{name}
%files
%defattr(-, root, root)
%doc COPYING TODO NEWS README THANKS ABOUT-NLS
%{_bindir}/*
%{_infodir}/*.gz
%{_mandir}/*/*
%files lang -f %{name}.lang
%changelog

View File

@ -0,0 +1,66 @@
#
# spec file for package python-wakeonlan
#
# Copyright (c) 2017 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/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define skip_python36 1
Name: python-orangebox
Version: 0.2.0
Release: 0
License: GPL-3.0-or-later
Summary: Betaflight blackbox flight recorder parser
Group: Development/Languages/Python
Url: https://github.com/atomgomba/orangebox
#!RemoteAssetUrl: git+https://github.com/atomgomba/orangebox#v0.2.0
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
%prep
%setup -q -n orangebox -c -T
cp -a %_sourcedir/orangebox/* .
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/bb2csv
%python_clone -a %{buildroot}%{_bindir}/bbsplit
%post
%python_install_alternative bb2csv
%python_install_alternative bbsplit
%postun
%python_uninstall_alternative bb2csv
%python_uninstall_alternative bbsplit
%files %{python_files}
%python_alternative %_bindir/bb2csv
%python_alternative %_bindir/bbsplit
%{python_sitelib}/*