Accepting request 894747 from home:jengelh:forensics

Give the output .rpm files different names, as required by the OBS Factory workflow.

OBS-URL: https://build.opensuse.org/request/show/894747
OBS-URL: https://build.opensuse.org/package/show/security:forensics/libuna?expand=0&rev=15
This commit is contained in:
Greg Freemyer 2021-05-21 22:51:57 +00:00 committed by Git OBS Bridge
parent e1a98b6821
commit c0aaf49631

View File

@ -16,8 +16,15 @@
# #
%if "@BUILD_FLAVOR@" != ""
%define pprefix @BUILD_FLAVOR@-
%define psuffix -@BUILD_FLAVOR@
%else
%define psuffix %nil
%endif
%define lname libuna1
Name: libuna Name: libuna
%define lname libuna1
Version: 20210418 Version: 20210418
Release: 0 Release: 0
Summary: Library to support Unicode and ASCII (byte string) conversions Summary: Library to support Unicode and ASCII (byte string) conversions
@ -31,7 +38,7 @@ BuildRequires: gettext-tools >= 0.18.1
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: pkgconfig(libcdatetime) >= 20200510 BuildRequires: pkgconfig(libcdatetime) >= 20200510
BuildRequires: pkgconfig(libcerror) >= 20150101 BuildRequires: pkgconfig(libcerror) >= 20201121
%if "@BUILD_FLAVOR@" != "mini" %if "@BUILD_FLAVOR@" != "mini"
BuildRequires: pkgconfig(libcfile) >= 20201229 BuildRequires: pkgconfig(libcfile) >= 20201229
%endif %endif
@ -44,11 +51,14 @@ conversions. It currently supports: 7-bit ASCII, ISO 8859-{1..15},
Windows 874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255, Windows 874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255,
1256, 1257, 1258, KOI8-R, KOI8-U, UTF-7, UTF-8, UTF-16, UTF-32. 1256, 1257, 1258, KOI8-R, KOI8-U, UTF-7, UTF-8, UTF-16, UTF-32.
%package -n %lname %package -n %lname%psuffix
Summary: Library to support Unicode and ASCII (byte string) conversions Summary: Library to support Unicode and ASCII (byte string) conversions
Group: System/Libraries Group: System/Libraries
%if "@BUILD_FLAVOR@" == ""
Obsoletes: %lname-mini
%endif
%description -n %lname %description -n %lname%psuffix
libuna is a library to support Unicode and ASCII (byte string) libuna is a library to support Unicode and ASCII (byte string)
conversions. conversions.
@ -59,12 +69,15 @@ Group: Development/Tools/Other
%description tools %description tools
Several tools for converting Unicode and ASCII (byte stream) based text. Several tools for converting Unicode and ASCII (byte stream) based text.
%package devel %package %{?pprefix}devel
Summary: Development files for libuna, a library to support Unicode/ASCII conversions Summary: Development files for libuna, a library to support Unicode/ASCII conversions
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %{version} Requires: %lname%psuffix = %version
%if "@BUILD_FLAVOR@" == ""
Obsoletes: libuna-devel-mini
%endif
%description devel %description %{?pprefix}devel
libuna is a library to support Unicode and ASCII (byte string) libuna is a library to support Unicode and ASCII (byte string)
conversions. conversions.
@ -87,10 +100,10 @@ if [ ! -e configure ]; then ./autogen.sh; fi
%make_install %make_install
rm -f "%{buildroot}/%{_libdir}"/*.la rm -f "%{buildroot}/%{_libdir}"/*.la
%post -n %lname -p /sbin/ldconfig %post -n %lname%psuffix -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname%psuffix -p /sbin/ldconfig
%files -n %lname %files -n %lname%psuffix
%license COPYING %license COPYING
%{_libdir}/libuna.so.1* %{_libdir}/libuna.so.1*
@ -100,7 +113,7 @@ rm -f "%{buildroot}/%{_libdir}"/*.la
%{_mandir}/man1/unaexport.1* %{_mandir}/man1/unaexport.1*
%endif %endif
%files devel %files %{?pprefix}devel
%{_includedir}/libuna* %{_includedir}/libuna*
%{_libdir}/libuna.so %{_libdir}/libuna.so
%{_libdir}/pkgconfig/libuna.pc %{_libdir}/pkgconfig/libuna.pc