From ccc9d745090d99d751ee2ea39b22135785daf987 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:52:41 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.6.0-1mamba;Wed Dec 09 2020] --- README.md | 2 ++ utf8proc.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 utf8proc.spec diff --git a/README.md b/README.md index 9cd003d..0470946 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # utf8proc +utf8proc is a small, clean C library that provides Unicode normalization, case-folding, and other operations for data in the UTF-8 encoding. + diff --git a/utf8proc.spec b/utf8proc.spec new file mode 100644 index 0000000..c76dc19 --- /dev/null +++ b/utf8proc.spec @@ -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 +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 2.6.0-1mamba +- package created using the webbuild interface