Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 4fdf605a62611ef70bfc575a283d39db > files > 2

libchardet-1.0.6-1.mga9.src.rpm

%define _name     chardet

%define major     1
%define libname   %mklibname %{_name} %{major}
%define develname %mklibname %{_name} -d

Name:           libchardet
Version:        1.0.6
Release:        %mkrel 1
Summary:        Mozilla Universal Chardet library
License:        MPL
Group:          Development/C++
Url:            http://mirror.oops.org/pub/oops/libchardet
Source:         https://github.com/Joungkyun/libchardet/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  gcc-c++

Requires:       %{libname} = %{version}

%description
Mozilla's Universal Charset Detector C/C++ API.

%package -n     %{libname}
Summary:        Mozilla Universal Chardet library
Group:          System/Libraries

%description -n %{libname}
Mozilla's Universal Charset Detector C/C++ API.

%package -n     %{develname}
Summary:        Development files of libchardet
Group:          Development/C++
Requires:       %{libname} = %{version}-%{release}
Provides:       %{_name}-devel = %{version}-%{release}

%description -n %{develname}
The libchardet development package includes the header files,
libraries, development tools necessary for compiling and linking
application which will use libchardet.

%prep
%setup -q

sed -i 's/^\(AM_MAINTAINER\)/m4_ifdef([AM_PROG_AR], [AM_PROG_AR])\n\1/' configure.ac
sed -i '/^dist_doc/d' Makefile.am

%build
%configure --disable-static
%make_build

%install
%make_install

# we don't want these
find %{buildroot} -name '*.la' -delete

%files
%doc Changelog LICENSE README.md
%{_bindir}/%{_name}-config

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}{,.*}

%files -n %{develname}
%{_includedir}/%{_name}/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{_name}.pc
%dir %{_mandir}/ko/
%dir %{_mandir}/ko/man3/
%{_mandir}/*/man?/detect*.*
%{_mandir}/man?/detect*.*


%changelog
* Mon Nov 28 2022 daviddavid <daviddavid> 1.0.6-1.mga9
+ Revision: 1912282
- new version: 1.0.6

* Tue Mar 15 2022 umeabot <umeabot> 1.0.5-4.mga9
+ Revision: 1791988
- Mageia 9 Mass Rebuild

* Thu Feb 13 2020 umeabot <umeabot> 1.0.5-3.mga8
+ Revision: 1513944
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%configure2_5x

* Sun Sep 23 2018 umeabot <umeabot> 1.0.5-2.mga7
+ Revision: 1298785
- Mageia 7 Mass Rebuild

* Sun Jan 01 2017 daviddavid <daviddavid> 1.0.5-1.mga6
+ Revision: 1079233
- new version: 1.0.5
- update Source URL
+ umeabot <umeabot>
- Mageia 6 Mass Rebuild

* Sun Nov 22 2015 daviddavid <daviddavid> 1.0.4-1.mga6
+ Revision: 904856
- imported package libchardet