- Use cmake for building
- Run tests during build OBS-URL: https://build.opensuse.org/package/show/Archiving/lzop?expand=0&rev=20
This commit is contained in:
parent
4d0a69be58
commit
cbc5020fc8
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 11 18:35:11 UTC 2017 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Use cmake for building
|
||||||
|
- Run tests during build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 11 15:56:14 UTC 2017 - aavindraa@gmail.com
|
Sat Nov 11 15:56:14 UTC 2017 - aavindraa@gmail.com
|
||||||
|
|
||||||
|
18
lzop.spec
18
lzop.spec
@ -24,7 +24,7 @@ License: GPL-2.0+
|
|||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
Url: http://www.lzop.org
|
Url: http://www.lzop.org
|
||||||
Source0: http://www.lzop.org/download/%{name}-%{version}.tar.gz
|
Source0: http://www.lzop.org/download/%{name}-%{version}.tar.gz
|
||||||
Source1: %{name}.changes
|
BuildRequires: cmake
|
||||||
BuildRequires: lzo-devel
|
BuildRequires: lzo-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -39,20 +39,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
|
||||||
%configure
|
%cmake
|
||||||
make %{?_smp_mflags}
|
%make_jobs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%cmake_install
|
||||||
# Remove unwanted doc folder created during build
|
# Remove unwanted doc folder created during build
|
||||||
rm -fr %{buildroot}%{_datadir}/doc
|
rm -fr %{buildroot}%{_datadir}/doc
|
||||||
|
|
||||||
|
%check
|
||||||
|
%ctest
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS ChangeLog COPYING NEWS README THANKS
|
%doc AUTHORS ChangeLog COPYING NEWS README THANKS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user