Compare commits

...

No commits in common. "c8s" and "c9s" have entirely different histories.
c8s ... c9s

3 changed files with 43 additions and 55 deletions

5
.gitignore vendored
View File

@ -1,2 +1,3 @@
SOURCES/libieee1284-0.2.11.tar.bz2 libieee1284-0.2.8.tar.bz2
/libieee1284-0.2.11.tar.bz2 libieee1284-0.2.9.tar.bz2
libieee1284-0.2.11.tar.bz2

View File

@ -1,25 +1,15 @@
%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: 28%{?dist} Release: 37%{?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
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc
BuildRequires: xmlto BuildRequires: xmlto
%if %{with python2} BuildRequires: make
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.
@ -27,28 +17,11 @@ 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).
@ -59,47 +32,61 @@ use 'import ieee1284'.
%build %build
touch doc/interface.xml touch doc/interface.xml
%configure \ %configure --without-python
%if %{without python2} %make_build
--without-python
%endif # without python2
make %{?_smp_mflags}
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
make DESTDIR=%{buildroot} INSTALL="install -p" install %make_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}/*/*
%if %{with python2} %ldconfig_scriptlets
%files -n python2-libieee1284
%defattr(-,root,root)
%{_libdir}/python*/*/*.so
%endif # with python2
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog %changelog
* Mon Jun 25 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.2.11-28 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.2.11-37
- Conditionalize the python2 subpackage - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
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
- Use make macros
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* 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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* 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

View File

@ -1 +1 @@
SHA512 (libieee1284-0.2.11.tar.bz2) = 06cc3049ce15613d34e39dc71bc572843c61ab64077c29ef9a6257edb0849c98565ff612a4cf787bc9642a39f1c89b7c47a20fb27f2318105be82aad8d472bb9 b8fff9f3d121531bc17430e3f4ea6ed0 libieee1284-0.2.11.tar.bz2