3 %bcond_with manx # "x" suffix for manpage files
4 # NOTE: FHS 2.3 says that X man pages must have .[1-8]x extensions;
5 # but has been dropped in Xorg upstream and requires sed fixes to generate proper .so refs
6 # (to point to man[1-8] dirs, not man[1-8]x)
8 Summary: Autoconf macros for xorg
9 Summary(pl.UTF-8): Makra autoconfa dla xorg
10 Name: xorg-util-util-macros
14 Group: X11/Development/Tools
15 Source0: https://xorg.freedesktop.org/releases/individual/util/util-macros-%{version}.tar.bz2
16 # Source0-md5: 4be6df7e6af52e28e13dc533244eb9d7
17 Patch0: %{name}-x.patch
18 Patch1: %{name}-nosilent.patch
19 URL: https://xorg.freedesktop.org/
20 BuildRequires: autoconf >= 2.62
21 BuildRequires: automake
22 BuildRequires: rpmbuild(macros) >= 1.446
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _debugsource_packages 0
29 This is a set of autoconf macros used by the configure.ac scripts in
30 other Xorg modular packages, and is needed to generate new versions of
31 their configure scripts with autoconf.
33 %description -l pl.UTF-8
34 Ten pakiet zawiera makra autoconfa używane przez skrypty configure.ac
35 w innych pakietach modularnego Xorg. Jest wymagany do generowania
36 nowych wersji skryptów configure przy użyciu autoconfa.
39 %setup -q -n util-macros-%{version}
40 %{?with_manx:%patch0 -R -p1}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc COPYING ChangeLog README.md
63 %{_datadir}/util-macros
64 %{_aclocaldir}/xorg-macros.m4
65 %{_npkgconfigdir}/xorg-macros.pc