Hello community,

here is the log from the commit of package file for openSUSE:Factory checked in 
at 2016-02-22 10:09:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/file (Old)
 and      /work/SRC/openSUSE:Factory/.file.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "file"

Changes:
--------
--- /work/SRC/openSUSE:Factory/file/file.changes        2016-01-26 
10:14:26.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.file.new/file.changes   2016-02-22 
10:09:47.000000000 +0100
@@ -1,0 +2,5 @@
+Tue Feb 16 12:40:33 UTC 2016 - [email protected]
+
+- Make the python command a macro.
+
+-------------------------------------------------------------------
--- /work/SRC/openSUSE:Factory/file/python-magic.changes        2016-01-26 
10:14:26.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.file.new/python-magic.changes   2016-02-22 
10:09:47.000000000 +0100
@@ -1,0 +2,7 @@
+Tue Feb 16 12:41:14 UTC 2016 - [email protected]
+
+- Make the python command a macro.
+- Remove %py_requires.
+- Add dependency on libmagic.
+
+-------------------------------------------------------------------
New Changes file:

--- /dev/null   2016-01-27 19:41:03.648095915 +0100
+++ /work/SRC/openSUSE:Factory/.file.new/python3-magic.changes  2016-02-22 
10:09:47.000000000 +0100
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Tue Feb 16 12:42:29 UTC 2016 - [email protected]
+
+- Add package python3-magic.
+

New:
----
  python3-magic.changes
  python3-magic.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ file.spec ++++++
--- /var/tmp/diff_new_pack.ghouN9/_old  2016-02-22 10:09:48.000000000 +0100
+++ /var/tmp/diff_new_pack.ghouN9/_new  2016-02-22 10:09:48.000000000 +0100
@@ -19,6 +19,8 @@
 %define somajor 1
 %define libname libmagic%{somajor}
 
+%define python python
+
 Name:           file
 BuildRequires:  findutils
 BuildRequires:  libtool
@@ -143,7 +145,7 @@
 %{__make} %{?_smp_mflags} pkgdatadir='$(datadir)' LDFLAGS="-pie"
 %if 0%{?build_python_bindings:1}
 pushd python
-python setup.py build
+%python setup.py build
 popd
 %endif
 

++++++ python-magic.spec ++++++
--- /var/tmp/diff_new_pack.ghouN9/_old  2016-02-22 10:09:48.000000000 +0100
+++ /var/tmp/diff_new_pack.ghouN9/_new  2016-02-22 10:09:48.000000000 +0100
@@ -16,6 +16,10 @@
 #
 
 
+%{expand:%(sed -n -e '/^%%define somajor/,/^%%define libname/p' 
<%_sourcedir/file.spec)}
+
+%define python python
+
 Name:           python-magic
 %define build_python_bindings 1
 BuildRequires:  findutils
@@ -28,9 +32,9 @@
 Summary:        Python module to use libmagic
 License:        BSD-3-Clause and BSD-4-Clause
 Group:          Development/Languages/Python
-%py_requires
 Source99:       file.spec
 %{expand:%(sed -n -e '/^Source:/,/^BuildRoot:/p' <%_sourcedir/file.spec)}
+Requires:       %libname
 %global         _sysconfdir /etc
 %global         _miscdir    %{_datadir}/misc
 
@@ -43,7 +47,7 @@
 
 %install
 pushd python
-python setup.py install --root=%{buildroot}    \
+%python setup.py install --root=%{buildroot}   \
                        --prefix=%{_prefix}     \
                        --record-rpm=../python_files
 popd

++++++ python3-magic.spec ++++++
#
# spec file for package python3-magic
#
# Copyright (c) 2016 SUSE LINUX 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/
#


%{expand:%(sed -n -e '/^%%define somajor/,/^%%define libname/p' 
<%_sourcedir/file.spec)}

%define python python3

Name:           python3-magic
%define build_python_bindings 1
BuildRequires:  findutils
BuildRequires:  libtool
BuildRequires:  python3-devel
BuildRequires:  zlib-devel
Url:            http://www.darwinsys.com/file/
Version:        5.25
Release:        0
Summary:        Python module to use libmagic
License:        BSD-3-Clause and BSD-4-Clause
Group:          Development/Languages/Python
Source99:       file.spec
%{expand:%(sed -n -e '/^Source:/,/^BuildRoot:/p' <%_sourcedir/file.spec)}
Requires:       %libname
%global         _sysconfdir /etc
%global         _miscdir    %{_datadir}/misc

%description 
This package contains the python binding that require the magic "file"
interface.

%prep
%{expand:%(sed -n -e '/^%%prep/,/^%%install/p' <%_sourcedir/file.spec | sed -e 
'1d' -e '$d')}

%install
pushd python
%python setup.py install --root=%{buildroot}    \
                         --prefix=%{_prefix}    \
                         --record-rpm=../python_files
popd

%files -f python_files
%defattr(-,root,root)
%doc python/README python/example.py

%changelog

Reply via email to