Hello community,

here is the log from the commit of package libieee1284 for openSUSE:Factory 
checked in at 2018-02-15 13:23:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libieee1284 (Old)
 and      /work/SRC/openSUSE:Factory/.libieee1284.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libieee1284"

Thu Feb 15 13:23:29 2018 rev:25 rq:574519 version:0.2.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/libieee1284/libieee1284.changes  2015-12-01 
10:02:07.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libieee1284.new/libieee1284.changes     
2018-02-15 13:23:34.576182519 +0100
@@ -1,0 +2,14 @@
+Wed Feb  7 12:40:24 UTC 2018 - tchva...@suse.com
+
+- Conditionalize python build to make sure we can build on python3
+  only enviroment
+
+-------------------------------------------------------------------
+Wed Feb  7 12:17:32 UTC 2018 - tchva...@suse.com
+
+- Reduce bit with spec-cleaner
+- Update URL to point to github repo (as per blog on Sourceforge)
+- Split the package to python/library/utilities to follow library
+  packaging guidelines
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ libieee1284.spec ++++++
--- /var/tmp/diff_new_pack.TT7aTm/_old  2018-02-15 13:23:36.380116988 +0100
+++ /var/tmp/diff_new_pack.TT7aTm/_new  2018-02-15 13:23:36.384116843 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libieee1284
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -16,27 +16,24 @@
 #
 
 
+%bcond_without python2
+%define libname %{name}-3
 Name:           libieee1284
-BuildRequires:  fdupes
-BuildRequires:  python-devel
-# bug437293
-%ifarch ppc64
-Obsoletes:      libieee1284-64bit
-%endif
-#
-Summary:        A Library for Interfacing IEEE 1284-Compatible Devices
-License:        GPL-2.0+ and MIT
-Group:          System/Libraries
 Version:        0.2.11
 Release:        0
-Url:            http://sourceforge.net/projects/libieee1284/
-# Source0 is the main source
-Source0:        http://downloads.sf.net/libieee1284/%name-%version.tar.bz2
-# Source1 is the documentation
+Summary:        A Library for Interfacing IEEE 1284-Compatible Devices
+License:        GPL-2.0+ AND MIT
+Group:          System/Libraries
+Url:            https://github.com/twaugh/libieee1284
+Source0:        http://downloads.sf.net/libieee1284/%{name}-%{version}.tar.bz2
 Source1:        http://cyberelk.net/tim/libieee1284/interface.pdf
 Source2:        baselibs.conf
 Patch1:         libieee1284-strict-aliasing.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  fdupes
+%if %{with python2}
+BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(python2)
+%endif
 
 %description
 This library is intended to be used by applications that need to
@@ -44,7 +41,28 @@
 parallel port.
 
 For Linux, there are some wrinkles in communicating with devices on
-parallel ports (see /usr/share/doc/packages/libieee1284/README). The
+parallel ports (see %{_docdir}/libieee1284/README). The
+aim of this library is to take all the worry about these wrinkles from
+the application.  It figures out which method is appropriate for the
+currently running kernel.  For instance, if the application wants to
+know the device ID of a device on a particular port, it asks the
+library for the the device ID. The library then figures out if it is
+available via /proc (in any of the possible locations) and, if not,
+tries asking the device itself.  If /dev/parport0 is not available for
+use, it tries ioperm; if that fails, it tries /dev/port.  The
+application does not have to care.
+
+%package -n %{libname}
+Summary:        A Library for Interfacing IEEE 1284-Compatible Devices
+Group:          System/Libraries
+
+%description -n %{libname}
+This library is intended to be used by applications that need to
+communicate with (or at least identify) devices that are attached via a
+parallel port.
+
+For Linux, there are some wrinkles in communicating with devices on
+parallel ports (see %{_docdir}/libieee1284/README). The
 aim of this library is to take all the worry about these wrinkles from
 the application.  It figures out which method is appropriate for the
 currently running kernel.  For instance, if the application wants to
@@ -55,10 +73,24 @@
 use, it tries ioperm; if that fails, it tries /dev/port.  The
 application does not have to care.
 
+%package -n python2-%{name}
+Summary:        Python bindings for libieee1284
+Group:          Development/Languages/Python
+
+%description -n python2-%{name}
+Python2 bindings for libieee1284 library
+
+%package utils
+Summary:        Utilities for libieee1284
+Group:          Hardware/Printing
+
+%description utils
+Testing commands for libieee1284
+
 %package devel
-Requires:       %{name} = %{version}
 Summary:        Development files for libieee1284
 Group:          Development/Libraries/C and C++
+Requires:       %{libname} = %{version}
 
 %description devel
 Development files for libieee1284, a Library for Interfacing IEEE
@@ -67,38 +99,45 @@
 %prep
 %setup -q
 %patch1 -p1
-# copy the documentation into the BUILD directory
 cp %{SOURCE1} .
 
 %build
-%configure --disable-static
+%configure \
+%if %{with python2}
+  --with-python \
+%else
+  --without-python \
+%endif
+  --disable-static
 make %{?_smp_mflags}
 
-%check
-# run a self-test ... its not doing anything, so leave it out
-# make check 
-
 %install
-make install DESTDIR=${RPM_BUILD_ROOT}
+%make_install
 # remove pointless libtool .la file
-rm ${RPM_BUILD_ROOT}/%{_libdir}/libieee1284.la
-# remove useless .a and .la files of python module
-rm ${RPM_BUILD_ROOT}/%{_libdir}/python%{py_ver}/site-packages/ieee1284module.la
-%fdupes -s $RPM_BUILD_ROOT
+rm %{buildroot}/%{_libdir}/libieee1284.la
+# remove useless .la files of python module
+%if %{with python2}
+rm %{buildroot}/%{python2_sitearch}/ieee1284module.la
+%endif
+%fdupes -s %{buildroot}
 
-%post -p /sbin/ldconfig
+%post -n %{libname} -p /sbin/ldconfig
+%postun -n %{libname} -p /sbin/ldconfig
 
-%postun -p /sbin/ldconfig
+%files -n %{libname}
+%doc AUTHORS ChangeLog NEWS README TODO
+%license COPYING
+%{_libdir}/libieee1284.so.*
 
-%files
-%defattr(-,root,root)
+%files utils
 %{_bindir}/libieee1284_test
-%{_libdir}/libieee1284.so.*
-%{_libdir}/python%{py_ver}/site-packages/ieee1284module.so
-%doc AUTHORS COPYING ChangeLog NEWS README TODO
+
+%if %{with python2}
+%files -n python2-%{name}
+%{python2_sitearch}/ieee1284module.so
+%endif
 
 %files devel
-%defattr(-,root,root)
 %{_includedir}/ieee1284.h
 %{_libdir}/libieee1284.so
 %{_mandir}/man3/*


Reply via email to