Accepting request 290640 from home:pluskalm:branches:Archiving
- Cleanup spec file with spec-cleaner - Use url for source - Cleanup dependencies - Remove _DATE_ and _TIME_ usage OBS-URL: https://build.opensuse.org/request/show/290640 OBS-URL: https://build.opensuse.org/package/show/Archiving/lzop?expand=0&rev=13
This commit is contained in:
parent
99ea589c36
commit
73f9ed7494
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a9864d3246c947d0db07b75a5970ae0564a179f54324882fd58ab3e53c4ed9a7
|
|
||||||
size 313492
|
|
3
lzop-1.03.tar.gz
Normal file
3
lzop-1.03.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9
|
||||||
|
size 370775
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 13 13:06:40 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Cleanup spec file with spec-cleaner
|
||||||
|
- Use url for source
|
||||||
|
- Cleanup dependencies
|
||||||
|
- Remove _DATE_ and _TIME_ usage
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 3 22:25:10 UTC 2012 - joop.boonen@opensuse.org
|
Tue Jan 3 22:25:10 UTC 2012 - joop.boonen@opensuse.org
|
||||||
|
|
||||||
|
28
lzop.spec
28
lzop.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package lzop
|
# spec file for package lzop
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,22 +15,18 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: lzop
|
Name: lzop
|
||||||
Version: 1.03
|
Version: 1.03
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: The fastest compressor and decompressor around
|
Summary: The fastest compressor and decompressor around
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
Source: lzop-%{version}.tar.bz2
|
|
||||||
Url: http://www.lzop.org
|
Url: http://www.lzop.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source0: http://www.lzop.org/download/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: autoconf
|
Source1: %{name}.changes
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: glibc-devel
|
|
||||||
BuildRequires: libtool
|
|
||||||
BuildRequires: lzo-devel
|
BuildRequires: lzo-devel
|
||||||
BuildRequires: make
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
lzop is a file compressor similar to gzip. Its main advantages over gzip
|
lzop is a file compressor similar to gzip. Its main advantages over gzip
|
||||||
@ -44,18 +40,18 @@ lzop was designed with the following goals in mind:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE1}")"
|
||||||
|
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
||||||
|
TIME="\"$(date -d "${modified}" "+%%R")\""
|
||||||
|
find . -name '*.[ch]' |\
|
||||||
|
xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CPPFLAGS="-I/usr/include/lzo"
|
|
||||||
export LDFLAGS="-L%{_libdir}"
|
|
||||||
%configure
|
%configure
|
||||||
%__make %{?jobs:-j%{jobs}}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
|
|
||||||
%clean
|
|
||||||
%__rm -rf "%{buildroot}"
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user