Skip to content

Commit

Permalink
Correct suse rpmbuild with included spec file
Browse files Browse the repository at this point in the history
The package name in SuSE for the utempter devel package differs
from redhat.  Also, the default documentation directory differs
between these causing the configure script to choose a different
location than the %files section assumes.  This commit makes
minor adjustments to the build to allow rpmbuild to work on SuSE
out of the box.
  • Loading branch information
dmjacobsen authored and justin-stephenson committed Jan 8, 2021
1 parent 7a2cb7e commit afe42c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tlog.spec
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ Requires(postun): systemd
%else
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libcurl)
%if %{defined suse_version}
BuildRequires: utempter-devel
%else
BuildRequires: libutempter-devel
%endif

%if %{with systemd}
BuildRequires: pkgconfig(libsystemd)
Expand All @@ -79,7 +83,7 @@ in JSON format.
%setup -q

%build
%configure --disable-rpath --disable-static --enable-utempter %{!?with_systemd:--disable-journal}
%configure --disable-rpath --disable-static --enable-utempter %{!?with_systemd:--disable-journal} --docdir=%{_defaultdocdir}/%{name}
%make_build

%check
Expand Down

0 comments on commit afe42c7

Please sign in to comment.