File hello.spec of Package demo_github

Name:           hello
Version:        1.0
Release:        lp156.31.1
Summary:        A simple Hello World script

License:        MIT
URL:            https://github.com/alfred-1999/demo_package.git
Source0:        hello.py
# Source1:        Makefile

BuildArch:      noarch
BuildRequires:  make

%description
This package provides a simple Hello World script.

%prep
# No tarball to extract, so handle sources manually
mkdir -p %{_builddir}/hello-1.0
cp %{SOURCE0} hello.py
# cp %{SOURCE1} Makefile
ls -l

%build
#make

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/bin/hello
install -m 755 hello.py %{buildroot}/usr/bin/hello/hello.py

%files
%attr(755, root, root) /usr/bin/hello/hello.py
%dir /usr/bin/hello
/usr/bin/hello/hello.py

%changelog
* Wed Jan 08 2025 alfred - 1.0.5
- CFixed spec file
* Tue Jan 07 2025 alfred - 1.0.4
- Fixed spec file to handle standalone source files
* Mon Jan 06 2025 alfred - 1.0.3
- Added makefile handling
* Sat Dec 28 2024 alfred - 1.0.2
- Minor fixes
* Fri Dec 27 2024 alfred - 1.0.1
- Initial package
openSUSE Build Service is sponsored by