diff --git a/README.md b/README.md index 3a613e4..8e2590e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # uchardet +The Uchardet package contains an encoding detectory library which takes a sequence of bytes in an unknown character encoding and attempts to determine the encoding of the text. + diff --git a/uchardet.spec b/uchardet.spec new file mode 100644 index 0000000..77ff699 --- /dev/null +++ b/uchardet.spec @@ -0,0 +1,82 @@ +Name: uchardet +Version: 0.0.6 +Release: 1mamba +Summary: An encoding detectory tool and library +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.freedesktop.org/wiki/Software/uchardet/ +Source: https://www.freedesktop.org/software/uchardet/releases/uchardet-%{version}.tar.xz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The Uchardet package contains an encoding detectory library which takes a sequence of bytes in an unknown character encoding and attempts to determine the encoding of the text. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +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} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%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 +%defattr(-,root,root) +%{_bindir}/uchardet +%{_mandir}/man1/uchardet.1* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libuchardet.so.* +%doc AUTHORS COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/uchardet +%{_includedir}/uchardet/uchardet.h +%{_libdir}/libuchardet.a +%{_libdir}/libuchardet.so +%{_libdir}/pkgconfig/uchardet.pc +%doc README.md + +%changelog +* Sat Apr 11 2020 Silvan Calarco 0.0.6-1mamba +- package created using the webbuild interface