SHA256
8
0
forked from pool/libspiro
Files
libspiro/libspiro.spec
Dirk Mueller 6f96921f61 - update to 20240903:
* Downgraded ./configure AC_PREREQ(2.70) to 2.69 to allow
    libspiro to be built for ELN distros.
- update to 20240902:
  * Removed bug introduced during 20221101 which caused libspiro
    to exit early without results. This was seen in Fontforge as
    straight lines (closes issue (see bug).
  * Updated configure.ac to also display $libdir since 64bit
    needs to run './configure --prefix=/usr --libdir=/usr/lib64'
    for distro installs (32bit ./configure --prefix=/usr' is
    enough).

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libspiro?expand=0&rev=18
2025-03-30 10:46:55 +00:00

85 lines
2.4 KiB
RPMSpec

#
# spec file for package libspiro
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sonum 1
Name: libspiro
Version: 20240903
Release: 0
Summary: A clothoid to bezier spline converter
License: GPL-3.0-or-later
Group: System/Libraries
URL: https://github.com/fontforge/libspiro
Source0: https://github.com/fontforge/libspiro/archive/%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
%description
libspiro contains routines which will convert an array of clothoid
spline control points into an equivalent set of bezier control points.
%package -n %{name}%{sonum}
Summary: A clothoid to bezier spline converter
Group: System/Libraries
%description -n %{name}%{sonum}
libspiro contains routines which will convert an array of clothoid
spline control points into an equivalent set of bezier control points.
%package devel
Summary: Development Files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name}1 = %{version}
Requires: glibc-devel
%description devel
This package contains all necessary include files and libraries needed
to compile and develop applications that use %{name}.
%prep
%setup -q
%build
autoreconf -i
automake --foreign -Wall
%configure --with-pic\
--disable-static
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{name}%{sonum} -p /sbin/ldconfig
%postun -n %{name}%{sonum} -p /sbin/ldconfig
%files -n %{name}%{sonum}
%license COPYING
%doc ChangeLog README*
%{_libdir}/lib*.so.*
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man3/libspiro.3%{?ext_man}
%{_libdir}/pkgconfig/*.pc
%changelog