101 lines
2.7 KiB
RPMSpec
101 lines
2.7 KiB
RPMSpec
|
%define pkgver %(echo %version | cut -d_ -f1)
|
||
|
%define filecode %(echo %version | cut -d_ -f2)
|
||
|
Name: anthy
|
||
|
Version: 9100h_37536
|
||
|
Release: 1mamba
|
||
|
Summary: A system for Japanese input method
|
||
|
Group: System/Internationalization
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://osdn.net/projects/anthy/releases/
|
||
|
Source: http://dl.sourceforge.jp/anthy/%{filecode}/anthy-%{pkgver}.tar.gz
|
||
|
#Source: https://acc.dl.osdn.jp/anthy/1248/anthy-%{version}.tar.gz
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: ldconfig
|
||
|
## AUTOBUILDREQ-END
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Anthy is a system for Japanese input method.
|
||
|
It converts Hiragana text to Kana Kanji mixed text.
|
||
|
|
||
|
%package -n lib%{name}
|
||
|
Group: System/Libraries
|
||
|
Summary: Shared libraries for %{name}
|
||
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
|
||
|
%description -n lib%{name}
|
||
|
This package contains shared libraries for %{name}.
|
||
|
|
||
|
%package -n lib%{name}-devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Development files for %{name}
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
Requires: pkg-config
|
||
|
|
||
|
%description -n lib%{name}-devel
|
||
|
This package contains libraries and header files for developing applications that use %{name}.
|
||
|
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n anthy-%{pkgver}
|
||
|
|
||
|
%build
|
||
|
%configure
|
||
|
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n lib%{name} -p /sbin/ldconfig
|
||
|
%postun -n lib%{name} -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%config(noreplace) %{_sysconfdir}/anthy-conf
|
||
|
%{_bindir}/anthy-agent
|
||
|
%{_bindir}/anthy-dic-tool
|
||
|
%{_bindir}/anthy-morphological-analyzer
|
||
|
%dir %{_datadir}/anthy
|
||
|
%{_datadir}/anthy/*
|
||
|
%dir %{_datadir}/emacs/site-lisp/anthy
|
||
|
%{_datadir}/emacs/site-lisp/anthy/*
|
||
|
%doc AUTHORS COPYING
|
||
|
|
||
|
%files -n lib%{name}
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libanthy.so.*
|
||
|
%{_libdir}/libanthydic.so.*
|
||
|
%{_libdir}/libanthyinput.so.*
|
||
|
%{_libdir}/pkgconfig/anthy.pc
|
||
|
|
||
|
%files -n lib%{name}-devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_includedir}/anthy
|
||
|
%{_includedir}/anthy/*.h
|
||
|
%{_libdir}/libanthy.a
|
||
|
%{_libdir}/libanthy.la
|
||
|
%{_libdir}/libanthy.so
|
||
|
%{_libdir}/libanthydic.a
|
||
|
%{_libdir}/libanthydic.la
|
||
|
%{_libdir}/libanthydic.so
|
||
|
%{_libdir}/libanthyinput.a
|
||
|
%{_libdir}/libanthyinput.la
|
||
|
%{_libdir}/libanthyinput.so
|
||
|
%doc ChangeLog NEWS README
|
||
|
|
||
|
%changelog
|
||
|
* Thu Nov 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 9100h_37536-1mamba
|
||
|
- package created using the webbuild interface
|