diff --git a/libIDL-config-2.1 b/libIDL-config-2.1 new file mode 100644 index 0000000..8037bc2 --- /dev/null +++ b/libIDL-config-2.1 @@ -0,0 +1,38 @@ +.TH LIBIDL\-CONFIG\-2 "1" "February 2021" "" "User Commands" +.SH NAME +libIDL\-config\-2 \- prints information about a libIDL installation +.SH SYNOPSIS +.B libIDL\-config\-2 +.RB [ OPTIONS \ ...] +.SH DESCRIPTION +This program is mostly for use in build scripts. +Please consider using +.BR pkg\-config (1) +or +.BR pkgconf (1) +instead. +.SH OPTIONS +.TP +.BR \-\-prefix [=\fIDIR\fR] +Print the prefix for host-independent files for libIDL, e.g. \fB/usr\fR. +.TP +.BR \-\-exec\-prefix [=\fIDIR\fR] +Print the prefix for host-dependent files for libIDL, e.g. \fB/usr\fR. +.TP +.B \-\-version +Display the version of libIDL and exit. +.TP +.B \-\-libs +Display all linker flags: +.BR \-L , +.BR \-l , +and otherwise. +.TP +.B \-\-cflags +Display all +.BR CFLAGS : +.BR \-I , +and otherwise. +.SH "SEE\ ALSO" +.BR pkgconf (1), +.BR pkg\-config (1) diff --git a/libIDL.spec b/libIDL.spec index 47f0a4a..f374f7a 100644 --- a/libIDL.spec +++ b/libIDL.spec @@ -6,7 +6,9 @@ Release: 24%{?dist} %global minorversion %(echo '%{version}' | cut -d . -f 1-2) URL: https://download.gnome.org/sources/%{name}/%{minorversion}/ -Source: %{url}/%{name}-%{version}.tar.bz2 +Source0: %{url}/%{name}-%{version}.tar.bz2 +# Hand-written man page: +Source1: %{name}-config-2.1 License: LGPLv2+ # Note that upstream is dead; GNOME still offers just a download page, and the @@ -111,6 +113,7 @@ install -t '%{buildroot}%{_pkgdocdir}' -D -p -m 0644 \ cp -rp '%{name}2.html' '%{buildroot}%{_pkgdocdir}/html' install -t '%{buildroot}%{_datadir}/aclocal/%{name}.m4' -D -p -m 0644 \ %{name}.m4 +install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}' %files @@ -129,6 +132,7 @@ install -t '%{buildroot}%{_datadir}/aclocal/%{name}.m4' -D -p -m 0644 \ # Note the aclocal directory is provided by the “filesystem” package %{_datadir}/aclocal/%{name}.m4 %{_bindir}/%{name}-config-2 +%{_mandir}/man1/%{name}-config-2.1* %files doc @@ -156,6 +160,7 @@ install -t '%{buildroot}%{_datadir}/aclocal/%{name}.m4' -D -p -m 0644 \ - Properly install the license (COPYING) file - Patch references to the old libIDL-config, which went away in the year 2002 - Install the m4 script for Autoconf as part of the -devel package +- Add a man page for the libIDL-config-2 script * Tue Jan 26 2021 Fedora Release Engineering - 0.8.14-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild