- add install-man-pages.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/irqbalance?expand=0&rev=61
This commit is contained in:
Dirk Mueller 2017-01-12 18:10:55 +00:00 committed by Git OBS Bridge
parent 8bbe68ecf8
commit ed021db7ba
3 changed files with 18 additions and 5 deletions

11
install-man-pages.patch Normal file
View File

@ -0,0 +1,11 @@
--- Makefile.am
+++ Makefile.am
@@ -36,7 +36,7 @@
irqbalance_ui_SOURCES = $(UI_DIR)/helpers.c $(UI_DIR)/irqbalance-ui.c \
$(UI_DIR)/ui.c
irqbalance_ui_LDADD = $(GLIB_LIBS) $(CURSES_LIBS)
-dist_man_MANS = irqbalance.1
+man_MANS = irqbalance.1
CONFIG_CLEAN_FILES = debug*.list config/*
clean-generic:

View File

@ -9,6 +9,7 @@ Thu Jan 12 18:03:02 UTC 2017 - dmueller@suse.com
* Aarch64 support
* live interactive monitoring of irqbalance and live adjustment with irqbalance-ui
- remove fix-aarch64-support.patch: upstreamed
- add install-man-pages.patch
-------------------------------------------------------------------
Fri Oct 14 13:31:38 UTC 2016 - msuchanek@suse.com

View File

@ -26,6 +26,7 @@ Url: https://github.com/Irqbalance/irqbalance
Source: https://github.com/Irqbalance/irqbalance/archive/v%{version}.tar.gz
Source3: sysconfig.irqbalance
Patch2: Set-fd-limit.patch
Patch3: install-man-pages.patch
BuildRequires: libcap-ng-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
@ -46,19 +47,18 @@ being used for all IRQs.
%prep
%setup -q
%patch2 -p1
%patch3
%build
NOCONFIGURE=1 ./autogen.sh
%configure
make %{?_smp_mflags} LDFLAGS="-Wl,-z,relro,-z,now" CFLAGS="%{optflags} -fPIE -pie -std=c99 $(ncurses5-config --cflags)" LDFLAGS="$(ncurses5-config --libs)"
cp %{SOURCE3} .
gzip irqbalance.1
#gzip irqbalance.1
%install
mkdir -p %{buildroot}%{_sbindir}
install -m 0755 irqbalance %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 irqbalance.1.gz %{buildroot}%{_mandir}/man1
%make_install
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates/
install -m 0644 sysconfig.irqbalance %{buildroot}%{_localstatedir}/adm/fillup-templates/
sed -ie "s|EnvironmentFile=.*|EnvironmentFile=%{_sysconfdir}/sysconfig/irqbalance|g" misc/irqbalance.service
@ -83,6 +83,7 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcirqbalance
%files
%defattr(-,root,root,-)
%{_sbindir}/irqbalance
%{_sbindir}/irqbalance-ui
%{_sbindir}/rcirqbalance
%{_unitdir}/irqbalance.service
%{_mandir}/man1/irqbalance.1.gz