From c8becb409901dd3fa97edde665efd742c5564e2a Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Fri, 7 Dec 2007 18:31:45 +0000 Subject: [PATCH] initial import --- .cvsignore | 1 + sources | 1 + wkf.spec | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 wkf.spec diff --git a/.cvsignore b/.cvsignore index e69de29..aa1a46e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +wkf-1.3.11.tar.bz2 diff --git a/sources b/sources index e69de29..56ba14b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a48f7744d1fbbcdad45ce877cfc6e0f3 wkf-1.3.11.tar.bz2 diff --git a/wkf.spec b/wkf.spec new file mode 100644 index 0000000..894b8e9 --- /dev/null +++ b/wkf.spec @@ -0,0 +1,108 @@ +Name: wkf +Version: 1.3.11 +Release: 1%{?dist} +Summary: Japanese Kanji code converting filter + +Group: System Environment/Libraries +License: BSD +URL: http://www.mysticwall.com/software/wkf/ +Source0: http://www.mysticwall.com/download/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: groff +Requires: %{name}-libs = %{version}-%{release} + +%description +WKF is a Japanese Kanji code converting filter. + + +%package libs +Summary: Libraries for WKF filter +Group: System Environment/Libraries + +%description libs +WKF is a Japanese Kanji code converting filter. +This package contains shared libraries for WKF. + + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q + +for f in \ + API \ + HISTORY \ + JAPANESE \ + README \ + wkf.1 + do + iconv -f EUC-JP -t UTF-8 $f > $f.tmp && \ + ( touch -r $f $f.tmp ; %{__mv} -f $f.tmp $f ) || \ + %{__rm} -f $f.tmp +done + +%build +%configure --disable-static +%{__make} %{?_smp_mflags} \ + CC="%{__cc} %{optflags}" + + +%install +%{__rm} -rf $RPM_BUILD_ROOT + +# Use %%makeinstall +%makeinstall \ + INSTALL="%{__install} -p" \ + INSTALL_PROGRAM="%{__install} -p" \ + INSTALL_DATA="%{__install} -p -m 0644" \ + RM="%{__rm} -f" + +%{__chmod} 0755 $RPM_BUILD_ROOT%{_libdir}/libwkf*.so.* +find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' \ + -exec %{__rm} -f {} ';' + +%clean +%{__rm} -rf $RPM_BUILD_ROOT + +%check +%{__make} test + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc README + +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* + +%files libs +%defattr(-,root,root,-) +%doc HISTORY +%doc TODO + +%{_libdir}/libwkf*.so.* + +%files devel +%defattr(-,root,root,-) +%doc API + +%{_includedir}/wkf.h +%{_libdir}/libwkf*.so + + +%changelog +* Wed Dec 5 2007 Mamoru Tasaka - 1.3.11-1 +- Initial packaging +