Blame SPECS/libieee1284.spec

02e9f0
%if 0%{?rhel} > 7
02e9f0
# Disable python2 build by default
02e9f0
%bcond_with python2
02e9f0
%else
02e9f0
%bcond_without python2
02e9f0
%endif
02e9f0
02e9f0
Summary: A library for interfacing IEEE 1284-compatible devices
02e9f0
Name: libieee1284
02e9f0
Version: 0.2.11
02e9f0
Release: 28%{?dist}
02e9f0
License: GPLv2+
02e9f0
Group: System Environment/Libraries
02e9f0
URL: http://cyberelk.net/tim/libieee1284/
02e9f0
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
02e9f0
Patch1: libieee1284-strict-aliasing.patch
02e9f0
Patch2: libieee1284-aarch64.patch
02e9f0
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
02e9f0
BuildRequires: xmlto
02e9f0
%if %{with python2}
02e9f0
BuildRequires: python2-devel
02e9f0
%endif # with python2
02e9f0
02e9f0
%description
02e9f0
The libieee1284 library is for communicating with parallel port devices.
02e9f0
02e9f0
%package devel
02e9f0
Summary: Files for developing applications that use libieee1284
02e9f0
Requires: %{name} = %{version}-%{release}
02e9f0
Group: Development/Libraries
02e9f0
02e9f0
%description devel
02e9f0
The header files, static library, libtool library and man pages for
02e9f0
developing applications that use libieee1284.
02e9f0
02e9f0
%if %{with python2}
02e9f0
%package -n python2-libieee1284
02e9f0
%{?python_provide:%python_provide python2-libieee1284}
02e9f0
# Remove before F30
02e9f0
Provides: %{name}-python = %{version}-%{release}
02e9f0
Provides: %{name}-python%{?_isa} = %{version}-%{release}
02e9f0
Obsoletes: %{name}-python < %{version}-%{release}
02e9f0
Summary: Python extension module for libieee1284
02e9f0
Requires: %{name} = %{version}-%{release}
02e9f0
Group: System Environment/Libraries
02e9f0
02e9f0
%description -n python2-libieee1284
02e9f0
Python extension module for libieee1284.  To use libieee1284 with Python,
02e9f0
use 'import ieee1284'.
02e9f0
%endif # with python2
02e9f0
02e9f0
%prep
02e9f0
%setup -q
02e9f0
# Fixed strict aliasing warnings (bug #605170).
02e9f0
%patch1 -p1 -b .strict-aliasing
02e9f0
02e9f0
# Add support for building on aarch64 (bug #925774).
02e9f0
%patch2 -p1 -b .aarch64
02e9f0
02e9f0
%build
02e9f0
touch doc/interface.xml
02e9f0
%configure \
02e9f0
%if %{without python2}
02e9f0
--without-python
02e9f0
%endif # without python2
02e9f0
make %{?_smp_mflags}
02e9f0
02e9f0
%install
02e9f0
rm -rf %{buildroot}
02e9f0
make DESTDIR=%{buildroot} INSTALL="install -p" install
02e9f0
rm -f %{buildroot}%{_libdir}/python*/*/*a
02e9f0
rm -f %{buildroot}%{_libdir}/*.a
02e9f0
rm -f %{buildroot}%{_libdir}/*.la
02e9f0
02e9f0
%clean
02e9f0
rm -rf %{buildroot}
02e9f0
02e9f0
%files
02e9f0
%defattr(-,root,root)
02e9f0
%doc README COPYING TODO AUTHORS NEWS
02e9f0
%{_libdir}/*.so.*
02e9f0
%{_bindir}/*
02e9f0
02e9f0
%files devel
02e9f0
%defattr(-,root,root)
02e9f0
%{_includedir}/ieee1284.h
02e9f0
%{_libdir}/*.so
02e9f0
%{_mandir}/*/*
02e9f0
02e9f0
%if %{with python2}
02e9f0
%files -n python2-libieee1284
02e9f0
%defattr(-,root,root)
02e9f0
%{_libdir}/python*/*/*.so
02e9f0
%endif # with python2
02e9f0
02e9f0
%post -p /sbin/ldconfig
02e9f0
02e9f0
%postun -p /sbin/ldconfig
02e9f0
02e9f0
%changelog
02e9f0
* Mon Jun 25 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.2.11-28
02e9f0
- Conditionalize the python2 subpackage
02e9f0
02e9f0
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-27
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
02e9f0
02e9f0
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.2.11-26
02e9f0
- Update Python 2 dependency declarations to new packaging standards
02e9f0
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
02e9f0
02e9f0
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.11-25
02e9f0
- Add Provides for the old name without %%_isa
02e9f0
02e9f0
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.11-24
02e9f0
- Python 2 binary package renamed to python2-libieee1284
02e9f0
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
02e9f0
02e9f0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-23
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
02e9f0
02e9f0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-22
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
02e9f0
02e9f0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-21
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
02e9f0
02e9f0
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-20
02e9f0
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
02e9f0
02e9f0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-19
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
02e9f0
02e9f0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-18
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
02e9f0
02e9f0
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-17
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
02e9f0
02e9f0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-16
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
02e9f0
02e9f0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-15
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
02e9f0
02e9f0
* Tue Apr 30 2013 Tim Waugh <twaugh@redhat.com> 0.2.11-14
02e9f0
- Add support for building on aarch64 (bug #925774).
02e9f0
02e9f0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-13
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
02e9f0
02e9f0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-12
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
02e9f0
02e9f0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-11
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
02e9f0
02e9f0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-10
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
02e9f0
02e9f0
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.2.11-9
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
02e9f0
02e9f0
* Wed Jun 23 2010 Tim Waugh <twaugh@redhat.com> 0.2.11-9
02e9f0
- The python sub-package now requires the exactly-matching main
02e9f0
  package (bug #605169).
02e9f0
- Fixed strict aliasing warnings (bug #605170).
02e9f0
02e9f0
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-8
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
02e9f0
02e9f0
* Thu May 14 2009 Tim Waugh <twaugh@redhat.com> 0.2.11-7
02e9f0
- Package review fix: removed trailing dot in python package summary
02e9f0
  (bug #226031).
02e9f0
02e9f0
* Thu May 14 2009 Tim Waugh <twaugh@redhat.com> 0.2.11-6
02e9f0
- Package review fixes (bug #226031):
02e9f0
  - Drop prereq on ldconfig.
02e9f0
  - Removed trailing dot in devel package summary.
02e9f0
  - Fixed devel package requirement on main package.
02e9f0
  - Use SMP make flags.
02e9f0
  - Removed static libraries and la files.
02e9f0
  - Fixed source URL.
02e9f0
  - Make sure timestamps are preserved on install.
02e9f0
  - Ship AUTHORS and NEWS.
02e9f0
02e9f0
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-5
02e9f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
02e9f0
02e9f0
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.2.11-4
02e9f0
- Rebuild for Python 2.6
02e9f0
02e9f0
* Wed Feb 13 2008 Tim Waugh <twaugh@redhat.com> 0.2.11-3
02e9f0
- Don't build PDF documentation as this creates multilib conflicts.
02e9f0
02e9f0
* Wed Jan  9 2008 Tim Waugh <twaugh@redhat.com> 0.2.11-2
02e9f0
- Rebuilt.
02e9f0
02e9f0
* Tue Sep 18 2007 Tim Waugh <twaugh@redhat.com> 0.2.11-1
02e9f0
- 0.2.11 (bug #246406).
02e9f0
02e9f0
* Wed Aug 29 2007 Tim Waugh <twaugh@redhat.com> 0.2.9-5
02e9f0
- Added dist tag.
02e9f0
- Fixed summary.
02e9f0
- Better buildroot tag.
02e9f0
- More specific license tag.
02e9f0
02e9f0
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.2.9-4
02e9f0
- rebuild against python 2.5
02e9f0
02e9f0
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.2.9-3.2.2
02e9f0
- rebuild
02e9f0
02e9f0
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.2.9-3.2.1
02e9f0
- bump again for double-long bug on ppc(64)
02e9f0
02e9f0
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.2.9-3.2
02e9f0
- rebuilt for new gcc4.1 snapshot and glibc changes
02e9f0
02e9f0
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
02e9f0
- rebuilt
02e9f0
02e9f0
* Tue Jul 19 2005 Tim Waugh <twaugh@redhat.com> 0.2.9-3
02e9f0
- Rebuild man pages.
02e9f0
02e9f0
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 0.2.9-2
02e9f0
- Rebuild for new GCC.
02e9f0
02e9f0
* Thu Jan 20 2005 Tim Waugh <twaugh@redhat.com> 0.2.9-1
02e9f0
- 0.2.9.
02e9f0
- Build requires python-devel.
02e9f0
- Ship Python extension module.
02e9f0
02e9f0
* Wed Sep 22 2004 Than Ngo <than@redhat.com> 0.2.8-4 
02e9f0
- add Prereq: /sbin/ldconfig
02e9f0
02e9f0
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
02e9f0
- rebuilt
02e9f0
02e9f0
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
02e9f0
- rebuilt
02e9f0
02e9f0
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
02e9f0
- rebuilt
02e9f0
02e9f0
* Mon Jun  9 2003 Tim Waugh <twaugh@redhat.com> 0.2.8-1
02e9f0
- Initial Red Hat Linux package.
02e9f0
02e9f0
* Wed Feb 26 2003 Tim Waugh <twaugh@redhat.com>
02e9f0
- Use the Makefile rule to build the PDF.
02e9f0
02e9f0
* Sat Aug 24 2002 Tim Waugh <twaugh@redhat.com>
02e9f0
- Ship test program.
02e9f0
02e9f0
* Sat Aug  3 2002 Tim Waugh <twaugh@redhat.com>
02e9f0
- The archive is now distributed in .tar.bz2 format.
02e9f0
02e9f0
* Fri Apr 26 2002 Tim Waugh <twaugh@redhat.com>
02e9f0
- No need to create man page symlinks any more.
02e9f0
- Build requires xmlto now, not docbook-utils.
02e9f0
02e9f0
* Wed Apr 24 2002 Tim Waugh <twaugh@redhat.com>
02e9f0
- The tarball builds its own man pages now; just adjust the symlinks.
02e9f0
- Run ldconfig.
02e9f0
02e9f0
* Mon Jan  7 2002 Tim Waugh <twaugh@redhat.com>
02e9f0
- Ship the PDF file with the devel package.
02e9f0
02e9f0
* Thu Nov 15 2001 Tim Waugh <twaugh@redhat.com>
02e9f0
- Initial specfile.