Rework build/install

This commit is contained in:
Simone Caronni 2014-11-09 11:35:38 +01:00
parent d620ba9529
commit d105583764

View File

@ -22,7 +22,7 @@
Summary: X.Org X11 fonts Summary: X.Org X11 fonts
Name: xorg-x11-fonts Name: xorg-x11-fonts
Version: 7.5 Version: 7.5
Release: 11%{?dist} Release: 12%{?dist}
License: MIT and Lucida and Public Domain License: MIT and Lucida and Public Domain
URL: http://www.x.org URL: http://www.x.org
@ -240,29 +240,47 @@ popd
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
%build %build
pushd encodings-* # Build all apps
autoreconf -vif {
%configure --with-fontrootdir=%{_x11fontdir} for app in * ; do
make pushd $app
popd autoreconf -vif
case $app in
for dir in font-*; do font-adobe-100dpi-*|font-adobe-75dpi-*|font-adobe-utopia-100dpi-*|font-adobe-utopia-75dpi-*|font-bh-*)
pushd $dir %configure --with-fontrootdir=%{_x11fontdir} \
# FIXME: do any fonts actually support the ISO8559 configure flags? --disable-iso8859-3 \
autoreconf -vif --disable-iso8859-4 \
%configure --with-fontrootdir=%{_x11fontdir} \ --disable-iso8859-10 \
--disable-iso8859-3 --disable-iso8859-4 --disable-iso8859-6 \ --disable-iso8859-13
--disable-iso8859-10 --disable-iso8859-11 --disable-iso8859-12 \ ;;
--disable-iso8859-13 --disable-iso8859-16 font-misc-misc-*|font-schumacher-misc-*)
make %configure --with-fontrootdir=%{_x11fontdir} \
popd --disable-iso8859-3 \
done --disable-iso8859-4 \
--disable-iso8859-10 \
--disable-iso8859-11 \
--disable-iso8859-13 \
--disable-iso8859-16
;;
*)
%configure --with-fontrootdir=%{_x11fontdir}
;;
esac
make %{?_smp_mflags}
popd
done
}
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
%install %install
for dir in *; do # Install all apps
make -C $dir install DESTDIR=$RPM_BUILD_ROOT {
done for app in * ; do
pushd $app
%make_install
popd
done
}
# Install catalogue symlinks # Install catalogue symlinks
mkdir -p $RPM_BUILD_ROOT%{_catalogue} mkdir -p $RPM_BUILD_ROOT%{_catalogue}
@ -955,6 +973,11 @@ mkfontdir %{_x11fontdir}/cyrillic
%ghost %verify(not md5 size mtime) %{_x11fontdir}/cyrillic/fonts.cache-* %ghost %verify(not md5 size mtime) %{_x11fontdir}/cyrillic/fonts.cache-*
%changelog %changelog
* Sun Nov 09 2014 Simone Caronni <negativo17@gmail.com> - 7.5-12
- Clean up SPEC file.
- Rework build/install section to be like other xorg packages.
- Remove all obsolete provides/obsoletes/conflicts.
* Thu Oct 23 2014 Hans de Goede <hdegoede@redhat.com> - 7.5-11 * Thu Oct 23 2014 Hans de Goede <hdegoede@redhat.com> - 7.5-11
- Update most fonts: - Update most fonts:
-encodings-1.0.4 -encodings-1.0.4