simplify %install a bit

This commit is contained in:
David Tardon 2014-04-24 17:09:24 +02:00
parent 5a3e294c7f
commit 9f47475acb

View File

@ -45,12 +45,10 @@ sed -i -e '/^CPPFLAGS_NODEBUG=/s/=.*/="%{optflags}"/' configure
%configure
%install
mkdir -p %{buildroot}/%{_includedir}
mkdir %{buildroot}/%{_includedir}/mdds
install -d -m 0755 %{buildroot}/%{_includedir}/mdds
cp -pr include/mdds/* %{buildroot}/%{_includedir}/mdds
mkdir -p %{buildroot}/%{_datadir}
mkdir %{buildroot}/%{_datadir}/pkgconfig
cp -p misc/%{name}.pc %{buildroot}/%{_datadir}/pkgconfig
install -d -m 0755 %{buildroot}/%{_datadir}/pkgconfig
install -p -m 0644 misc/%{name}.pc %{buildroot}/%{_datadir}/pkgconfig
%check
make check %{?_smp_mflags}