Applied recommended practices

- Replaced the tarball with a _service file
- Put debug_package in an if clause
- Adjusted the version scheme
- Changed the description.
Thanks, #opensuse-buildservice!
This commit is contained in:
Georg Pfuetzenreuter 2021-06-04 18:23:41 +02:00
parent a40af4e70a
commit 3c2a780ecc
Signed by: Georg
GPG Key ID: 0EC71AFA80C807E3
10 changed files with 101 additions and 5 deletions

11
+ Normal file
View File

@ -0,0 +1,11 @@
<services>
<service>
<service name="obs_scm" mode="enabled">
<param name="filename">tdfiglet</param>
<param name="url">https://github.com/tat3r/tdfiglet</param>
<param name="scm">git</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

0
.lock Normal file
View File

29
Makefile-0.1.patch Normal file
View File

@ -0,0 +1,29 @@
--- tdfiglet/Makefile 2021-06-04 17:52:49.577342558 +0200
+++ ../../../tdfiglet-1.0/Makefile 2021-06-04 13:51:23.029934384 +0200
@@ -1,6 +1,6 @@
PROG := tdfiglet
SRC := tdfiglet.c
-PREFIX ?= /usr/local
+PREFIX ?= /usr
FONTS := fonts/*
FONTDIR := $(PREFIX)/share/$(PROG)/fonts
CC ?= cc
@@ -21,12 +21,12 @@
.PHONY: debug clean install
install:
- test -d $(PREFIX)/bin || mkdir -p $(PREFIX)/bin
- cp $(PROG) $(PREFIX)/bin
- test -d $(FONTDIR) || mkdir -p $(FONTDIR)
- rm -f $(FONTDIR)/*.tdf
- for i in $(FONTS) ; do cp -v $$i $(FONTDIR) ; done
- chmod ugo+r $(FONTDIR)/*.tdf
+ test -d $(DESTDIR)/$(PREFIX)/bin || mkdir -p $(DESTDIR)/$(PREFIX)/bin
+ cp $(PROG) $(DESTDIR)/$(PREFIX)/bin
+ test -d $(DESTDIR)/$(FONTDIR) || mkdir -p $(DESTDIR)/$(FONTDIR)
+ rm -f $(DESTDIR)/$(FONTDIR)/*.tdf
+ for i in $(FONTS) ; do cp -v $$i $(DESTDIR)/$(FONTDIR) ; done
+ chmod ugo+r $(DESTDIR)/$(FONTDIR)/*.tdf
debug: $(SRC)
$(CC) -DDEBUG $(CFLAGS) $(DFLAGS) $(LDFLAGS) $(SRC) -o $(PROG)

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="obs_scm" mode="disabled">
<!--param name="filename">tdfiglet</param-->
<param name="url">https://github.com/tat3r/tdfiglet</param>
<param name="scm">git</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="changesgenerate">enable</param>
</service>
<service name="tar" mode="buildtime"/>
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/tat3r/tdfiglet</param>
<param name="changesrevision">0225b8881d06773b92d9db2c7881f03ff0bdece7</param></service></servicedata>

BIN
tdfiglet-0.5+3.obscpio Normal file

Binary file not shown.

Binary file not shown.

19
tdfiglet.changes Normal file
View File

@ -0,0 +1,19 @@
-------------------------------------------------------------------
Fri Jun 04 16:18:00 UTC 2021 - mail@georg-pfuetzenreuter.net
- Update to version 0.5+3:
* better random seed
* fixed typo
* updated docs
* added random option and dropped chars not in fonts
* moved unused fonts
* bugchasing
* updated docs
* updated screenshot
* updated docs
* added bsdl
-------------------------------------------------------------------
Fri Jun 4 15:01:23 UTC 2021 - Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
- Initial release of the tdfiglet RPM package

5
tdfiglet.obsinfo Normal file
View File

@ -0,0 +1,5 @@
name: tdfiglet
version: 0.5+3
mtime: 1535095233
commit: 0225b8881d06773b92d9db2c7881f03ff0bdece7

View File

@ -1,17 +1,30 @@
Name: tdfiglet
Version: 1.0
Release: 0.1
Version: 0.5+3
Release: 0
Summary: Shell Art
License: BSD
License: BSD-3-Clause
URL: https://github.com/tat3r/tdfiglet
Source0: %{name}-%{version}.tar.gz
Patch0: Makefile-0.1.patch
%if 0%{?fedora}
BuildRequires: glibc
%endif
%if 0%{?centos_version}
BuildRequires: glibc
%endif
%description
Because your figlet ASCII sucks.
Because figlet ASCII is not as cool.
%if ! 0%{?suse_version}
%global debug_package %{nil}
%endif
%prep
%setup -q
%patch0 -p1
%build
make %{?_smp_mflags} -f Makefile
@ -23,5 +36,5 @@ make %{?_smp_mflags} -f Makefile
%{_bindir}/%{name}
%changelog
* Fri Jun 04 2021 Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> - 1.0-0.1
* Fri Jun 04 2021 Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> - 0.5-0.1
- Initial RPM package