forked from pool/cpuset
- Cleanup spec file
- Use source url OBS-URL: https://build.opensuse.org/package/show/hardware/cpuset?expand=0&rev=28
This commit is contained in:
parent
23417fbd18
commit
257e6d4957
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 13 18:39:38 UTC 2016 - idonmez@suse.com
|
||||||
|
|
||||||
|
- Cleanup spec file
|
||||||
|
- Use source url
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 13 08:32:13 UTC 2016 - lpechacek@suse.com
|
Wed Jan 13 08:32:13 UTC 2016 - lpechacek@suse.com
|
||||||
|
|
||||||
|
41
cpuset.spec
41
cpuset.spec
@ -17,26 +17,24 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
Name: cpuset
|
Name: cpuset
|
||||||
Version: 1.5.7
|
Version: 1.5.7
|
||||||
Release: 0
|
Release: 0
|
||||||
%if 0%{?sles_version} != 11
|
|
||||||
BuildArch: noarch
|
|
||||||
%endif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
Url: https://github.com/lpechacek/cpuset
|
|
||||||
Summary: Allows manipulation of cpusets on system and provides higher level functions
|
Summary: Allows manipulation of cpusets on system and provides higher level functions
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Source: %{name}-%{version}.tar.gz
|
Url: https://github.com/lpechacek/cpuset
|
||||||
|
Source: https://github.com/lpechacek/cpuset/archive/v%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%if 0%{?sles_version} != 11
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
%if 0%{?suse_version} > 0
|
%if 0%{?suse_version} > 0
|
||||||
%py_requires
|
%py_requires
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
Cpuset is a Python application to make using the cpusets facilities in
|
Cpuset is a Python application to make using the cpusets facilities in
|
||||||
@ -46,37 +44,30 @@ level functions such as implementation and control of a basic CPU
|
|||||||
shielding setup.
|
shielding setup.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" \
|
CFLAGS="%{optflags}" \
|
||||||
%{__python} setup.py build
|
python setup.py build
|
||||||
#make doc ->not yet, asciidoc is missing...
|
#make doc ->not yet, asciidoc is missing...
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Install binaries, but do not install docs via setup.py
|
# Install binaries, but do not install docs via setup.py
|
||||||
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme
|
python setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme
|
||||||
%{__rm} -rf %{buildroot}/eraseme
|
rm -rf %{buildroot}/eraseme
|
||||||
|
|
||||||
# Install documentation
|
# Install documentation
|
||||||
%{__mkdir_p} %{buildroot}/%{_defaultdocdir}/cpuset
|
mkdir -p %{buildroot}/%{_mandir}/man1
|
||||||
%{__cp} NEWS README AUTHORS COPYING cset.init.d %{buildroot}/%{_defaultdocdir}/cpuset/
|
mkdir -p %{buildroot}/%{_defaultdocdir}/cpuset/html
|
||||||
%{__mkdir_p} %{buildroot}/%{_mandir}/man1
|
|
||||||
cd doc
|
|
||||||
%{__gzip} *.1
|
|
||||||
%{__cp} *.1.gz %{buildroot}/%{_mandir}/man1
|
|
||||||
%{__cp} *.txt %{buildroot}/%{_defaultdocdir}/cpuset/
|
|
||||||
%{__mkdir} %{buildroot}/%{_defaultdocdir}/cpuset/html
|
|
||||||
%{__cp} *.html %{buildroot}/%{_defaultdocdir}/cpuset/html/
|
|
||||||
|
|
||||||
%clean
|
cp doc/*.1 %{buildroot}/%{_mandir}/man1
|
||||||
%{__rm} -rf %{buildroot}
|
cp doc/*.html %{buildroot}/%{_defaultdocdir}/cpuset/html/
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc NEWS README AUTHORS COPYING cset.init.d doc/*.txt
|
||||||
%{_bindir}/cset
|
%{_bindir}/cset
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_defaultdocdir}/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user