
# Basic Information
Name:		libunistring
Summary:	library for manipulating Unicode strings
Summary(ja):	Unicode 文字列を処理するライブラリ
Version:	0.9.4
Release:	1%{?_dist_release}
License:	GPLv3+
Group:		System Environment/Libraries
URL:		http://www.gnu.org/software/libunistring/
Source0:	http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

Vendor:		Project Vine
Distribution:	Vine Linux
Packager:	yasumichi

# Dependency
BuildRequires:	texinfo
BuildRequires:	texlive
BuildRequires:	perl

%description
Text files are nowadays usually encoded in Unicode, and may consist of very
different scripts – from Latin letters to Chinese Hanzi –, with many kinds
of special characters – accents, right-to-left writing marks, hyphens,
Roman numbers, and much more. But the POSIX platform APIs for text do not
contain adequate functions for dealing with particular properties of many
Unicode characters. In fact, the POSIX APIs for text have several
assumptions at their base which don't hold for Unicode text.

This library provides functions for manipulating Unicode strings and for
manipulating C strings according to the Unicode standard.

#%%description -l ja
#%ここに日本語で詳細を記述してください。

%package devel
Summary:	Development files and documentation for libunistring
Summary(ja):	libunistring の開発用ファイルとドキュメント
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description devel
Development files and documentation for libunistring

%prep
%setup -q

%build
%configure --disable-static
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf ${RPM_BUILD_ROOT}
%{__make} install DESTDIR=${RPM_BUILD_ROOT}

#{__rm} ${RPM_BUILD_ROOT}%{_libdir}/libunistring.a
%{__rm} ${RPM_BUILD_ROOT}%{_libdir}/libunistring.la
%{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir

%clean
%{__rm} -rf ${RPM_BUILD_ROOT}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog HACKING NEWS README THANKS
%{_libdir}/*.so.*

%files devel
%{_includedir}/uni*.h
%{_includedir}/unistring
%{_libdir}/libunistring.so
%{_docdir}/libunistring
%{_infodir}/libunistring.info.gz

%changelog
* Mon Oct  6 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.4-1
- updated to 0.9.4
- moved libunistring to System Environment/Libraries
- added %%post and %%postun

* Sat Oct 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2
- add Requires: %{name} (devel package)

* Wed Aug 15 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.9.3-1
- initial build for Vine Linux
