SHA256
1
0
forked from jengelh/wayland
Jan Engelhardt 2015-02-04 15:04:55 +00:00 committed by Git OBS Bridge
parent 8e8ccea736
commit bd8176212e

View File

@ -39,6 +39,10 @@ BuildRequires: pkg-config
BuildRequires: xz
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(libffi)
%define with_doc 0
%if 0%with_doc
BuildRequires: doxygen graphviz-gnome xmlto
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -117,8 +121,12 @@ if [ ! -e configure ]; then
autoreconf -fi;
fi;
%configure --disable-static --includedir="%_includedir/%name" \
--docdir="%_defaultdocdir/%name" --disable-documentation
make %{?_smp_mflags} V=1
%if %with_doc
--docdir="%_defaultdocdir/%name"
%else
--disable-documentation
%endif
make %{?_smp_mflags}
%install
make DESTDIR="%buildroot" install %{?_smp_mflags}
@ -165,4 +173,11 @@ fi
#%_datadir/pkgconfig/wayland-*.pc
%_datadir/wayland/
%if %with_doc
%files doc
%defattr(-,root,root)
%_mandir/man3/wl*.3*
%_docdir/%name/
%endif
%changelog