- Run spec-cleaner, nothing more than that.

OBS-URL: https://build.opensuse.org/package/show/devel:tools/criu?expand=0&rev=11
This commit is contained in:
Takashi Iwai 2014-03-01 08:46:14 +00:00 committed by Git OBS Bridge
parent 301341ee97
commit d9672d19dc
2 changed files with 19 additions and 14 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Mar 1 09:39:03 CET 2014 - tiwai@suse.de
- Run spec-cleaner, nothing more than that.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 26 17:15:26 CET 2014 - tiwai@suse.de Wed Feb 26 17:15:26 CET 2014 - tiwai@suse.de

View File

@ -23,12 +23,12 @@ Summary: Checkpoint/Restore In Userspace Tools
License: GPL-2.0 License: GPL-2.0
Group: System/Console Group: System/Console
Url: http://criu.org/ Url: http://criu.org/
Requires: logrotate Source0: http://download.openvz.org/criu/criu-%{version}.tar.bz2
BuildRequires: asciidoc BuildRequires: asciidoc
BuildRequires: protobuf-c BuildRequires: protobuf-c
BuildRequires: xmlto BuildRequires: xmlto
BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(systemd)
Source0: http://download.openvz.org/criu/criu-%{version}.tar.bz2 Requires: logrotate
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: x86_64 ExclusiveArch: x86_64
@ -60,24 +60,24 @@ This package contains all necessary include files and libraries needed
to develop applications with CRIU library. to develop applications with CRIU library.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q
%build %build
export CFLAGS="%optflags" export CFLAGS="%{optflags}"
make V=1 %{?_smp_mflags} PREFIX=%{_prefix} LOGROTATEDIR=/etc/logrotate.d/ make V=1 %{?_smp_mflags} PREFIX=%{_prefix} LOGROTATEDIR=%{_sysconfdir}/logrotate.d/
%install %install
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
make V=1 %{?_smp_mflags} PREFIX=%{_prefix} LOGROTATEDIR=/etc/logrotate.d/ \ make V=1 %{?_smp_mflags} PREFIX=%{_prefix} LOGROTATEDIR=%{_sysconfdir}/logrotate.d/ \
DESTDIR=$RPM_BUILD_ROOT install DESTDIR=%{buildroot} install
# make rpmlint happy # make rpmlint happy
mv $RPM_BUILD_ROOT/etc/logrotate.d/criu-service \ mv %{buildroot}%{_sysconfdir}/logrotate.d/criu-service \
$RPM_BUILD_ROOT/etc/logrotate.d/criu %{buildroot}%{_sysconfdir}/logrotate.d/criu
# for compatiblity # for compatiblity
ln -s criu $RPM_BUILD_ROOT%{_sbindir}/crtools ln -s criu %{buildroot}%{_sbindir}/crtools
ln -s criu.8 $RPM_BUILD_ROOT%{_mandir}/man8/crtools.8 ln -s criu.8 %{buildroot}%{_mandir}/man8/crtools.8
# fix up wrong permissions # fix up wrong permissions
chmod 0644 $RPM_BUILD_ROOT%{_mandir}/man*/* chmod 0644 %{buildroot}%{_mandir}/man*/*
%pre %pre
%service_add_pre criu.service criu.socket %service_add_pre criu.service criu.socket
@ -105,7 +105,7 @@ exit 0
%{_sbindir}/* %{_sbindir}/*
%{_mandir}/man*/* %{_mandir}/man*/*
%{_unitdir}/criu.* %{_unitdir}/criu.*
/etc/logrotate.d/* %{_sysconfdir}/logrotate.d/*
%files -n libcriu1 %files -n libcriu1
%defattr(-,root,root) %defattr(-,root,root)