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