Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package termcap for openSUSE:Factory checked 
in at 2023-10-24 20:06:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/termcap (Old)
 and      /work/SRC/openSUSE:Factory/.termcap.new.24901 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "termcap"

Tue Oct 24 20:06:39 2023 rev:28 rq:1119231 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/termcap/termcap.changes  2019-12-06 
12:21:03.371797007 +0100
+++ /work/SRC/openSUSE:Factory/.termcap.new.24901/termcap.changes       
2023-10-24 20:06:41.768901172 +0200
@@ -1,0 +2,15 @@
+Fri Oct 20 12:16:55 UTC 2023 - Dr. Werner Fink <wer...@suse.de>
+
+- Create a devel-static sub packages for static libs as well 
+
+-------------------------------------------------------------------
+Thu Oct 12 13:07:32 UTC 2023 - Dr. Werner Fink <wer...@suse.de>
+
+- Rework package to make it build again 
+
+-------------------------------------------------------------------
+Thu Oct 12 12:33:35 UTC 2023 - Dr. Werner Fink <wer...@suse.de>
+
+- New RPM API change ... now no %patch anymore only %patch0 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ termcap.spec ++++++
--- /var/tmp/diff_new_pack.WsxOCP/_old  2023-10-24 20:06:42.376923278 +0200
+++ /var/tmp/diff_new_pack.WsxOCP/_new  2023-10-24 20:06:42.380923423 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package termcap
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,9 @@
 #
 
 
+%define libcurses libcurses1
+%define libtermcap libtermcap2
+
 Name:           termcap
 # bug437293
 %ifarch ppc64
@@ -30,18 +33,58 @@
 Source:         termcap-2.0.8.tar.gz
 Source1:        curses-bsd4.4.tar.gz
 Source2:        baselibs.conf
-Patch:          termcap-2.0.8.dif
+Patch0:         termcap-2.0.8.dif
 Patch1:         curses-bsd4.4-linux.patch
 Patch2:         termcap-2.0.8-setuid.patch
 Patch3:         termcap-2.0.8-fix-tc.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
-The termcap library.
+The termcap and curses libraries.
+
+%package -n %libcurses
+Summary:        Library for old curses
+Group:          System/Libraries
+Version:        1.0.0
+Provides:       termcap:%{_libdir}/libcurses.so.1.0.0
+Obsoletes:      termcap <= 2.0.8
+
+%description -n %libcurses
+This library of old curses
+
+%package -n %libtermcap
+Summary:        Library for old termcap
+Group:          System/Libraries
+Version:        2.0.8
+Provides:       termcap:%{_libdir}/libtermcap.so.2.0.8
+Obsoletes:      termcap <= 2.0.8
+
+%description -n %libtermcap
+This library of old termcap
+
+%package devel
+Summary:        Development files for termcap
+Group:          Development/Libraries/C and C++
+Provides:       termcap:%{_includedir}/curses/curses.h
+Requires:       %libcurses = 1.0.0
+Requires:       %libtermcap = 2.0.8
+
+%description devel
+This package contains all necessary include files
+and libraries needed to build termcap based applications.
+
+%package devel-static
+Summary:        Development files for termcap
+Group:          Development/Libraries/C and C++
+Provides:       termcap:%{_libdir}/termcap/libtermcap.a
+Requires:       %{name}-devel
+
+%description devel-static
+This package contains all necessary include files
+and libraries needed to build termcap based applications.
 
 %prep
 %setup -q -b 1
-%patch  -p0
+%patch0 -p0
 %patch2 -p1 -b .setuid
 %patch3 -p1 -b .tc
 cd ../curses-bsd4.4
@@ -56,33 +99,38 @@
 make -j1 lib=%{_lib} CC="%{__cc}"
 
 %install
-mkdir -p ${RPM_BUILD_ROOT}/usr/%{_lib}
-mkdir -p ${RPM_BUILD_ROOT}/usr/include
-make install prefix=${RPM_BUILD_ROOT}/usr lib=%{_lib}
+mkdir -p %{buildroot}%{_libdir}
+mkdir -p %{buildroot}%{_includedir}
+make install prefix=%{buildroot}%{_prefix} lib=%{_lib}
 cd ../curses-bsd4.4
-make install prefix=${RPM_BUILD_ROOT}/usr lib=%{_lib}
-
-%clean
-test -z "${RPM_BUILD_ROOT}" || rm -rf "${RPM_BUILD_ROOT}"
+make install prefix=%{buildroot}%{_prefix} lib=%{_lib}
+find %{buildroot} \( -name '*.h' -o -name '*.a' \) -exec chmod 644 '{}' \+
 
-%post -p /sbin/ldconfig
+%post -n %libcurses -p /sbin/ldconfig
+%postun -n %libcurses -p /sbin/ldconfig
 
-%postun -p /sbin/ldconfig
+%post -n %libtermcap -p /sbin/ldconfig
+%postun -n %libtermcap -p /sbin/ldconfig
 
-%files
-%defattr(-,root,root)
-%dir /usr/include/curses
-%dir /usr/%{_lib}/curses
-/usr/include/curses/curses.h
-/usr/%{_lib}/curses/libcurses.a
-/usr/%{_lib}/curses/libcurses.so
-/usr/%{_lib}/libcurses.so.1
-/usr/%{_lib}/libcurses.so.1.0.0
-%dir /usr/include/termcap
-%dir /usr/%{_lib}/termcap
-/usr/include/termcap/termcap.h
-/usr/%{_lib}/libtermcap.so.2
-/usr/%{_lib}/libtermcap.so.2.0.8
-/usr/%{_lib}/termcap/libtermcap.a
-/usr/%{_lib}/termcap/libtermcap.so
+%files -n %libcurses
+%{_libdir}/libcurses.so.1
+%{_libdir}/libcurses.so.1.0.0
+
+%files -n %libtermcap
+%{_libdir}/libtermcap.so.2
+%{_libdir}/libtermcap.so.2.0.8
+
+%files devel
+%dir %{_includedir}/curses
+%dir %{_includedir}/termcap
+%dir %{_libdir}/curses
+%dir %{_libdir}/termcap
+%{_includedir}/curses/curses.h
+%{_includedir}/termcap/termcap.h
+%{_libdir}/curses/libcurses.so
+%{_libdir}/termcap/libtermcap.so
+
+%files devel-static
+%{_libdir}/curses/libcurses.a
+%{_libdir}/termcap/libtermcap.a
 

Reply via email to