Init package with version 0.0.21
This commit is contained in:
parent
8f8b094b1b
commit
d61517273d
54
sensible-utils.spec
Normal file
54
sensible-utils.spec
Normal file
@ -0,0 +1,54 @@
|
||||
Name: sensible-utils
|
||||
Version: 0.0.21
|
||||
Release: 1
|
||||
Summary: Utilities for sensible alternative selection
|
||||
|
||||
BuildArch: noarch
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://salsa.debian.org/debian/sensible-utils
|
||||
Source0: http://ftp.de.debian.org/debian/pool/main/s/%{name}/%{name}_%{version}.tar.xz
|
||||
|
||||
BuildRequires: automake autoconf
|
||||
BuildRequires: make
|
||||
BuildRequires: po4a
|
||||
|
||||
# See Patch0
|
||||
Requires: /usr/bin/gettext
|
||||
Requires: /usr/bin/realpath
|
||||
|
||||
# Just require gettext, realpath instead of installing wrappers
|
||||
Patch0: sensible-utils_nowrappers.patch
|
||||
|
||||
%description
|
||||
This package provides a number of small utilities which are used by programs to
|
||||
sensibly select and spawn an appropriate browser, editor, or pager.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}
|
||||
|
||||
|
||||
%build
|
||||
# Needed for Patch0
|
||||
autoreconf -ifv
|
||||
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
|
||||
%files
|
||||
%license debian/copyright
|
||||
%doc debian/changelog
|
||||
%{_bindir}/sensible-*
|
||||
%{_bindir}/select-editor
|
||||
%{_mandir}/man1/*.1*
|
||||
%{_mandir}/*/man1/*.1*
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jan 24 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.0.21-1
|
||||
- Initial package
|
||||
BIN
sensible-utils_0.0.21.tar.xz
Normal file
BIN
sensible-utils_0.0.21.tar.xz
Normal file
Binary file not shown.
17
sensible-utils_nowrappers.patch
Normal file
17
sensible-utils_nowrappers.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff -rupN --no-dereference sensible-utils/Makefile.am sensible-utils-new/Makefile.am
|
||||
--- sensible-utils/Makefile.am 2023-07-05 01:15:15.000000000 +0200
|
||||
+++ sensible-utils-new/Makefile.am 2023-07-06 13:02:49.777973601 +0200
|
||||
@@ -7,8 +7,6 @@ TESTS = test/ed-as-sensible-editor test/
|
||||
AM_TESTS_ENVIRONMENT=\
|
||||
PATH="$(top_srcdir):$$PATH"; export PATH;
|
||||
|
||||
-binpkgdatadir = $(pkgdatadir)/bin
|
||||
-
|
||||
edit = sed \
|
||||
-e 's|@binpkgdatadir[@]|$(binpkgdatadir)|g' \
|
||||
-e 's|@prefix[@]|$(prefix)|g'
|
||||
@@ -62,4 +60,3 @@ sensible-terminal: $(srcdir)/sensible-te
|
||||
|
||||
|
||||
bin_SCRIPTS = sensible-browser sensible-editor sensible-pager select-editor sensible-terminal
|
||||
-binpkgdata_SCRIPTS = tools/gettext tools/realpath
|
||||
Loading…
x
Reference in New Issue
Block a user