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: 6e76e546a4e580f15cebaf8019ef1625
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)
27 This is a set of autoconf macros used by the configure.ac scripts in
28 other Xorg modular packages, and is needed to generate new versions of
29 their configure scripts with autoconf.
31 %description -l pl.UTF-8
32 Ten pakiet zawiera makra autoconfa używane przez skrypty configure.ac
33 w innych pakietach modularnego Xorg. Jest wymagany do generowania
34 nowych wersji skryptów configure przy użyciu autoconfa.
37 %setup -q -n util-macros-%{version}
38 %{?with_manx:%patch0 -R -p1}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc COPYING ChangeLog README
61 %{_datadir}/util-macros
62 %{_aclocaldir}/xorg-macros.m4
63 %{_npkgconfigdir}/xorg-macros.pc