forked from jengelh/wayland
This commit is contained in:
parent
8e8ccea736
commit
bd8176212e
19
wayland.spec
19
wayland.spec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user