|
|
@ -1,15 +1,25 @@
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 7
|
|
|
|
|
|
|
|
# Disable python2 build by default
|
|
|
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Summary: A library for interfacing IEEE 1284-compatible devices
|
|
|
|
Summary: A library for interfacing IEEE 1284-compatible devices
|
|
|
|
Name: libieee1284
|
|
|
|
Name: libieee1284
|
|
|
|
Version: 0.2.11
|
|
|
|
Version: 0.2.11
|
|
|
|
Release: 37%{?dist}
|
|
|
|
Release: 28%{?dist}
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
URL: http://cyberelk.net/tim/libieee1284/
|
|
|
|
URL: http://cyberelk.net/tim/libieee1284/
|
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
Patch1: libieee1284-strict-aliasing.patch
|
|
|
|
Patch1: libieee1284-strict-aliasing.patch
|
|
|
|
Patch2: libieee1284-aarch64.patch
|
|
|
|
Patch2: libieee1284-aarch64.patch
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: xmlto
|
|
|
|
BuildRequires: xmlto
|
|
|
|
BuildRequires: make
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
The libieee1284 library is for communicating with parallel port devices.
|
|
|
|
The libieee1284 library is for communicating with parallel port devices.
|
|
|
@ -17,11 +27,28 @@ The libieee1284 library is for communicating with parallel port devices.
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Files for developing applications that use libieee1284
|
|
|
|
Summary: Files for developing applications that use libieee1284
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
The header files, static library, libtool library and man pages for
|
|
|
|
The header files, static library, libtool library and man pages for
|
|
|
|
developing applications that use libieee1284.
|
|
|
|
developing applications that use libieee1284.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%package -n python2-libieee1284
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-libieee1284}
|
|
|
|
|
|
|
|
# Remove before F30
|
|
|
|
|
|
|
|
Provides: %{name}-python = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Obsoletes: %{name}-python < %{version}-%{release}
|
|
|
|
|
|
|
|
Summary: Python extension module for libieee1284
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-libieee1284
|
|
|
|
|
|
|
|
Python extension module for libieee1284. To use libieee1284 with Python,
|
|
|
|
|
|
|
|
use 'import ieee1284'.
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
# Fixed strict aliasing warnings (bug #605170).
|
|
|
|
# Fixed strict aliasing warnings (bug #605170).
|
|
|
@ -32,61 +59,50 @@ developing applications that use libieee1284.
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
touch doc/interface.xml
|
|
|
|
touch doc/interface.xml
|
|
|
|
%configure --without-python
|
|
|
|
%configure \
|
|
|
|
%make_build
|
|
|
|
%if %{without python2}
|
|
|
|
|
|
|
|
--without-python
|
|
|
|
|
|
|
|
%endif # without python2
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
%make_install
|
|
|
|
make DESTDIR=%{buildroot} INSTALL="install -p" install
|
|
|
|
rm -f %{buildroot}%{_libdir}/python*/*/*a
|
|
|
|
rm -f %{buildroot}%{_libdir}/python*/*/*a
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README COPYING TODO AUTHORS NEWS
|
|
|
|
%doc README COPYING TODO AUTHORS NEWS
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/ieee1284.h
|
|
|
|
%{_includedir}/ieee1284.h
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_mandir}/*/*
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%files -n python2-libieee1284
|
|
|
|
%changelog
|
|
|
|
%defattr(-,root,root)
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.2.11-37
|
|
|
|
%{_libdir}/python*/*/*.so
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
%endif # with python2
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.2.11-36
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-35
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-34
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 0.2.11-33
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
- Use make macros
|
|
|
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-32
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-31
|
|
|
|
%changelog
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 0.2.11-28
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-30
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 14 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.11-29
|
|
|
|
|
|
|
|
- Subpackage python2-libieee1284 has been removed
|
|
|
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-28
|
|
|
|
* Mon Jun 25 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.2.11-28
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
- Conditionalize the python2 subpackage
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-27
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-27
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|