File ii.spec of Package ii
# norootforbuild
Name: ii
Version: 2.0+git.1743692030.84c08a1
Release: 0
Summary: Minimalist FIFO and Filesystem-based IRC Client
License: X11
Group: Productivity/Networking/IRC
URL: https://tools.suckless.org/ii/
Source0: ii-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: make
%description
ii is a minimalist FIFO and filesystem-based IRC client. It creates an irc
directory tree with server, channel and nick name directories. In every
directory a FIFO in file and a normal out file is created.
%prep
%autosetup -p1
# Configure Makefile for Linux
sed -i -e 's/ -DNEED_STRLCPY//' -e '/^LIBS/s/strlcpy\.o//' Makefile
%build
%make_build \
CC="%{__cc}" \
OPTFLAGS="%{optflags}" \
PREFIX="%{_prefix}" \
BINDIR="%{_bindir}" \
LIBDIR="%{_libdir}" \
MANDIR="%{_mandir}" \
DOCDIR="%{_docdir}/%{name}" \
INCDIR="%{_includedir}"
%install
%make_install \
PREFIX="%{_prefix}" \
BINDIR="%{_bindir}" \
LIBDIR="%{_libdir}" \
MANDIR="%{_mandir}" \
DOCDIR="%{_docdir}/%{name}" \
INCDIR="%{_includedir}"
# Remove incorrectly installed files
rm -r %{buildroot}%{_datadir}/doc/ii
%files
%license LICENSE
%doc FAQ README query.sh
%{_bindir}/ii
%{_mandir}/man1/ii.1%{?ext_man}
%changelog