2007-01-09 17:52:21 +01:00
|
|
|
#
|
2010-04-25 18:39:56 +02:00
|
|
|
# spec file for package m17n-lib (Version 1.6.0)
|
2007-01-09 17:52:21 +01:00
|
|
|
#
|
2010-04-25 18:39:56 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-09 17:52:21 +01:00
|
|
|
#
|
2009-01-14 01:49:46 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-09 17:52:21 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-02-28 18:20:34 +01:00
|
|
|
|
2007-01-09 17:52:21 +01:00
|
|
|
|
|
|
|
Name: m17n-lib
|
2010-05-18 20:44:01 +02:00
|
|
|
BuildRequires: freetype2-devel fribidi-devel gd-devel ispell ispell-british libotf-devel libxml2 m17n-db pkgconfig wordcut-devel xorg-x11-devel
|
2007-01-09 17:52:21 +01:00
|
|
|
%define appdefdir /usr/share/X11
|
2010-04-25 18:39:56 +02:00
|
|
|
Version: 1.6.0
|
2010-05-18 20:01:01 +02:00
|
|
|
Release: 1
|
2010-04-25 18:39:56 +02:00
|
|
|
License: GPLv2+ ; LGPLv2.1+ ; MIT
|
2007-01-09 17:52:21 +01:00
|
|
|
Group: System/I18n/Japanese
|
2008-02-28 18:20:34 +01:00
|
|
|
AutoReqProv: on
|
2007-01-09 17:52:21 +01:00
|
|
|
Requires: m17n-db
|
2008-02-28 18:20:34 +01:00
|
|
|
Url: http://www.m17n.org/m17n-lib/
|
2007-01-09 17:52:21 +01:00
|
|
|
# CVS:
|
|
|
|
# cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/m17n login
|
|
|
|
# cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/m17n co m17n-lib
|
|
|
|
# cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/m17n co m17n-db
|
2009-01-14 01:49:46 +01:00
|
|
|
Source0: http://www.m17n.org/m17n-lib/download/m17n-lib-%{version}.tar.bz2
|
2008-06-25 21:20:50 +02:00
|
|
|
Source1: m17n-lib-rpmlintrc
|
2007-01-09 17:52:21 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Summary: Multilingual Text Processing Library for the C Language
|
|
|
|
|
|
|
|
%description
|
|
|
|
A multilingual text processing library for the C language.
|
|
|
|
|
|
|
|
%package devel
|
2010-04-25 18:39:56 +02:00
|
|
|
License: GPLv2+ ; LGPLv2.1+ ; MIT
|
2008-06-25 21:20:50 +02:00
|
|
|
Summary: Multilingual text processing library for the C language
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version} glibc-devel xorg-x11-libX11-devel
|
2007-01-09 17:52:21 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
A multilingual text processing library for the C language
|
|
|
|
|
|
|
|
%prep
|
2010-04-25 18:39:56 +02:00
|
|
|
%setup -q
|
2008-02-28 18:20:34 +01:00
|
|
|
#find . -name CVS -type d | xargs rm -rf
|
2007-01-09 17:52:21 +01:00
|
|
|
|
|
|
|
%build
|
2010-04-25 18:39:56 +02:00
|
|
|
export SUSE_ASNEEDED=0
|
2008-06-25 21:20:50 +02:00
|
|
|
%configure --disable-static --with-pic
|
|
|
|
%{__make}
|
|
|
|
|
|
|
|
%check
|
|
|
|
export MALLOC_CHECK_=2
|
|
|
|
%{__make} check
|
|
|
|
unset MALLOC_CHECK_
|
2007-01-09 17:52:21 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=${RPM_BUILD_ROOT} install
|
|
|
|
# Japanese app-defaults:
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{appdefdir}/{ja,ja_JP,ja_JP.eucJP,ja_JP.SJIS,ja_JP.UTF-8}/app-defaults
|
|
|
|
iconv -f EUC-JP -t EUC-JP < example/M17NEdit.ja \
|
|
|
|
> $RPM_BUILD_ROOT%{appdefdir}/ja/app-defaults/M17NEdit
|
|
|
|
iconv -f EUC-JP -t EUC-JP < example/M17NEdit.ja \
|
|
|
|
> $RPM_BUILD_ROOT%{appdefdir}/ja_JP/app-defaults/M17NEdit
|
|
|
|
iconv -f EUC-JP -t EUC-JP < example/M17NEdit.ja \
|
|
|
|
> $RPM_BUILD_ROOT%{appdefdir}/ja_JP.eucJP/app-defaults/M17NEdit
|
|
|
|
iconv -f EUC-JP -t SJIS < example/M17NEdit.ja \
|
|
|
|
> $RPM_BUILD_ROOT%{appdefdir}/ja_JP.SJIS/app-defaults/M17NEdit
|
|
|
|
iconv -f EUC-JP -t UTF-8 < example/M17NEdit.ja \
|
|
|
|
> $RPM_BUILD_ROOT%{appdefdir}/ja_JP.UTF-8/app-defaults/M17NEdit
|
2010-04-25 18:39:56 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/m17n/*/*.la
|
2008-06-25 21:20:50 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2007-01-09 17:52:21 +01:00
|
|
|
|
|
|
|
%clean
|
2008-02-28 18:20:34 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-05-24 02:10:44 +02:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-09 17:52:21 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS COPYING NEWS README ChangeLog
|
2008-06-25 21:20:50 +02:00
|
|
|
%{_libdir}/lib*.so.*
|
2010-04-25 18:39:56 +02:00
|
|
|
%{_libdir}/m17n
|
2007-01-09 17:52:21 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%dir %{appdefdir}/??
|
|
|
|
%dir %{appdefdir}/??_*
|
|
|
|
%dir %{appdefdir}/*/app-defaults
|
|
|
|
%config %{appdefdir}/*/app-defaults/M17NEdit
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2010-04-25 18:39:56 +02:00
|
|
|
%{_includedir}/*
|
2008-06-25 21:20:50 +02:00
|
|
|
%{_libdir}/lib*.so
|
2007-01-09 17:52:21 +01:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
2007-05-24 02:10:44 +02:00
|
|
|
%changelog
|