blob: 24ac6fbf7c6cd54d31026dc5391f9b969b171311 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
Name: scdoc
Version: 1.11.3
Release: 1
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
* Thu Dec 12 2024 lichaoran <pkwarcraft@hotmail.com> - 1.11.3
- Initial rpm
|