From 2d9f539cc18c97ca3bcc7938355f39f948d6c1e6463aa1e864610a194a044bda Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:28:39 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/krfb?expand=0&rev=51 --- krfb.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/krfb.spec b/krfb.spec index 1d0c9ee..2d23d25 100644 --- a/krfb.spec +++ b/krfb.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: krfb Version: 17.03.90 @@ -59,6 +60,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description VNC-compatible server to share KDE desktops. +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -70,8 +75,11 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc" make %install - cd build -make %{?_smp_mflags} DESTDIR=%{buildroot} install + %make_install -C build + %if %{with lang} + %find_lang %{name} --with-man --all-name + %kf5_find_htmldocs + %endif for i in 128 64 48 32 22 16 do mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/ @@ -101,4 +109,9 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} install %{_datadir}/krfb/ %{_kf5_appstreamdir}/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog