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