]> git.pld-linux.org Git - SPECS.git/blob - most.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / most.spec
1 Summary:        SLang based pager
2 Summary(pl.UTF-8):      Pager bazujący na SLangu
3 Name:           most
4 Version:        5.0.0a
5 Release:        2
6 License:        GPL v2+
7 Group:          Applications/Text
8 Source0:        http://www.jedsoft.org/releases/most/%{name}-%{version}.tar.bz2
9 # Source0-md5:  4c42abfc8d3ace1b0e0062ea021a5917
10 Patch0:         %{name}-autoconf.patch
11 URL:            http://www.jedsoft.org/most/
12 BuildRequires:  autoconf >= 2.50
13 BuildRequires:  automake
14 BuildRequires:  sed >= 4.0
15 BuildRequires:  slang-devel >= 1.3.6
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Most is a pager (like less & more). Allows, amongst other, the viewing
20 of multiple files and on-the-fly uncompressing.
21
22 %description -l pl.UTF-8
23 Most jest pagerem (jak less czy more). Umożliwia tak jak inne programy
24 tego typu przeglądanie wielu plików jednocześnie i dekompresując także
25 pliki przed rozpoczęciem przeglądania.
26
27 %prep
28 %setup -q
29 %patch0 -p1
30
31 %{__sed} -i -e 's@%{_prefix}/lib@%{_prefix}/%{_lib}@' autoconf/aclocal.m4
32
33 %build
34 cp -f /usr/share/automake/config.* autoconf
35 cp -f autoconf/configure.ac .
36 cp -f autoconf/aclocal.m4 acinclude.m4
37 %{__aclocal}
38 %{__autoconf}
39 %configure \
40         --disable-warnings
41
42 %{__make} \
43         SYS_INITFILE=%{_sysconfdir}/most.conf
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}}
48
49 %{__make} install \
50         BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
51         MAN_DIR=$RPM_BUILD_ROOT%{_mandir} \
52         DOC_DIR=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
53
54 install lesskeys.rc $RPM_BUILD_ROOT%{_sysconfdir}/most.conf
55
56 # clean docdir
57 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc README *.rc *.txt
65 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/most.conf
66 %attr(755,root,root) %{_bindir}/most
67 %{_mandir}/man1/most.1*
This page took 0.625177 seconds and 3 git commands to generate.