package created using the webbuild interface [release 2.6.0-1mamba;Wed Dec 09 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 18:52:41 +01:00
parent add79ea0e8
commit ccc9d74509
2 changed files with 76 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# utf8proc # utf8proc
utf8proc is a small, clean C library that provides Unicode normalization, case-folding, and other operations for data in the UTF-8 encoding.

74
utf8proc.spec Normal file
View File

@ -0,0 +1,74 @@
Name: utf8proc
Version: 2.6.0
Release: 1mamba
Summary: A C library that provides Unicode normalization, case-folding, and other operations for data in the UTF-8 encoding
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/JuliaStrings/utf8proc
Source: https://github.com/JuliaStrings/utf8proc.git/v%{version}/utf8proc-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
utf8proc is a small, clean C library that provides Unicode normalization, case-folding, and other operations for data in the UTF-8 encoding.
%package -n lib%{name}
Group: System/Libraries
Summary: A C library that provides Unicode normalization, case-folding, and other operations for data in the UTF-8 encoding
%description -n lib%{name}
utf8proc is a small, clean C library that provides Unicode normalization, case-folding, and other operations for data in the UTF-8 encoding.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
sed -i "s|DESTINATION lib$|DESTINATION %{_lib}|" CMakeLists.txt
sed -i "s|DESTINATION lib)$|DESTINATION %{_lib})|" CMakeLists.txt
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libutf8proc.so.*
%doc LICENSE.md
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/utf8proc.h
%{_libdir}/libutf8proc.so
%doc README.md
%changelog
* Wed Dec 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.0-1mamba
- package created using the webbuild interface