Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package foma for openSUSE:Factory checked in 
at 2024-05-20 18:09:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/foma (Old)
 and      /work/SRC/openSUSE:Factory/.foma.new.1880 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "foma"

Mon May 20 18:09:37 2024 rev:8 rq:1174844 version:0.10.0+git22

Changes:
--------
--- /work/SRC/openSUSE:Factory/foma/foma.changes        2024-05-15 
21:25:58.296234489 +0200
+++ /work/SRC/openSUSE:Factory/.foma.new.1880/foma.changes      2024-05-20 
18:09:44.698230271 +0200
@@ -1,0 +2,8 @@
+Fri May 17 06:34:16 UTC 2024 - Jan Engelhardt <jeng...@inai.de>
+
+- Update to git snapshot 0.10.0+git22 (e0d8122)
+  * Build fixes for various compilers and C++ standard modes
+- Drop foma-gcc14.patch (merged), delete foma-harden-build.patch
+  (obsolete)
+
+-------------------------------------------------------------------

Old:
----
  foma-0.10.0.tar.xz
  foma-gcc14.patch
  foma-harden-build.patch

New:
----
  foma-0.10.0+git22.tar.xz

BETA DEBUG BEGIN:
  Old:  * Build fixes for various compilers and C++ standard modes
- Drop foma-gcc14.patch (merged), delete foma-harden-build.patch
  (obsolete)
  Old:  * Build fixes for various compilers and C++ standard modes
- Drop foma-gcc14.patch (merged), delete foma-harden-build.patch
  (obsolete)
BETA DEBUG END:

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

Other differences:
------------------
++++++ foma.spec ++++++
--- /var/tmp/diff_new_pack.Jp8raS/_old  2024-05-20 18:09:45.494259252 +0200
+++ /var/tmp/diff_new_pack.Jp8raS/_new  2024-05-20 18:09:45.494259252 +0200
@@ -19,39 +19,36 @@
 %{!?make_build:%global make_build make %{?_smp_mflags}}
 %define libname        libfoma0
 Name:           foma
-Version:        0.10.0
+Version:        0.10.0+git22
 Release:        0
 Summary:        Finite-state compiler and C library
 License:        Apache-2.0
 URL:            https://fomafst.github.io/
-Source0:        foma-%{version}.tar.xz
-Patch0:         foma-harden-build.patch
-# 
https://github.com/mhulden/foma/commit/9a99d2d41809422080606bb49531b38ce1e2111a
-Patch1:         foma-gcc14.patch
+Source:         foma-%version.tar.xz
 BuildRequires:  bison
+BuildRequires:  cmake
 BuildRequires:  flex
 BuildRequires:  ncurses-devel
-BuildRequires:  pkgconfig
+BuildRequires:  pkg-config
 BuildRequires:  readline-devel
 BuildRequires:  pkgconfig(zlib)
 
 %description
 Foma is a compiler, programming language, and C library for constructing
-finite-state automata and transducers for various uses. It has specific
-support for many natural language processing applications such as producing
-morphological analyzers. Although NLP applications are probably the main
-use of foma, it is sufficiently generic to use for a large number of purposes.
+finite-state automata and transducers for various uses. It has specific support
+for many natural language processing applications such as producing
+morphological analyzers. Although NLP applications are probably the main use of
+foma, it is sufficiently generic to use for a large number of purposes.
 
 %package -n %{libname}
 Summary:        Finite-state C library
 
 %description -n %{libname}
 The library contains efficient implementations of all classical
-automata/transducer algorithms: determinization, minimization,
-epsilon-removal, composition, boolean operations. Also, more
-advanced construction methods are available: context restriction,
-quotients, first-order regular logic, transducers from replacement
-rules, etc.
+automata/transducer algorithms: determinization, minimization, epsilon-removal,
+composition, boolean operations. Also, more advanced construction methods are
+available: context restriction, quotients, first-order regular logic,
+transducers from replacement rules, etc.
 
 %package devel
 Summary:        Finite-state C library development files and headers
@@ -61,27 +58,21 @@
 Finite-state C library development files and headers for %{name}.
 
 %prep
-%autosetup -p2 -n %{name}-%{version}/%{name}
-
-sed -i '/^CFLAGS/c\CFLAGS = %{optflags} -fcommon -Wl,--as-needed -D_GNU_SOURCE 
-std=c99 -fvisibility=hidden -fPIC' Makefile
-sed -i '/^LDFLAGS/c\LDFLAGS = -lreadline -lz -lreadline -fpic' Makefile
-sed -i '/^FLOOKUPLDFLAGS/c\FLOOKUPLDFLAGS = libfoma.a -lz -fpic' Makefile
+%autosetup -p1
 
 %build
-# hand written Makefile that gets to be quite PITA
-%make_build -j1
+pushd foma/
+%cmake
+%cmake_build
+popd
 
 %install
-%make_install \
-       prefix=%{buildroot}%{_prefix} \
-       libdir=%{buildroot}%{_libdir}
-rm -rf %{buildroot}%{_libdir}/*.a
-# github.com/mhulden/foma/issues/127
-perl -i -pe 's{\Q%{buildroot}\E}{}' "%{buildroot}/%{_libdir}/pkgconfig"/*.pc
-cat "%{buildroot}/%{_libdir}/pkgconfig"/*.pc
+pushd foma/
+%cmake_install
+popd
+find "%buildroot" -type f -name "*.a" -print -delete
 
-%post -n %{libname} -p /sbin/ldconfig
-%postun -n %{libname} -p /sbin/ldconfig
+%ldconfig_scriptlets -n %libname
 
 %files
 %{_bindir}/cgflookup
@@ -95,6 +86,6 @@
 %{_libdir}/pkgconfig/libfoma.pc
 
 %files -n %{libname}
-%license COPYING
+%license foma/COPYING
 %{_libdir}/libfoma.so.*
 

++++++ _service ++++++
--- /var/tmp/diff_new_pack.Jp8raS/_old  2024-05-20 18:09:45.526260417 +0200
+++ /var/tmp/diff_new_pack.Jp8raS/_new  2024-05-20 18:09:45.530260563 +0200
@@ -1,15 +1,16 @@
 <services>
-       <service mode="disabled" name="tar_scm">
+       <service mode="manual" name="tar_scm">
                <param name="url">https://github.com/mhulden/foma</param>
                <param name="scm">git</param>
                <param name="filename">foma</param>
-               <param 
name="revision">dfe1ccb1055af99be0232a26520d247b5fe093bc</param>
-               <param name="versionformat">0.10.0</param>
+               <param name="revision">master</param>
+               <param 
name="parent-tag">dfe1ccb1055af99be0232a26520d247b5fe093bc</param>
+               <param name="versionformat">0.10.0+git@TAG_OFFSET@</param>
        </service>
-       <service mode="disabled" name="recompress">
+       <service mode="manual" name="recompress">
                <param name="file">*.tar</param>
                <param name="compression">xz</param>
        </service>
-       <service mode="disabled" name="set_version"/>
+       <service mode="manual" name="set_version"/>
 </services>
 

Reply via email to