From 6dccb9add559f91dbf24cbb1f09bc1012bc8b5ff Mon Sep 17 00:00:00 2001 From: Zsolt Udvari Date: Tue, 27 Jan 2009 15:51:31 +0000 Subject: [PATCH] - unicode and iso builds Changed files: dvtm.spec -> 1.2 --- dvtm.spec | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/dvtm.spec b/dvtm.spec index 1a9e52b..b282495 100644 --- a/dvtm.spec +++ b/dvtm.spec @@ -1,4 +1,4 @@ -Summary: dvtm brings the concept of tiling window management to the console +Summary: dvtm brings the concept of tiling window management to the console (UTF version) Summary(hu.UTF-8): dvtm a tiling ablakkezelést valósítja meg konzolon Name: dvtm Version: 0.5 @@ -9,6 +9,8 @@ Source0: http://www.brain-dump.org/projects/dvtm/%{name}-%{version}.tar.gz # Source0-md5: 076db11f53440c194cf24deceb469321 URL: http://www.brain-dump.org/projects/dvtm/ BuildRequires: ncurses-devel +BuildRequires: sed >= 4.0 +Requires: %{name}-common = %{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -23,24 +25,58 @@ konzolon. Egy konzolos ablakkezelőként próbálja meg könnyűvé tenni a munkát több konzol alapú programmal egyidőben, mint pl. a vim, mutt, cmus vagy irssi. +%package common +Summary: Common files of dvtm +Summary(hu.UTF-8): A dvtm általános fájljai +Group: Applications/Terminal + +%description common +Common files of dvtm. + +%description common -l hu.UTF-8 +A dvtm általános fájljai + +%package iso +Summary: ISO version of dvtm +Summary(hu.UTF-8): ISO verzió a dvtm-ből +Group: Applications/Terminal +Requires: %{name}-common = %{version}-%{release} + +%description iso +ISO version of dvtm. + +%description iso -l hu.UTF-8 +ISO verzió a dvtm-ből. + %prep %setup -q %{__sed} -i "s@^PREFIX.*@PREFIX = %{_prefix}@ ; \ s@\(^INCS =.*\)@\1 -I/usr/include/ncursesw@" config.mk %build +# iso version +%{__make} +mv dvtm dvtm-iso + # we want unicode %{__make} unicode %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT +install dvtm-iso $RPM_BUILD_ROOT%{_bindir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/dvtm + +%files common %doc README -%attr(755,root,root) %{_bindir}/dvtm* +%attr(755,root,root) %{_bindir}/dvtm-status %{_mandir}/man1/dvtm* + +%files iso +%attr(755,root,root) %{_bindir}/dvtm-iso -- 2.43.0