diff options
author | CoprDistGit <infra@openeuler.org> | 2024-12-12 02:24:54 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-12-12 02:24:54 +0000 |
commit | 4a6e8c25a67ae2efac25c2627b5277e9fd96ff9d (patch) | |
tree | 5db5544da06c42b0a46bf1cd60688ecf211732f8 | |
parent | 32a849b44db4ac6f7ca81256b8157e8cf1b49328 (diff) |
automatic import of scdoc
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | scdoc.spec | 52 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 54 insertions, 0 deletions
@@ -0,0 +1 @@ +/scdoc-1.11.3.tar.gz diff --git a/scdoc.spec b/scdoc.spec new file mode 100644 index 0000000..488e9ec --- /dev/null +++ b/scdoc.spec @@ -0,0 +1,52 @@ +Name: scdoc +Version: 1.11.3 +Release: %autorelease +Summary: Tool for generating roff manual pages + +License: MIT +URL: https://git.sr.ht/~sircmpwn/%{name} +Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: make +BuildRequires: gcc +BuildRequires: sed + +%description +scdoc is a tool designed to make the process of writing man pages more +friendly. It reads scdoc syntax from stdin and writes roff to stdout, suitable +for reading with man. + +%prep +%autosetup -p1 + +# Disable static linking +sed -i '/-static/d' Makefile + +# Use INSTALL provided by the make_install macro +sed -i 's/\tinstall/\t$(INSTALL)/g' Makefile + +%build +make PREFIX=%{_prefix} %{?_smp_mflags} + +%install +%if 0%{?el7} +%make_install PREFIX=%{_prefix} INSTALL="%{__install} -p" +%else +%make_install PREFIX=%{_prefix} +%endif + +%check +make check + +%files +%license COPYING +%doc README.md +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* +%{_mandir}/man5/%{name}.5* +# Not shipped in a -devel package since scdoc is a development tool not +# installed in a user runtime. +%{_datarootdir}/pkgconfig/%{name}.pc + +%changelog +%autochangelog @@ -0,0 +1 @@ +4e0928d10d23d24f2c1eb0f311ceef14 scdoc-1.11.3.tar.gz |