[suggest] New rar/unrar specs

David Hrbáč hrbac.conf at seznam.cz
Mon Mar 17 13:57:01 CET 2008


Hi,
here are the new specs for (un)rar.
Thanks,
David
-------------- next part --------------
# $Id: unrar.spec 5224 2007-03-07 15:21:36Z thias $
# Authority: matthias
# Upstream: <dev$rarlab,com>

Summary: Extract, test and view RAR archives
Name: unrar
Version: 3.7.8
Release: 1
License: Freeware
Group: Applications/Archiving
URL: http://www.rarlab.com/
Source0: http://www.rarlab.com/rar/unrarsrc-%{version}.tar.gz
Source1: unrar.1
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-c++

%description
The unRAR utility is a freeware program, distributed with source code
and developed for extracting, testing and viewing the contents of
archives created with the RAR archiver version 1.50 and above.


%prep
%setup -n %{name}
# Remove stripping to get useful debuginfo package
%{__perl} -pi -e 's|^STRIP=.*|STRIP=true|g' makefile.unix


%build
%{__make} %{?_smp_mflags} -f makefile.unix CXXFLAGS="%{optflags}"


%install
%{__rm} -rf %{buildroot}
%{__install} -D -m755 unrar %{buildroot}%{_bindir}/unrar
%{__install} -D -p -m644 %{SOURCE1} %{buildroot}%{_mandir}/man1/unrar.1


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-, root, root, 0755)
%doc *.txt
%{_bindir}/unrar
%{_mandir}/man1/unrar.1*


%changelog
* Mon Mar 17 2008 David Hrbáč <david at hrbac.cz> - 3.7.8-1
- Update to 3.7.8

* Wed Mar  7 2007 Matthias Saou <http://freshrpms.net/> 3.7.4-1
- Update to 3.7.4.

* Thu Sep 14 2006 Matthias Saou <http://freshrpms.net/> 3.6.8-1
- Update to 3.6.8.

* Wed Apr 19 2006 Matthias Saou <http://freshrpms.net/> 3.6.2-1
- Update to 3.6.2.

* Fri Mar 17 2006 Matthias Saou <http://freshrpms.net/> 3.5.4-2
- Release bump to drop the disttag number in FC5 build.

* Fri Oct 14 2005 Matthias Saou <http://freshrpms.net/> 3.5.4-1
- Update to 3.5.4.

* Sun Jun  5 2005 Matthias Saou <http://freshrpms.net/> 3.5.2-1
- Update to 3.5.2.
- Disable stripping to get useful debuginfo package.

* Mon Apr  4 2005 Matthias Saou <http://freshrpms.net/> 3.5.1-1
- Update to 3.5.1.

* Tue Nov  2 2004 Matthias Saou <http://freshrpms.net/> 3.4.3-1
- Update to 3.4.3.

* Thu Feb 26 2004 Matthias Saou <http://freshrpms.net/> 3.3.6-1
- Update to 3.3.6.

* Mon Jan 19 2004 Matthias Saou <http://freshrpms.net/> 3.3.4-1
- Update to 3.3.4.

* Fri Nov  7 2003 Matthias Saou <http://freshrpms.net/> 3.2.3-1
- Update to 3.2.3.
- Rebuild for Fedora Core 1.

* Wed May 14 2003 Matthias Saou <http://freshrpms.net/>
- Update to 3.2.1.
- Added missing URL.

* Mon Mar 31 2003 Matthias Saou <http://freshrpms.net/>
- Update to 3.2.0.
- Rebuilt for Red Hat Linux 9.

* Mon Jan 13 2003 Matthias Saou <http://freshrpms.net/>
- Update to 3.1.3.

* Thu Oct 10 2002 Matthias Saou <http://freshrpms.net/>
- Spec file cleanup.

* Sat Oct  5 2002 Ville Skyttä <ville.skytta at iki.fi> 3.00-2cr
- Rebuild for Red Hat 8.0, using the compat GCC.

* Tue Sep 17 2002 Ville Skyttä <ville.skytta at iki.fi> 3.00-1cr
- RedHatified PLD version.

-------------- next part --------------
# $Id: rar.spec 5224 2007-03-07 15:21:36Z thias $
# Authority: matthias

%{?dist: %{expand: %%define %dist 1}}
%{?fc1:%define _with_static_rar 1}
%{?el3:%define _with_static_rar 1}
%{?rh9:%define _with_static_rar 1}
%{?rh7:%define _with_static_rar 1}
%{?el2:%define _with_static_rar 1}

# The source contains only binaries...
%define _use_internal_dependency_generator 0
# Disable stripping or the default.sfx will get trashed
%define __strip /bin/true
# Don't create a debuginfo package since it would be empty
%define debug_package %{nil}

