initial import
This commit is contained in:
parent
b40abad3c4
commit
c8becb4099
3 changed files with 110 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
wkf-1.3.11.tar.bz2
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
a48f7744d1fbbcdad45ce877cfc6e0f3 wkf-1.3.11.tar.bz2
|
||||
108
wkf.spec
Normal file
108
wkf.spec
Normal file
|
|
@ -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 <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.3.11-1
|
||||
- Initial packaging
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue