- Added patch to refer to original author in the manual page

- Added patch to support parallel builds in upstream Makefile
epel9
Robert Scheck 17 years ago
parent eed6f77080
commit 1ebced2b91

@ -1,2 +1,2 @@
arj-3.10.22.tar.gz arj-3.10.22.tar.gz
arj_3.10.22-2.diff.gz arj_3.10.22-6.diff.gz

@ -1,74 +1,76 @@
Name: arj Summary: Archiver for .arj files
Version: 3.10.22 Name: arj
Release: 5%{?dist} Version: 3.10.22
Summary: Archiver for .arj files Release: 6%{?dist}
Group: Applications/Archiving License: GPL+
License: GPL+ Group: Applications/Archiving
URL: http://arj.sourceforge.net/ URL: http://arj.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# unarj.* from Debian. # unarj.* from Debian
Source1: unarj.sh Source1: unarj.sh
Source2: unarj.1 Source2: unarj.1
Patch0: http://ftp.debian.org/debian/pool/main/a/%{name}/%{name}_%{version}-2.diff.gz Patch0: http://ftp.debian.org/debian/pool/main/a/%{name}/%{name}_%{version}-6.diff.gz
Patch1: arj-3.10.22-missing-protos.patch Patch1: arj-3.10.22-missing-protos.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf
BuildRequires: autoconf Provides: unarj = %{version}-%{release}
Provides: unarj = %{version}-%{release} Obsoletes: unarj < 3
Obsoletes: unarj < 3 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description %description
This package is an open source version of the arj archiver. This This package is an open source version of the arj archiver. It has
version has been created with the intent to preserve maximum been created with the intent to preserve maximum compatibility and
compatibility and retain the feature set of original ARJ archiver as retain the feature set of original ARJ archiver as provided by ARJ
provided by ARJ Software, Inc. Software, Inc.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1
for i in debian/patches/00*.patch; do for i in debian/patches/00*.patch; do
patch -p1 < $i patch -p1 < $i
done done
%patch1 -p1
pushd gnu pushd gnu
autoconf autoconf
popd popd
%build %build
pushd gnu pushd gnu
%configure %configure
popd popd
# no %{?_smp_mflags}, arj is not parallel build clean, no stripping please
make ADD_LDFLAGS=""
# Disable binary strippings
make %{?_smp_mflags} ADD_LDFLAGS=""
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install
# rm the register remainders of arj's sharewares time
rm $RPM_BUILD_ROOT%{_bindir}/arj-register install -Dpm 644 resource/rearj.cfg.example $RPM_BUILD_ROOT%{_sysconfdir}/rearj.cfg
rm $RPM_BUILD_ROOT%{_mandir}/man1/arj-register.1*
install -Dpm 644 resource/rearj.cfg.example \
$RPM_BUILD_ROOT%{_sysconfdir}/rearj.cfg
install -pm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/unarj install -pm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/unarj
install -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1/unarj.1 install -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1/unarj.1
# remove the register remainders of arj's sharewares time
rm -f $RPM_BUILD_ROOT%{_bindir}/arj-register
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/arj-register.1*
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root)
%doc ChangeLog* doc/COPYING doc/rev_hist.txt %doc ChangeLog* doc/COPYING doc/rev_hist.txt
%config(noreplace) %{_sysconfdir}/rearj.cfg %config(noreplace) %{_sysconfdir}/rearj.cfg
%{_bindir}/*arj* %{_bindir}/*arj*
%{_libdir}/arj/ %{_libdir}/arj/
%{_mandir}/man1/*arj*1.* %{_mandir}/man1/*arj*1.*
%changelog %changelog
* Mon Sep 08 2008 Robert Scheck <robert@fedoraproject.org> 3.10.22-6
- Added patch to refer to original author in the manual page
- Added patch to support parallel builds in upstream Makefile
* Sat Aug 30 2008 Robert Scheck <robert@fedoraproject.org> 3.10.22-5 * Sat Aug 30 2008 Robert Scheck <robert@fedoraproject.org> 3.10.22-5
- Corrected from %%patch to %%patch0 to make rpm > 4.4 happy - Corrected from %%patch to %%patch0 to make rpm > 4.4 happy

@ -1,2 +1,2 @@
f263bf3cf6d42a8b7e85b4fb514336d3 arj-3.10.22.tar.gz f263bf3cf6d42a8b7e85b4fb514336d3 arj-3.10.22.tar.gz
48d2275b8a8e6e5adaead8916d008fd3 arj_3.10.22-2.diff.gz a34dbdd46d09248b4fd03d7d4faf3e30 arj_3.10.22-6.diff.gz

Loading…
Cancel
Save