File libutf.spec of Package libutf

#
# LIBUTF specfile
#
# (C) Cyril Hrubis metan{at}ucw.cz 2013-2023
#

Summary: Basic functions to convert to and manipulate with utf8
Name: libutf
Version: git
Release: 1
License: LGPL-2.1-or-later
Group: System/Libraries
Url: https://github.com/gfxprim/libutf
Source: libutf-%{version}.tar.bz2

BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot

%package -n libutf1
Group: System/Libraries
Summary: Basic functions to convert to and manipulate with utf8

%package devel
Group: Development/Libraries/C and C++
Summary: Develop files for libutf library
Requires: libutf1

%description
Basic functions to convert to and manipulate with utf8

%description -n libutf1
Basic functions to convert to and manipulate with utf8

%description devel
Devel package for libutf library

%prep
%setup -n libutf-%{version}

%build
./configure --prefix='/usr' --bindir=%{_bindir} --libdir=%{_libdir} --includedir=%{_includedir} --mandir=%{_mandir}
make %{?jobs:-j%jobs}

%install
DESTDIR="$RPM_BUILD_ROOT" make install

%files -n libutf1
%defattr(-,root,root)
%{_libdir}/libutf.so.1
%{_libdir}/libutf.so.1.0.0

%files devel
%defattr(-,root,root)
%{_libdir}/libutf.so
%{_libdir}/libutf.a
%{_includedir}/*.h

%changelog
* Sun Jan 29 2023 Cyril Hrubis <metan@ucw.cz>

  Initial version.
openSUSE Build Service is sponsored by