Blame SPECS/libieee1284.spec

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