diff --git a/1.11.3.tar.gz b/1.11.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1923685f62154470f660dbf60048a5f2fb7786de Binary files /dev/null and b/1.11.3.tar.gz differ diff --git a/files_in_srpm.txt b/files_in_srpm.txt new file mode 100644 index 0000000000000000000000000000000000000000..df1817e718d48650f22173c819a173f7bb1a53c8 --- /dev/null +++ b/files_in_srpm.txt @@ -0,0 +1,2 @@ +1.11.3.tar.gz +scdoc.spec diff --git a/scdoc.spec b/scdoc.spec new file mode 100644 index 0000000000000000000000000000000000000000..c357e66ca3e57fcbf85f93d0c627a62380a97a3f --- /dev/null +++ b/scdoc.spec @@ -0,0 +1,46 @@ +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: https://git.sr.ht/~sircmpwn/scdoc/archive/%{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_build PREFIX=%{_prefix} CC="%{__cc}" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" + +%install +%make_install PREFIX=%{_prefix} + +%check +make check + +%files +%license COPYING +%doc README.md +%{_bindir}/%{name} +%{_mandir}/man?/* +%{_datadir}/pkgconfig/%{name}.pc + +%changelog +* Sun Feb 02 2025 Funda Wang - 1.11.3-1 +- import package diff --git a/scdoc.src.rpm b/scdoc.src.rpm new file mode 100644 index 0000000000000000000000000000000000000000..9cc1b4988f7192afa2264e159f52fb187c4379fc Binary files /dev/null and b/scdoc.src.rpm differ