Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 4ff4ce161041daa8cd20a830f4c8a435 > files > 6

pyzy-0.1.0-15.mga9.src.rpm

%define api 1.0
%define major 0
%define libname %mklibname %name %api %major
%define develname %mklibname -d %name

Name: pyzy
Version: 0.1.0
Release: %mkrel 15
Summary:The Chinese PinYin and Bopomofo conversion library
License: LGPLv2+
Group: System/Internationalization
URL: http://code.google.com/p/pyzy
Source0: http://pyzy.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: http://pyzy.googlecode.com/files/pyzy-database-1.0.0.tar.bz2
Patch0:  pyzy-0.1.0-fixes-compile.patch
Patch1:  pyzy-0.1.0-port-to-python3.patch
# From  https://github.com/pyzy/pyzy/compare/master...hillwoodroc:master.patch
Patch2:  pyzy-0.1.0-opencc.patch
BuildRequires: pkgconfig(glib-2.0) >= 2.24.0
BuildRequires: pkgconfig(opencc)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(uuid)
BuildRequires: sqlite3-tools
BuildRequires: python3
Requires: pyzy-db = %{version}-%{release}

%description
The Chinese Pinyin and Bopomofo conversion library.

%package -n %{libname}
Summary:	Libraries for pyzy
Group:		System/Libraries
Requires:	%{name} = %{version}

%description -n %{libname}
The Chinese Pinyin and Bopomofo conversion library.

%package -n %{develname}
Summary:    Development tools for pyzy
Group:      Development/C
Requires:   %{libname} = %{version}-%{release}

%description -n %{develname}
The pyzy-devel package contains the header files for pyzy.

%package    db-open-phrase
Summary:    The open phrase database for pyzy
Group:      System/Internationalization
BuildArch:  noarch
Provides:   pyzy-db

%description db-open-phrase
The phrase database for pyzy from open-phrase project.

%package    db-android
Summary:    The android phrase database for pyzy
Group:      System/Internationalization
BuildArch:  noarch
Provides:   pyzy-db

%description db-android
The phrase database for pyzy from android project.

%prep
%setup -q
cp -p %{SOURCE1} data/db/open-phrase
%autopatch -p1

%build
%configure --disable-static \
           --enable-db-open-phrase \
           --enable-opencc
%make_build

%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la

%files
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/db/*

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/lib*%{api}.so.%{major}
%{_libdir}/lib*%{api}.so.%{major}.*

%files -n %{develname}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

%files db-open-phrase
%{_datadir}/pyzy/db/open-phrase.db

%files db-android
%{_datadir}/pyzy/db/android.db


%changelog
* Wed Mar 30 2022 umeabot <umeabot> 0.1.0-15.mga9
+ Revision: 1833783
- Mageia 9 Mass Rebuild

* Sat Feb 05 2022 joequant <joequant> 0.1.0-14.mga9
+ Revision: 1771548
- update to new opencc

* Tue Feb 02 2021 daviddavid <daviddavid> 0.1.0-13.mga8
+ Revision: 1674417
- port to python3

* Thu Aug 20 2020 joequant <joequant> 0.1.0-12.mga8
+ Revision: 1616778
- add python2 buildrequires
- use python2 patch
+ umeabot <umeabot>
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%configure2_5x

* Sun Sep 23 2018 umeabot <umeabot> 0.1.0-10.mga7
+ Revision: 1300629
- Mageia 7 Mass Rebuild
+ kekepower <kekepower>
- Use new make macros

* Fri Feb 12 2016 umeabot <umeabot> 0.1.0-9.mga6
+ Revision: 958699
- Mageia 6 Mass Rebuild

* Sun Aug 30 2015 cjw <cjw> 0.1.0-8.mga6
+ Revision: 871192
- rebuild with gcc 5

* Thu Jul 02 2015 joequant <joequant> 0.1.0-7.mga6
+ Revision: 849568
- compile fixes
- rebuild with new opencc

* Wed Oct 15 2014 umeabot <umeabot> 0.1.0-6.mga5
+ Revision: 746257
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.1.0-5.mga5
+ Revision: 688456
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 0.1.0-4.mga4
+ Revision: 517807
- Mageia 4 Mass Rebuild

* Sun Jan 13 2013 umeabot <umeabot> 0.1.0-3.mga3
+ Revision: 379773
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Oct 15 2012 fwang <fwang> 0.1.0-2.mga3
+ Revision: 306002
- use configure2_5x

* Mon Oct 15 2012 fwang <fwang> 0.1.0-1.mga3
+ Revision: 305997
- update rpm group
- imported package pyzy