60 lines
1.7 KiB
RPMSpec
60 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package python-binplist
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1550
|
|
%{?sle15_python_module_pythons}
|
|
%else
|
|
%global pythons %{primary_python}
|
|
%endif
|
|
|
|
%define modname binplist
|
|
Name: python-binplist
|
|
Version: 20181113
|
|
Release: 0
|
|
Summary: Binary property list (plist) parser module written in python
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Python
|
|
Url: https://code.google.com/p/binplist/
|
|
Source: binplist-%{version}.tar.xz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: python-rpm-macros
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
binplist is a binary property list (plist) parser module written in python.
|
|
|
|
%prep
|
|
%setup -q -n binplist-%{version}
|
|
# delete the interpreter
|
|
sed -i -e "/#!\/usr\/local\/bin/d" binplist/binplist.py
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root)
|
|
%doc COPYING
|
|
%{_bindir}/plist.py
|
|
%{python_sitelib}/%{modname}*
|
|
|
|
%changelog
|