From 46fbdf01a34f7d63b57b0ce5e3950c2033fe4cba Mon Sep 17 00:00:00 2001 From: David King Date: Mon, 29 Feb 2016 22:35:16 +0000 Subject: [PATCH] Install man page from Debian --- libproxy.spec | 11 +++++++++-- proxy.1 | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 proxy.1 diff --git a/libproxy.spec b/libproxy.spec index abf50dc..1554432 100644 --- a/libproxy.spec +++ b/libproxy.spec @@ -11,6 +11,8 @@ Group: System Environment/Libraries License: LGPLv2+ URL: https://libproxy.github.io/libproxy/ Source0: https://github.com/libproxy/%{name}/archive/%{version}.tar.gz +# Taken from the Debian package. +Source1: proxy.1 # http://code.google.com/p/libproxy/issues/detail?id=152 Patch0: 0001-Add-config-module-for-querying-PacRunner-d-mon.patch # Taken from upstream git. @@ -165,10 +167,13 @@ make VERBOSE=1 %{?_smp_mflags} %install -make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +make install DESTDIR=%{buildroot} INSTALL="install -p" #In case all modules are disabled -mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}/modules +mkdir -p %{buildroot}%{_libdir}/%{name}/%{version}/modules + +# Man page. +install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/proxy.1 %check make test @@ -188,6 +193,7 @@ make test %files bin %{_bindir}/proxy +%{_mandir}/man1/proxy.1* %if ! 0%{?bootstrap} %files python @@ -231,6 +237,7 @@ make test - Apply an upstream patch to pair new[] with delete[] - Fix slowdown in KDE plugin - Make the pacrunner subpackage depend on pacrunner (#1171679) +- Install man page from Debian * Thu Feb 04 2016 Fedora Release Engineering - 0.4.11-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/proxy.1 b/proxy.1 new file mode 100644 index 0000000..a8c2d83 --- /dev/null +++ b/proxy.1 @@ -0,0 +1,23 @@ +.TH PROXY "1" "September 2013" "libproxy" "User Commands" +.SH NAME +proxy \- Display the proxy server that should be used to reach a given a network resource +.SH SYNOPSIS +proxy +.SH DESCRIPTION +Display the proxy server that should be used to reach a given a network resource. +.PP +libproxy is a library that provides automatic proxy configuration management +using different backends. +.SH EXAMPLE +.B echo http://www.example.com/ | proxy + http://webcache:3128 direct:// +.SH AUTHOR +This manual page was written by +.MT bigon@debian.org +Laurent Bigonville +.ME , +for the Debian GNU/Linux system (but may be used by others). +.SH SEE ALSO +.UR http://code.google.com/p/libproxy/ +libproxy +.UE .