]>
Commit | Line | Data |
---|---|---|
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 | Patch2: %{name}-format-security.patch | |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | # main executable cannot be stripped (doesn't work then) | |
19 | %define no_install_post_strip 1 | |
20 | %define specflags -fno-unit-at-a-time | |
21 | ||
22 | %description | |
23 | This product is an implementation of ARJ v 2.7x for DOS on UNIX and | |
24 | UNIX-like systems. It is assumed that the user is familiar with ARJ | |
25 | operation on DOS before using this package. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Jest to implementacja programu ARJ v 2.7x dla DOS na platformę UNIX i | |
29 | systemy uniksopodobne. Zakłada się, że użytkownik korzystający z tego | |
30 | pakietu zna sposób funkcjonowania programu ARJ pod DOS-em. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
34 | %patch0 -p1 | |
35 | %patch1 -p1 | |
36 | %patch2 -p1 | |
37 | ||
38 | %build | |
39 | cd gnu | |
40 | %{__autoconf} | |
41 | install /usr/share/automake/config.* . | |
42 | ||
43 | %configure | |
44 | cd .. | |
45 | %{__make} -j1 \ | |
46 | CC="%{__cc}" | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} | |
51 | ||
52 | cd linux-gnu/en/rs | |
53 | install \ | |
54 | arj/arj \ | |
55 | arjdisp/arjdisp \ | |
56 | rearj/rearj \ | |
57 | $RPM_BUILD_ROOT%{_bindir} | |
58 | install register/arj-register $RPM_BUILD_ROOT%{_bindir}/arj-register | |
59 | ||
60 | install arjcrypt/arjcrypt.so $RPM_BUILD_ROOT%{_libdir} | |
61 | ||
62 | %{!?debug:strip -R .comment -R .note $RPM_BUILD_ROOT%{_bindir}/{arjdisp,rearj,arj-register}} | |
63 | %{!?debug:strip --strip-unneeded -R .comment -R .note $RPM_BUILD_ROOT%{_libdir}/*.so} | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc ChangeLog doc/rev_hist.txt resource/en/arjl.txt resource/en/readme.txt resource/en/unix.txt | |
71 | %attr(755,root,root) %{_bindir}/* | |
72 | %attr(755,root,root) %{_libdir}/*.so |