Accepting request 906629 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/906629
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libservicelog?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2021-07-16 20:12:57 +00:00 committed by Git OBS Bridge
commit b5b9ddb0e3
2 changed files with 17 additions and 13 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jul 15 18:57:56 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Drop --with-pic, has no effect with --disable-static.
- Replace PreReq with Requires(pre).
- Do not ignore error return from useradd.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 15 15:54:56 UTC 2021 - Michal Suchanek <msuchanek@suse.com> Thu Jul 15 15:54:56 UTC 2021 - Michal Suchanek <msuchanek@suse.com>

View File

@ -22,7 +22,7 @@ Version: 1.1.19
Release: 0 Release: 0
Summary: Servicelog Database and Library Summary: Servicelog Database and Library
License: LGPL-2.0-or-later License: LGPL-2.0-or-later
Group: System/Libraries Group: Development/Libraries/C and C++
URL: https://github.com/power-ras/libservicelog/ URL: https://github.com/power-ras/libservicelog/
#Git-Clone: https://github.com/power-ras/libservicelog.git #Git-Clone: https://github.com/power-ras/libservicelog.git
@ -30,14 +30,13 @@ URL: https://github.com/power-ras/libservicelog/
Source0: https://github.com/power-ras/libservicelog/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/power-ras/libservicelog/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: baselibs.conf Source1: baselibs.conf
Source2: libservicelog-rpmlintrc Source2: libservicelog-rpmlintrc
PreReq: %{_sbindir}/groupadd Requires(pre): %{_sbindir}/groupadd
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: librtas-devel BuildRequires: librtas-devel
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: sqlite3-devel BuildRequires: sqlite3-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ppc ppc64 ppc64le ExclusiveArch: ppc ppc64 ppc64le
%description %description
@ -61,44 +60,42 @@ system.
%package devel %package devel
Summary: Development files for libservicelog Summary: Development files for libservicelog
Group: Development/Libraries/Other Group: Development/Libraries/C and C++
Requires: %lname = %version Requires: %lname = %version
Requires: glibc-devel Requires: glibc-devel
Requires: sqlite3-devel Requires: sqlite3-devel
%description devel %description devel
Contains header files for building with libservicelog. Header files for building with libservicelog.
%prep %prep
%setup -q %autosetup -p1
%build %build
autoreconf -fiv autoreconf -fiv
%configure --with-pic --disable-static %configure --disable-static
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%make_install %make_install
%__rm -f %{buildroot}%{_libdir}/*.la rm -f %{buildroot}/%{_libdir}/*.la
%pre %pre
/usr/sbin/groupadd -r service || echo groupadd service failed getent group service >/dev/null || %{_sbindir}/groupadd -r service
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-) %license COPYING
%doc COPYING AUTHORS %doc AUTHORS
%attr( 754, root, service ) %dir /var/lib/servicelog %attr( 754, root, service ) %dir /var/lib/servicelog
%attr( 644, root, service ) /var/lib/servicelog/servicelog.db %attr( 644, root, service ) /var/lib/servicelog/servicelog.db
%files -n %lname %files -n %lname
%defattr(-,root,root,-)
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%files devel %files devel
%defattr(-,root,root,-)
%{_includedir}/servicelog-1 %{_includedir}/servicelog-1
%{_libdir}/pkgconfig/servicelog-1.pc %{_libdir}/pkgconfig/servicelog-1.pc
%{_libdir}/*.so %{_libdir}/*.so