- 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
|
||||
|
||||
|
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
|
||||
Version: 1.5.7
|
||||
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
|
||||
License: GPL-2.0
|
||||
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
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?sles_version} != 11
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%if 0%{?suse_version} > 0
|
||||
%py_requires
|
||||
%endif
|
||||
|
||||
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%description
|
||||
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" \
|
||||
%{__python} setup.py build
|
||||
python setup.py build
|
||||
#make doc ->not yet, asciidoc is missing...
|
||||
|
||||
%install
|
||||
# Install binaries, but do not install docs via setup.py
|
||||
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme
|
||||
%{__rm} -rf %{buildroot}/eraseme
|
||||
python setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme
|
||||
rm -rf %{buildroot}/eraseme
|
||||
|
||||
# Install documentation
|
||||
%{__mkdir_p} %{buildroot}/%{_defaultdocdir}/cpuset
|
||||
%{__cp} NEWS README AUTHORS COPYING cset.init.d %{buildroot}/%{_defaultdocdir}/cpuset/
|
||||
%{__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/
|
||||
mkdir -p %{buildroot}/%{_mandir}/man1
|
||||
mkdir -p %{buildroot}/%{_defaultdocdir}/cpuset/html
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
cp doc/*.1 %{buildroot}/%{_mandir}/man1
|
||||
cp doc/*.html %{buildroot}/%{_defaultdocdir}/cpuset/html/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc NEWS README AUTHORS COPYING cset.init.d doc/*.txt
|
||||
%{_bindir}/cset
|
||||
%{python_sitelib}/*
|
||||
%{_mandir}/man1/*
|
||||
%{_defaultdocdir}/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user