Summary: RAR archiver to create and manage RAR archives
Name: rar
Version: 3.7.1
Release: 1
License: Shareware
Group: Applications/Archiving
URL: http://www.rarlabs.com/
Source: http://www.rarlabs.com/rar/rarlinux-%{version}.tar.gz
#Source: http://www.rarlabs.com/rar/rarlinux-3.7.b1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
ExclusiveArch: %{ix86}

%description
RAR is a powerful tool allowing you to manage and control archive files.
Console RAR supports archives only in RAR format, which names usually have
a ".rar" extension. ZIP and other formats are not supported.


%prep
%setup -n %{name}


%build


%install
%{__rm} -rf %{buildroot}
%if %{?_with_static_rar:1}0
%{__install} -D -p -m0755 rar_static %{buildroot}%{_bindir}/rar
%else
%{__install} -D -p -m0755 rar %{buildroot}%{_bindir}/rar
%endif
%{__install} -D -p -m0644 rarfiles.lst %{buildroot}%{_sysconfdir}/rarfiles.lst
%{__install} -D -p -m0755 default.sfx %{buildroot}%{_libdir}/default.sfx


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-, root, root, 0755)
%doc *.txt file_id.diz
%{_sysconfdir}/rarfiles.lst
%{_bindir}/rar
%{_libdir}/default.sfx


%changelog
* Mon Mar 17 2008 David Hrbáč <david at hrbac.cz> - 3.7.1-1
- Update to 3.7.1

* Wed Mar  7 2007 Matthias Saou <http://freshrpms.net/> 3.7.0-0.1.beta1
- Update to 3.7.0 beta1 (aka 3.7.b1).
- Disable (empty) debuginfo package.
- Add empty %%build section.
- Fix macros inside the %%changelog.

* Fri Apr 28 2006 Dag Wieers <dag at wieers.com> - 3.6.0-0.2.beta2
- Added _with_static_rar for older distributions (<= FC1).

* Wed Apr 19 2006 Matthias Saou <http://freshrpms.net/> 3.6.0-0.1.beta2
- Update to 3.6.0 beta2 (aka 3.6.b2).
- Put exclusive arch back, not removed on purpose.

* Fri Oct 14 2005 Matthias Saou <http://freshrpms.net/> 3.5.1-1
- Update to 3.5.1 (aka 3.51).

* Sun Jun  5 2005 Matthias Saou <http://freshrpms.net/> 3.5-0.b1
- Update to 3.5.b1.

* Wed Nov  3 2004 Matthias Saou <http://freshrpms.net/> 3.4.1-1
- Update to 3.4.1.

* Wed May 19 2004 Matthias Saou <http://freshrpms.net/> 3.3.0-2
- Updated description.
- Fixed the rarfiles.lst installation.
- Rebuild for Fedora Core 2.

* Thu Feb 26 2004 Matthias Saou <http://freshrpms.net/> 3.3.0-1
- Update to 3.3.0.

* Fri Nov  7 2003 Matthias Saou <http://freshrpms.net/> 3.2.0-3
- Rebuild for Fedora Core 1.

* Mon Nov  3 2003 Matthias Saou <http://freshrpms.net/> 3.2.0-2.fr
- Disable stripping to not trash the default.sfx file.
- Add back rarfiles.lst, as it does work, thanks to Ondrej Svejda.

* Thu Oct 30 2003 Matthias Saou <http://freshrpms.net/> 3.2.0-1.fr
- Update to latest version.
- Spec file cleanup.
- Remove the internal dep check to avoid "corrupted program header size" msg.

* Sun Mar 18 2001 Matthias Saou <http://freshrpms.net/>
- Fix the %%files with a %%dir (cleaner uninstall)
- Spec file cleanup

* Sun Mar 18 2001 Alexander Skwar <ASkwar at Linux-Mandrake.com> 2.80-1
- New non-beta release

* Mon Feb 26 2001 Alexander Skwar <ASkwar at Linux-Mandrake.com> 2.80b5-1
- New release, see http://www.rarsoft.com/rar/WhatsNew.txt for
  list of fixed bugs

* Sun Jan 28 2001 Alexander Skwar <ASkwar at Linux-Mandrake.com> 2.80b4-1
- Nothing exciting, besides the latest beta

* Thu Jan  4 2001 Alexander Skwar <ASkwar at Linux-Mandrake.com> 2.80b2-1
- Another new version

* Sat Sep 15 2000 01:00:35 Alexander Skwar <ASkwar at DigitalProjects.com> 2.71-1
- New version


More information about the suggest mailing list