File libeasyfc.spec of Package libeasyfc

#
# spec file for package libeasyfc
#
# 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/
#


Name:           libeasyfc
Version:        0.14.1
Release:        0
Summary:        Easy configuration generator interface for fontconfig
License:        LGPL-3.0-only
Group:          System/Libraries
URL:            http://tagoh.bitbucket.org/libeasyfc
Source:         https://bitbucket.org/tagoh/libeasyfc/downloads/libeasyfc-%{version}.tar.bz2
BuildRequires:  fontconfig-devel >= 2.10.0
BuildRequires:  glib2-devel >= 2.14.0
BuildRequires:  gobject-introspection-devel
BuildRequires:  harfbuzz-devel >= 0.9.12
BuildRequires:  libxml2-devel >= 2.1.0
BuildRequires:  pkgconfig

%description
libeasyfc is an interface library to generate fontconfig configuration
for user preferences. this supports to assign your preferrable fonts
to the alias fonts, such as sans-serif, serif and monospace per languages.

%package -n libeasyfc0
Summary:        Easy configuration generator interface for fontconfig
Group:          System/Libraries

%description -n libeasyfc0
libeasyfc is an interface library to generate fontconfig configuration
for user preferences. this supports to assign your preferrable fonts
to the alias fonts, such as sans-serif, serif and monospace per languages.

%package -n libeasyfc-gobject0
Summary:        Easy configuration generator interface for fontconfig
Group:          System/Libraries

%description -n libeasyfc-gobject0
libeasyfc is an interface library to generate fontconfig configuration
for user preferences. this supports to assign your preferrable fonts
to the alias fonts, such as sans-serif, serif and monospace per languages.

%package devel
Summary:        Development headers for libeasyfc
Group:          Development/Libraries/C and C++
Requires:       libeasyfc-gobject0 = %{version}
Requires:       libeasyfc0 = %{version}

%description devel
This package contains header files, libraries, and documents for
developing application using libeasyfc.

%package -n typelib-1_0-Easyfc-0_14
Summary:        Easy configuration generator interface for fontconfig -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-Easyfc-0_14
libeasyfc is an interface library to generate fontconfig configuration
for user preferences. this supports to assign your preferrable fonts
to the alias fonts, such as sans-serif, serif and monospace per languages.

This package provides the GObject Introspection bindings for libeasyfc.

%prep
%setup -q

%build
%configure --disable-static
%make_build

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print

%post -n libeasyfc0 -p /sbin/ldconfig
%postun -n libeasyfc0 -p /sbin/ldconfig
%post -n libeasyfc-gobject0 -p /sbin/ldconfig
%postun -n libeasyfc-gobject0 -p /sbin/ldconfig

%files -n libeasyfc0
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/libeasyfc.so.0
%{_libdir}/libeasyfc.so.0.6.0

%files -n libeasyfc-gobject0
%{_libdir}/libeasyfc-gobject.so.0
%{_libdir}/libeasyfc-gobject.so.0.6.0

%files devel
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_includedir}/libeasyfc
%{_libdir}/libeasyfc.so
%{_libdir}/libeasyfc-gobject.so
%{_libdir}/pkgconfig/libeasyfc.pc
%{_libdir}/pkgconfig/libeasyfc-gobject.pc
%{_datadir}/gtk-doc/html/libeasyfc
%{_datadir}/gir-1.0/Easyfc-0.14.gir

%files -n typelib-1_0-Easyfc-0_14
%{_libdir}/girepository-1.0/Easyfc-0.14.typelib

%changelog
openSUSE Build Service is sponsored by