| 1 | %define ver 1.5.5 |
|---|
| 2 | %define rel 3 |
|---|
| 3 | |
|---|
| 4 | Summary: a multilingual text processing library for the C language |
|---|
| 5 | Name: m17n-lib |
|---|
| 6 | Version: %{ver} |
|---|
| 7 | Release: %{rel}%{?_dist_release} |
|---|
| 8 | Source0: %{name}-%{version}.tar.gz |
|---|
| 9 | License: LGPLv2.1+ |
|---|
| 10 | Group: System Environment/Libraries |
|---|
| 11 | URL: http://www.m17n.org/m17n-lib-ja/ |
|---|
| 12 | |
|---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 14 | BuildRequires: gd-devel fontconfig-devel |
|---|
| 15 | BuildRequires: libxml2-devel |
|---|
| 16 | BuildConflicts: anthy-devel |
|---|
| 17 | |
|---|
| 18 | Vendor: Project Vine |
|---|
| 19 | Distribution: Vine Linux |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | %description |
|---|
| 23 | The m17n library is a multilingual text processing library for the C |
|---|
| 24 | language. |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | %package devel |
|---|
| 28 | Summary: Development files for the %{name} package |
|---|
| 29 | Group: Development/Libraries |
|---|
| 30 | Requires: %{name} = %{version}-%{release} |
|---|
| 31 | Requires: pkgconfig |
|---|
| 32 | |
|---|
| 33 | %description devel |
|---|
| 34 | Development files for the %{name} package. |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | %prep |
|---|
| 38 | %setup -q |
|---|
| 39 | |
|---|
| 40 | %build |
|---|
| 41 | %configure --with-fontconfig --with-gd |
|---|
| 42 | #%{__make} %{?_smp_mflags} |
|---|
| 43 | ## don't use smp_mflags |
|---|
| 44 | %{__make} |
|---|
| 45 | |
|---|
| 46 | %install |
|---|
| 47 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 48 | %{makeinstall} |
|---|
| 49 | |
|---|
| 50 | %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/*.a |
|---|
| 51 | %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/*.la |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | %clean |
|---|
| 55 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 56 | |
|---|
| 57 | |
|---|
| 58 | %check |
|---|
| 59 | make check |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | %post -p /sbin/ldconfig |
|---|
| 63 | |
|---|
| 64 | |
|---|
| 65 | %postun |
|---|
| 66 | if [ "$1" = "0" ] ; then |
|---|
| 67 | /sbin/ldconfig |
|---|
| 68 | fi |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | %files |
|---|
| 72 | %defattr(-,root,root) |
|---|
| 73 | %doc COPYING ChangeLog NEWS README TODO |
|---|
| 74 | %{_bindir}/m17n* |
|---|
| 75 | %{_libdir}/lib*.so.0.* |
|---|
| 76 | |
|---|
| 77 | %files devel |
|---|
| 78 | %defattr(-,root,root) |
|---|
| 79 | %doc example |
|---|
| 80 | %{_includedir}/*.h |
|---|
| 81 | %{_libdir}/lib*.so |
|---|
| 82 | %{_libdir}/lib*.so.0 |
|---|
| 83 | %{_libdir}/pkgconfig/m17n*.pc |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | %changelog |
|---|
| 87 | * Sun May 8 2011 IWAI, Masaharu <iwai@alib.jp> 1.5.5-3 |
|---|
| 88 | - add BuildRequires: libxml2-devel |
|---|
| 89 | - add BuildConflicts: anthy-devel |
|---|
| 90 | |
|---|
| 91 | * Fri Oct 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.5.5-2 |
|---|
| 92 | - rebuilt with rpm-4.8.1 for pkg-config |
|---|
| 93 | |
|---|
| 94 | * Sun Feb 7 2010 IWAI, Masaharu <iwai@alib.jp> 1.5.5-1 |
|---|
| 95 | - new upstream release |
|---|
| 96 | |
|---|
| 97 | * Tue Apr 7 2009 Shu KONNO <owa@bg.wakwak.com> 1.5.4-2 |
|---|
| 98 | - dropt %%{?_smp_mflags} |
|---|
| 99 | |
|---|
| 100 | * Wed Apr 1 2009 IWAI, Masaharu <iwai@alib.jp> 1.5.4-1 |
|---|
| 101 | - initial release |
|---|
| 102 | |
|---|