# # spec file for package libieee1284 # # Copyright (c) 2015 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/ # 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: 56.3 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 Source1: http://cyberelk.net/tim/libieee1284/interface.pdf Source2: baselibs.conf Patch1: libieee1284-strict-aliasing.patch # from Debian Patch100: libieee1284_release_on_close.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description 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 /usr/share/doc/packages/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 devel Requires: %{name} = %{version} Summary: Development files for libieee1284 Group: Development/Libraries/C and C++ %description devel Development files for libieee1284, a Library for Interfacing IEEE 1284-Compatible Devices. %prep %setup -q %patch1 -p1 %patch100 -p1 # copy the documentation into the BUILD directory cp %{SOURCE1} . %build %configure --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} # 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 %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/libieee1284_test %{_libdir}/libieee1284.so.* %{_libdir}/python%{py_ver}/site-packages/ieee1284module.so %doc AUTHORS COPYING ChangeLog NEWS README TODO %files devel %defattr(-,root,root) %{_includedir}/ieee1284.h %{_libdir}/libieee1284.so %{_mandir}/man3/* %doc interface.pdf %changelog * Sat Nov 14 2015 jengelh@inai.de - Remove --with-pic; we build no static libs, and shared libs always are PIC. Remove idempotent export line. Remove unnecessary idempotent symlink recreation. - Fixup source URL. - Download new version of interface.pdf. * Fri Feb 1 2013 coolo@suse.com - update license to new format * Tue Jan 31 2012 jengelh@medozas.de - Remove redundant tags/sections per specfile guideline suggestions - Parallel building using %%_smp_mflags * Wed Sep 15 2010 aj@suse.de - Split up devel package. - Fix strict aliasing warning with patch from Fedora (libieee1284-strict-aliasing.patch). - Minor spec file cleanup. * Mon Feb 1 2010 jengelh@medozas.de - package baselibs.conf * Thu Jan 8 2009 crrodriguez@suse.de - remove static libraries * Wed Jan 7 2009 olh@suse.de - obsolete old -XXbit packages (bnc#437293) * Sat Jul 5 2008 bwalle@suse.de - update to 0.2.11 o Don't require st_nlink > 2 for proc directories - remove libieee1284_procfs_nlink_0.diff: merged upstream * Thu Apr 10 2008 ro@suse.de - added baselibs.conf file to build xxbit packages for multilib support * Mon Sep 17 2007 bwalle@suse.de - don't check for st_nlink in /proc/sys/dev/parport when using ppdev (#325739) * Sat Aug 11 2007 meissner@suse.de - make it build. - some spec file cleanups according to rpmlint comments. * Mon Mar 26 2007 jsmeix@suse.de - remove .a and .la files (Suse Bugzilla bug #244452). * Tue Nov 7 2006 ro@suse.de - fix docu permissions * Tue Oct 31 2006 meissner@suse.de - use RPM_OPT_FLAGS * Mon Sep 11 2006 jsmeix@suse.de - using %%{py_ver} instead of hardcoded Python version * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Tue Jan 3 2006 jsmeix@suse.de - update to version 0.2.10 * Mon Jan 24 2005 jsmeix@suse.de - update to version 0.2.9 * Thu Jul 15 2004 jsmeix@suse.de - initial version