]> git.pld-linux.org Git - packages/pinfo.git/blobdiff - pinfo.spec
- up to 0.6.9
[packages/pinfo.git] / pinfo.spec
index bbf86231359710b8868b2d3d9ccf1c7ea4443862..724dcceb01cba08673eb93ac7d11a2d0321c6ebe 100644 (file)
+#
 Summary:       Lynx-style info browser
-Summary(pl):   Przêgl±darka info w stylu lynx'a
-Name:          pinfo   
-Version:       0.5.9
-Release:       2
-Group:         Utilities/System
-Group(pl):     Narzêdzia/System
-Copyright:     GPL
-Vendor:                Przemek Borys <pborys@dione.ids.pl>
-Source:                http://zeus.polsl.gliwice.pl/~pborys/stable-version/%{name}-%{version}.tar.gz
+Summary(es):   Visualizador de páginas info y man
+Summary(pl):   Przegl±darka info w stylu lynksa
+Summary(pt_BR):        Visualizador de páginas info e man
+Summary(ru):   ðÒÏÇÒÁÍÍÁ ÐÒÏÓÍÏÔÒÁ info- É man-ÄÏËÕÍÅÎÔÏ× × ÓÔÉÌÅ lynx
+Summary(uk):   ðÒÏÇÒÁÍÁ ÐÅÒÅÇÌÑÄÕ info- ÔÁ man-ÄÏËÕÍÅÎԦנՠÓÔÉ̦ lynx
+Name:          pinfo
+Version:       0.6.9
+Release:       1
+License:       GPL v2
+Group:         Applications/System
+Source0:       https://alioth.debian.org/download.php/1498/%{name}-%{version}.tar.bz2
+# Source0-md5: e0c788467945f5f97fbacad55863e5b8
+Source1:       %{name}.sh
+Source2:       %{name}.csh
+Patch0:                %{name}-amfix.patch
+Patch1:                %{name}-home_etc.patch
+URL:           http://pinfo.alioth.debian.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
 BuildRequires: ncurses-devel >= 5.0
-BuildRoot:     /tmp/%{name}-%{version}-root
-
-%define                _sysconfdir     /etc
+BuildRequires: readline-devel
+BuildRequires: texinfo
+Requires:      man-config
+Requires:      setup >= 2.4.6-2
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Pinfo is a curses based lynx-style info browser.
 
+%description -l es
+Visualizador de páginas info y man.
+
 %description -l pl
-Pinfo jest przegl±dark± dokumentów info podobn± do lynx'a.
+Pinfo jest przegl±dark± dokumentów info podobn± do lynksa.
+
+%description -l pt_BR
+Visualizador hipertexto de arquivos info e páginas de manual, com
+interface semelhante ao lynx. Suporta pesquisa de expressões
+regulares.
+
+%description -l ru
+Pinfo - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÐÒÏÓÍÏÔÒÁ info-ÆÁÊÌÏ× É man-ÓÔÒÁÎÉÃ. åÅ
+ÉÎÔÅÒÆÅÊÓ ÐÏÌØÚÏ×ÁÔÅÌÑ ÐÏÈÏÖ ÎÁ ÉÎÔÅÒÆÅÊÓ Lynx. ðÏÄÄÅÒÖÉ×ÁÅÔÓÑ ÐÏÉÓË
+ÐÏ ÒÅÇÕÌÑÒÎÙÍ ×ÙÒÁÖÅÎÉÑÍ.
+
+%description -l uk
+Pinfo - ÃÅ ÐÒÏÇÒÁÍÁ ÐÅÒÅÇÌÑÄÕ info-ÆÁÊ̦נÔÁ man-ÓÔÏÒ¦ÎÏË. ·§
+¦ÎÔÅÒÆÅÊÓ ÐÏĦÂÎÉÊ ÄÏ ¦ÎÔÅÒÆÅÊÓÕ Lynx. ð¦ÄÔÒÉÍÕ¤ÔØÓÑ ÐÏÛÕË ÐÏ
+ÒÅÇÕÌÑÒÎÉÍ ×ÉÒÁÚÁÍ.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+
+rm -f doc/pinfo.info
 
 %build
-LDFLAGS="-s"; export LDFLAGS
+CPPFLAGS="-I%{_includedir}/ncurses"
+%{__gettextize}
+%{__aclocal} -I macros
+%{__autoconf}
+%{__automake}
 %configure \
        --without-included-gettext
-       
-make 
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/shrc.d
 
-make install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       ChangeLog NEWS AUTHORS README
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/shrc.d/%{name}.sh
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/shrc.d/%{name}.csh
 
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc *.gz
+%doc ChangeLog NEWS AUTHORS README
 %attr(755,root,root) %{_bindir}/pinfo
-%config %verify(not md5 size mtime) %{_sysconfdir}/pinforc
-
+/etc/shrc.d/*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pinforc
 %{_mandir}/man1/*
+%{_infodir}/pinfo*
This page took 0.079439 seconds and 4 git commands to generate.