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