]> git.pld-linux.org Git - packages/arj.git/blobdiff - arj.spec
- rel 2; fix build
[packages/arj.git] / arj.spec
index 672f420c20184ed15e01fe03a3220d64b4cba4be..659beb39ff0ba18da8d2f50cb6a8ab4188175803 100644 (file)
--- a/arj.spec
+++ b/arj.spec
@@ -1,54 +1,66 @@
-%define distfile ARJL_310
 Summary:       ARJ archiver for Linux
-Summary(pl):   Archiwizator ARJ dla Linuksa
+Summary(pl.UTF-8):     Archiwizator ARJ dla Linuksa
 Name:          arj
-Version:       3.10
-Release:       1
-License:       Shareware, distributable
-Vendor:                ARJ Software Russia
+Version:       3.10.22
+Release:       2
+Epoch:         1
+License:       GPL
 Group:         Applications/Archiving
-# The original URL is outdated:        ftp://ftp.black.ru/fileecho/AUTLCOMP/%{distfile}
-Source0:       %distfile
-ExclusiveOS:   Linux
-ExclusiveArch: %{ix86}
+Source0:       http://testcase.newmail.ru/files/%{name}-%{version}.tar.gz
+# Source0-md5: f263bf3cf6d42a8b7e85b4fb514336d3
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define no_install_post_strip 1
+# main executable cannot be stripped (doesn't work then)
+%define                no_install_post_strip 1
+%define                specflags       -fno-unit-at-a-time
 
 %description
 This product is an implementation of ARJ v 2.7x for DOS on UNIX and
 UNIX-like systems. It is assumed that the user is familiar with ARJ
 operation on DOS before using this package.
 
-%description -l pl
-Jest to implementacja programu ARJ v 2.7x dla DOS na platformê UNIX i
-systemy uniksopodobne. Zak³ada siê, ¿e u¿ytkownik korzystaj±cy z tego
-pakietu zna sposób funkcjonowania programu ARJ pod DOS-em.
+%description -l pl.UTF-8
+Jest to implementacja programu ARJ v 2.7x dla DOS na platformę UNIX i
+systemy uniksopodobne. Zakłada się, że użytkownik korzystający z tego
+pakietu zna sposób funkcjonowania programu ARJ pod DOS-em.
 
 %prep
-%setup -q -T -c
-install %{SOURCE0} .
-chmod 755 %{distfile}
-./%{distfile} << EOF
-y
-n
-
-y
-y
-EOF
-bin/arj | head -4 > doc/arj/LICENSE
+%setup -q
+
+%build
+cd gnu
+%{__autoconf}
+install /usr/share/automake/config.* .
+
+%configure
+cd ..
+%{__make} -j1 \
+       CC="%{__cc}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}}
+
+cd linux-gnu/en/rs
+install \
+       arj/arj \
+       arjdisp/arjdisp \
+       rearj/rearj \
+       $RPM_BUILD_ROOT%{_bindir}
+install register/arj-register $RPM_BUILD_ROOT%{_bindir}/arj-register
+
+install arjcrypt/arjcrypt.so $RPM_BUILD_ROOT%{_libdir}
 
-mv -f bin/register bin/register-arj
-install bin/* $RPM_BUILD_ROOT%{_bindir}
+%{!?debug:strip -R .comment -R .note $RPM_BUILD_ROOT%{_bindir}/{arjdisp,rearj,arj-register}}
+%{!?debug:strip --strip-unneeded -R .comment -R .note $RPM_BUILD_ROOT%{_libdir}/*.so}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/arj/*
-%attr(0755, root, root) %{_bindir}/*
+%doc ChangeLog doc/rev_hist.txt resource/en/arjl.txt resource/en/readme.txt resource/en/unix.txt
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/*.so
This page took 0.037006 seconds and 4 git commands to generate.