[lbzip2] updating to 2.0
lzap
lzap at fedoraproject.org
Sat Nov 19 23:03:51 UTC 2011
commit 97d6b4f62c2dfc0925bab233d202b46f7a9a7d1b
Author: Lukas Zapletal <lzap+git at redhat.com>
Date: Sun Nov 20 00:00:13 2011 +0100
updating to 2.0
lbzip2-lfs.patch | 15 -------------
lbzip2-makefile.patch | 48 ------------------------------------------
lbzip2.spec | 56 +++++++++++++++---------------------------------
3 files changed, 18 insertions(+), 101 deletions(-)
---
diff --git a/lbzip2.spec b/lbzip2.spec
index e9badd8..3941d71 100644
--- a/lbzip2.spec
+++ b/lbzip2.spec
@@ -1,22 +1,14 @@
Name: lbzip2
-Version: 0.23
-Release: 2%{?dist}
+Version: 2.0
+Release: 1%{?dist}
Summary: Fast, multi-threaded bzip2 utility
Group: Applications/File
License: GPLv2+
-URL: http://lacos.hu/
-Source0: http://lacos.web.elte.hu/pub/%{name}/%{name}-%{version}.tar.gz
-
-# merges the CFLAGS, LDFLAGS and LIBS, specified by the Fedora / RHEL build system,
-# with the important flags that the lbzip2 Makefile would use on its own
-Patch0: %{name}-makefile.patch
-
-# works around a Fedora portability bug
-Patch1: %{name}-lfs.patch
-
+URL: https://github.com/kjn/lbzip2
+Source0: https://github.com/downloads/kjn/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: bzip2-devel >= 1.0.6, dash, sharutils
-Requires: bzip2-libs >= 1.0.6
+BuildRequires: bzip2-devel
+Requires: bzip2-libs
%description
@@ -31,35 +23,17 @@ compression to overlap with disk usage to a greater extent than bzip2 does.
%prep
-%setup -q -n %{name}
-%patch0 -p1
-%patch1 -p1
+%setup -q
%build
-make %{?_smp_mflags} CFLAGS="%{optflags}"
-
-
-%check
-unset LBZIP2 BZIP2 BZIP || true
-head -c 10000000 /dev/urandom | uuencode x | tee rnd | bzip2 >rnd.bz2
-./lbzip2 -c rnd >rnd.lbz2
-bzip2 -d -c rnd.lbz2 | cmp - rnd
-./lbzip2 -d -c rnd.lbz2 | cmp - rnd
-./lbzip2 -d -c rnd.bz2 | cmp - rnd
-./lbzip2 -d -c -n 1 rnd.lbz2 | cmp - rnd
-./lbzip2 -d -c -n 1 rnd.bz2 | cmp - rnd
+%configure
+make %{?_smp_mflags}
%install
rm -rf %{buildroot}
-install -D -m 755 -p %{name} %{buildroot}%{_bindir}/%{name}
-ln -s %{name} %{buildroot}%{_bindir}/lbunzip2
-ln -s %{name} %{buildroot}%{_bindir}/lbzcat
-install -D -m 644 -p %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
-ln -s %{name}.1 %{buildroot}%{_mandir}/man1/lbunzip2.1
-ln -s %{name}.1 %{buildroot}%{_mandir}/man1/lbzcat.1
-install -D -m 644 -p malloc_trace.pl %{buildroot}%{_datadir}/%{name}/malloc_trace.pl
+make install DESTDIR=%{buildroot}
%clean
@@ -68,17 +42,23 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
-%doc ChangeLog GPL-2.0 GPL-3.0 README
+%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_bindir}/%{name}
%{_bindir}/lbzcat
%{_bindir}/lbunzip2
%doc %{_mandir}/man1/%{name}.1*
%doc %{_mandir}/man1/lbzcat.1*
%doc %{_mandir}/man1/lbunzip2.1*
-%{_datadir}/%{name}
%changelog
+* Sat Nov 19 2011 Lukas Zapletal <lzap+rpm[@]redhat.com> - 2.0-1
+- new package with autotools
+
+* Thu Jun 02 2011 Lukas Zapletal <lzap+rpm[@]redhat.com> - 0.23-3
+- EPEL package
+- removing dash dependency
+
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.23-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list