Accepting request 126460 from devel:libraries:c_c++
Fix naming of shared library and package OBS-URL: https://build.opensuse.org/request/show/126460 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libservicelog?expand=0&rev=16
This commit is contained in:
commit
8dcf295a99
17
libservicelog-lib_version.patch
Normal file
17
libservicelog-lib_version.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Index: src/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- src/Makefile.am.orig 2011-03-14 22:34:44.000000000 +0100
|
||||||
|
+++ src/Makefile.am 2012-06-28 16:14:30.385936569 +0200
|
||||||
|
@@ -33,8 +33,10 @@ AM_LFLAGS = -Pv29nfy_ -olex.yy.c
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = servicelog-1.pc
|
||||||
|
|
||||||
|
-libservicelog_la_LDFLAGS = -module -version-info \
|
||||||
|
- @GENERIC_API_VERSION@ -release @GENERIC_RELEASE@
|
||||||
|
+#libservicelog_la_LDFLAGS = -module -version-info \
|
||||||
|
+# @GENERIC_API_VERSION@ -release @GENERIC_RELEASE@
|
||||||
|
+
|
||||||
|
+libservicelog_la_LDFLAGS = -version-info @GENERIC_API_VERSION@
|
||||||
|
|
||||||
|
AM_CFLAGS = -Wall -g -DDEST_DIR='"${exec_prefix}"'
|
||||||
|
AM_LDFLAGS = -lsqlite3 -lrtas -lrtasevent
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 28 16:28:34 CEST 2012 - pth@suse.de
|
||||||
|
|
||||||
|
- Using both -version-info and -release options for libtool is bogus,
|
||||||
|
therefore use version-info only and name shared library package
|
||||||
|
accordingly.
|
||||||
|
- Adapt requires of -devel package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 31 16:01:42 CET 2012 - meissner@suse.de
|
Tue Jan 31 16:01:42 CET 2012 - meissner@suse.de
|
||||||
|
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define so_version 1
|
||||||
|
|
||||||
Name: libservicelog
|
Name: libservicelog
|
||||||
Version: 1.1.11
|
Version: 1.1.11
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -38,6 +40,7 @@ Source2: libservicelog-rpmlintrc
|
|||||||
Patch0: libservicelog.install.patch
|
Patch0: libservicelog.install.patch
|
||||||
Patch4: libservicelog-pkgconfig.patch
|
Patch4: libservicelog-pkgconfig.patch
|
||||||
Patch5: libservicelog-printf_types.patch
|
Patch5: libservicelog-printf_types.patch
|
||||||
|
Patch6: libservicelog-lib_version.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The libservicelog package contains a library to create and maintain a
|
The libservicelog package contains a library to create and maintain a
|
||||||
@ -46,12 +49,13 @@ allows for the logging of serviceable and informational events, and for
|
|||||||
the logging of service procedures that have been performed upon the
|
the logging of service procedures that have been performed upon the
|
||||||
system.
|
system.
|
||||||
|
|
||||||
%package -n libservicelog-1_1-1
|
|
||||||
|
%package -n %{name}%{so_version}
|
||||||
Summary: Servicelog Database and Library
|
Summary: Servicelog Database and Library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Provides: libservicelog-library
|
Provides: libservicelog-library
|
||||||
|
|
||||||
%description -n libservicelog-1_1-1
|
%description -n %{name}%{so_version}
|
||||||
The libservicelog package contains a library to create and maintain a
|
The libservicelog package contains a library to create and maintain a
|
||||||
database for storing events related to system service. This database
|
database for storing events related to system service. This database
|
||||||
allows for the logging of serviceable and informational events, and for
|
allows for the logging of serviceable and informational events, and for
|
||||||
@ -61,8 +65,9 @@ system.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for libservicelog
|
Summary: Development files for libservicelog
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Requires: %{name} = %{version} glibc-devel
|
Requires: %{name} = %{version}
|
||||||
Requires: libservicelog-1_1-1
|
Requires: %{name}%{so_version} = %{version}
|
||||||
|
Requires: glibc-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Contains header files for building with libservicelog.
|
Contains header files for building with libservicelog.
|
||||||
@ -72,6 +77,7 @@ Contains header files for building with libservicelog.
|
|||||||
%patch0
|
%patch0
|
||||||
%patch4
|
%patch4
|
||||||
%patch5
|
%patch5
|
||||||
|
%patch6
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
@ -85,9 +91,9 @@ make %{?_smp_mflags}
|
|||||||
%pre
|
%pre
|
||||||
/usr/sbin/groupadd -r service || echo groupadd service failed
|
/usr/sbin/groupadd -r service || echo groupadd service failed
|
||||||
|
|
||||||
%post -n libservicelog-1_1-1 -p /sbin/ldconfig
|
%post -n %{name}%{so_version} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libservicelog-1_1-1 -p /sbin/ldconfig
|
%postun -n %{name}%{so_version} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -95,7 +101,7 @@ make %{?_smp_mflags}
|
|||||||
%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 libservicelog-1_1-1
|
%files -n %{name}%{so_version}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
# dlopen object
|
# dlopen object
|
||||||
|
Loading…
Reference in New Issue
Block a user