89 lines
2.4 KiB
RPMSpec
89 lines
2.4 KiB
RPMSpec
Name: uchardet
|
|
Version: 0.0.8
|
|
Release: 1mamba
|
|
Summary: An encoding detectory tool and library
|
|
Group: Development/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
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: libgcc
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: cmake
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%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
|
|
%dir %{_libdir}/cmake/uchardet
|
|
%{_libdir}/cmake/uchardet/uchardet*.cmake
|
|
%doc README.md
|
|
|
|
%changelog
|
|
* Tue Dec 13 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.0.8-1mamba
|
|
- update to 0.0.8
|
|
|
|
* Fri Apr 24 2020 Automatic Build System <autodist@mambasoft.it> 0.0.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Apr 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.0.6-1mamba
|
|
- package created using the webbuild interface
|