Misc packaging cleanup

epel9 imports/e9/zbar-0.23.90-5.el9
Kalev Lember 2 years ago
parent 3382cddf1b
commit 1d27d2f2d2

@ -42,7 +42,7 @@ intensity sensors. It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128,
Code 93, Code 39, Codabar, Interleaved 2 of 5, QR Code and SQ Code. Code 93, Code 39, Codabar, Interleaved 2 of 5, QR Code and SQ Code.
%package devel %package devel
Summary: Bar code library extra development files Summary: Bar code reader library extra development files
Requires: %{name}-libs%{_isa} = %{version}-%{release} Requires: %{name}-libs%{_isa} = %{version}-%{release}
%description devel %description devel
@ -63,7 +63,7 @@ Obsoletes: %{name}-gi < %{version}-%{release}
%description gtk %description gtk
This package contains a bar code scanning widget for use with GUI This package contains a bar code scanning widget for use with GUI
applications based on GTK+-2.0. applications based on GTK 3.
%package gtk-devel %package gtk-devel
Summary: Bar code reader GTK widget extra development files Summary: Bar code reader GTK widget extra development files
@ -72,7 +72,7 @@ Requires: %{name}-gtk%{_isa} = %{version}-%{release}
%description gtk-devel %description gtk-devel
This package contains header files and additional libraries used for This package contains header files and additional libraries used for
developing GUI applications based on GTK+-2.0 that include a bar code developing GUI applications based on GTK 3 that include a bar code
scanning widget. scanning widget.
%package qt %package qt
@ -90,7 +90,7 @@ Requires: %{name}-qt%{_isa} = %{version}-%{release}
%description qt-devel %description qt-devel
This package contains header files and additional libraries used for This package contains header files and additional libraries used for
developing GUI applications based on Qt4 that include a bar code developing GUI applications based on Qt5 that include a bar code
scanning widget. scanning widget.
%package -n python3-zbar %package -n python3-zbar
@ -115,7 +115,6 @@ This package contains header files and additional libraries used for
on Java Native Interface (JNI) applications using ZBar. on Java Native Interface (JNI) applications using ZBar.
%endif %endif
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
@ -131,7 +130,6 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build %make_build
%install %install
rm -rf $RPM_BUILD_ROOT
%make_install %make_install
%if %{JAVA} %if %{JAVA}
install -d %{buildroot}%{_jnidir} install -d %{buildroot}%{_jnidir}
@ -169,7 +167,6 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
%files devel %files devel
%doc HACKING.md TODO.md %doc HACKING.md TODO.md
%{_libdir}/libzbar.so %{_libdir}/libzbar.so
%{_libdir}/pkgconfig/zbar.pc %{_libdir}/pkgconfig/zbar.pc
%dir %{_includedir}/zbar %dir %{_includedir}/zbar
@ -218,6 +215,7 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
%changelog %changelog
* Fri Aug 26 2022 Kalev Lember <klember@redhat.com> - 0.23.90-5 * Fri Aug 26 2022 Kalev Lember <klember@redhat.com> - 0.23.90-5
- Misc packaging cleanup
- Sort BuildRequires and Requires and split them out one per line - Sort BuildRequires and Requires and split them out one per line
- Move GObject Introspection bindings to -gtk and -gtk-devel subpackages - Move GObject Introspection bindings to -gtk and -gtk-devel subpackages
- Split libzbar out to zbar-libs subpackage - Split libzbar out to zbar-libs subpackage

Loading…
Cancel
Save