]> git.pld-linux.org Git - packages/arj.git/blob - arj.spec
05d591ca7eb0ba0825c256a26eae8398eea458e7
[packages/arj.git] / arj.spec
1 Summary:        ARJ archiver for Linux
2 Summary(pl.UTF-8):      Archiwizator ARJ dla Linuksa
3 Name:           arj
4 Version:        3.10.22
5 Release:        4
6 Epoch:          1
7 License:        GPL
8 Group:          Applications/Archiving
9 Source0:        http://testcase.newmail.ru/files/%{name}-%{version}.tar.gz
10 # Source0-md5:  f263bf3cf6d42a8b7e85b4fb514336d3
11 Patch0:         strnlen.patch
12 Patch1:         %{name}-glibc.patch
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 # main executable cannot be stripped (doesn't work then)
18 %define         no_install_post_strip 1
19 %define         specflags       -fno-unit-at-a-time
20
21 %description
22 This product is an implementation of ARJ v 2.7x for DOS on UNIX and
23 UNIX-like systems. It is assumed that the user is familiar with ARJ
24 operation on DOS before using this package.
25
26 %description -l pl.UTF-8
27 Jest to implementacja programu ARJ v 2.7x dla DOS na platformę UNIX i
28 systemy uniksopodobne. Zakłada się, że użytkownik korzystający z tego
29 pakietu zna sposób funkcjonowania programu ARJ pod DOS-em.
30
31 %prep
32 %setup -q
33 %patch0 -p1
34 %patch1 -p1
35
36 %build
37 cd gnu
38 %{__autoconf}
39 install /usr/share/automake/config.* .
40
41 %configure
42 cd ..
43 %{__make} -j1 \
44         CC="%{__cc}"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}}
49
50 cd linux-gnu/en/rs
51 install \
52         arj/arj \
53         arjdisp/arjdisp \
54         rearj/rearj \
55         $RPM_BUILD_ROOT%{_bindir}
56 install register/arj-register $RPM_BUILD_ROOT%{_bindir}/arj-register
57
58 install arjcrypt/arjcrypt.so $RPM_BUILD_ROOT%{_libdir}
59
60 %{!?debug:strip -R .comment -R .note $RPM_BUILD_ROOT%{_bindir}/{arjdisp,rearj,arj-register}}
61 %{!?debug:strip --strip-unneeded -R .comment -R .note $RPM_BUILD_ROOT%{_libdir}/*.so}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc ChangeLog doc/rev_hist.txt resource/en/arjl.txt resource/en/readme.txt resource/en/unix.txt
69 %attr(755,root,root) %{_bindir}/*
70 %attr(755,root,root) %{_libdir}/*.so
This page took 0.415482 seconds and 2 git commands to generate.