File suseRegisterInfo.spec of Package suseRegisterInfo.378
#
# spec file for package suseRegisterInfo
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: suseRegisterInfo
Version: 2.1.9
Release: 0
Summary: Tool to get informations from the local system
License: GPL-2.0
Group: Productivity/Other
Url: http://www.suse.com
Source0: suseRegisterInfo-git-0.4cd25b2.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildArch: noarch
BuildRequires: python-devel
Requires: perl
Requires: perl-XML-Parser
Requires: python
%if 0%{?rhel} && 0%{?rhel} < 6
Requires: e2fsprogs
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description
This tool read data from the local system required
for a registration
%prep
%setup -q -n suseRegisterInfo-git-0.4cd25b2
%build
%install
make -C suseRegister install PREFIX=$RPM_BUILD_ROOT
mkdir -p %{buildroot}/usr/lib/suseRegister/bin/
install -m 0755 suseRegister/parse_release_info %{buildroot}/usr/lib/suseRegister/bin/parse_release_info
install -m 0755 suseRegister/suse_register_info.pl %{buildroot}/usr/lib/suseRegister/bin/suse_register_info
%if 0%{?suse_version}
%py_compile %{buildroot}/
%py_compile -O %{buildroot}/
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%dir /usr/lib/suseRegister
%dir /usr/lib/suseRegister/bin
/usr/lib/suseRegister/bin/parse_release_info
/usr/lib/suseRegister/bin/suse_register_info
%{python_sitelib}/suseRegister
%changelog