[packages/poke] - PLDified more, cleaned up copy-pastos - added info patch (unify direntry to PLD style)

qboosh qboosh at pld-linux.org
Sun Mar 7 14:02:42 CET 2021


commit ed5231d58648113c6330f085bd354c3aa2cdedb4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 7 14:03:39 2021 +0100

    - PLDified more, cleaned up copy-pastos
    - added info patch (unify direntry to PLD style)

 poke-info.patch | 14 ++++++++++++
 poke.spec       | 70 ++++++++++++++++++++++++++++++++++++---------------------
 2 files changed, 59 insertions(+), 25 deletions(-)
---
diff --git a/poke.spec b/poke.spec
index 6963e07..167e731 100644
--- a/poke.spec
+++ b/poke.spec
@@ -1,22 +1,28 @@
 Summary:	An interactive, extensible editor for binary data
+Summary(pl.UTF-8):	Interaktywny, rozszerzalny edytor do danych binarnych
 Name:		poke
 Version:	1.0
 Release:	1
-License:	GPL v2
+License:	GPL v3+
 Group:		Applications/Editors
 Source0:	https://ftp.gnu.org/gnu/poke/%{name}-%{version}.tar.gz
 # Source0-md5:	a7423661eed9705e7d2b9adc7f977139
+Patch0:		%{name}-info.patch
 URL:		http://www.jemarch.net/poke
 BuildRequires:	gawk
 BuildRequires:	gc-devel
-BuildRequires:	json-c-devel
+BuildRequires:	gettext-tools >= 0.19.8
+BuildRequires:	help2man
+BuildRequires:	json-c-devel >= 0.11
 BuildRequires:	libnbd-devel
-BuildRequires:	libtextstyle-devel
+BuildRequires:	libtextstyle-devel >= 0.20.5
 BuildRequires:	ncurses-devel >= 5.0
 BuildRequires:	pkgconfig
 BuildRequires:	readline-devel
 BuildRequires:	tcl-devel
+BuildRequires:	texinfo
 BuildRequires:	tk-devel
+Requires:	libtextstyle >= 0.20.5
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -25,51 +31,63 @@ limited to editing basic entities such as bits and bytes, it provides
 a full-fledged procedural, interactive programming language designed
 to describe data structures and to operate on them.
 
+%description -l pl.UTF-8
+GNU poke to interaktywny, rozszerzalny edytor do danych binarnych. Nie
+jest ograniczony do edycji podstawowych jednostek, takich jak bity czy
+bajty - udostępnia dojrzały proceduralny, interaktywny język
+programowania zaprojektowany do opisu struktur danych i operowania na
+nich.
+
+%package gui
+Summary:	GUI for poke
+Summary(pl.UTF-8):	Graficzny interfejs użytkownika do poke
+Group:		X11/Applications/Editors
+Requires:	%{name} = %{version}-%{release}
+
+%description gui
+Tk GUI for poke.
+
+%description gui -l pl.UTF-8
+Oparty na Tk graficzny interfejs użytkownika do poke.
+
 %package libs
-Summary:	%{name} library
-Summary(pl.UTF-8):	Biblioteka %{name}
+Summary:	poke shared library
+Summary(pl.UTF-8):	Biblioteka współdzielona poke
 Group:		Libraries
-Conflicts:	%{name} < 1:2.16-2
 
 %description libs
-%{name} library.
+poke shared library.
 
 %description libs -l pl.UTF-8
-Biblioteka %{name}.
+Biblioteka współdzielona poke.
 
 %package devel
-Summary:	Header files and development documentation for %{name}
-Summary(pl.UTF-8):	Pliki nagłówkowe i dokumentacja do %{name}
+Summary:	Header file for libpoke library
+Summary(pl.UTF-8):	Plik nagłówkowy biblioteki libpoke
 Group:		Development/Libraries
 Requires:	%{name}-libs = %{version}-%{release}
 
 %description devel
-Header files and development documentation for %{name}.
+Header file for libpoke library.
 
 %description devel -l pl.UTF-8
-Pliki nagłówkowe i dokumentacja do %{name}.
+Plik nagłówkowy biblioteki libpoke.
 
 %package static
-Summary:	Static %{name} library
-Summary(pl.UTF-8):	Statyczna biblioteka %{name}
+Summary:	Static libpoke library
+Summary(pl.UTF-8):	Statyczna biblioteka libpoke
 Group:		Development/Libraries
 Requires:	%{name}-devel = %{version}-%{release}
 
 %description static
-Static %{name} library.
+Static libpoke library.
 
 %description static -l pl.UTF-8
-Statyczna biblioteka libcap.
-
-%package gui
-Summary:	GUI for poke
-Requires:	%{name} = %{version}-%{release}
-
-%description gui
-Tk GUI for poke.
+Statyczna biblioteka libpoke.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure
@@ -81,6 +99,8 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libpoke.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -108,13 +128,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files libs
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libpoke.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libpoke.so.0
-%attr(755,root,root) %{_libdir}/libpoke.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/libpoke.h
 %attr(755,root,root) %{_libdir}/libpoke.so
+%{_includedir}/libpoke.h
 
 %files static
 %defattr(644,root,root,755)
diff --git a/poke-info.patch b/poke-info.patch
new file mode 100644
index 0000000..2a0d802
--- /dev/null
+++ b/poke-info.patch
@@ -0,0 +1,14 @@
+--- poke-1.0/doc/poke.texi.orig	2021-02-25 22:23:13.000000000 +0100
++++ poke-1.0/doc/poke.texi	2021-03-07 13:16:10.536654231 +0100
+@@ -22,9 +22,9 @@
+ @end quotation
+ @end copying
+ 
+- at dircategory Editors
++ at dircategory File utilities:
+ @direntry
+-* poke: (poke). Interactive editor for binary files.
++* poke: (poke).				Interactive editor for binary files
+ @end direntry
+ 
+ @titlepage
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/poke.git/commitdiff/ed5231d58648113c6330f085bd354c3aa2cdedb4



More information about the pld-cvs-commit mailing list