46 lines
934 B
RPMSpec
46 lines
934 B
RPMSpec
|
Name: hyphen-pa
|
||
|
Summary: Punjabi hyphenation rules
|
||
|
%define upstreamid 20081213
|
||
|
Version: 0.%{upstreamid}
|
||
|
Release: 1%{?dist}
|
||
|
Source: http://git.savannah.gnu.org/cgit/smc.git/plain/hyphenation/hyph_pa_IN.dic
|
||
|
Group: Applications/Text
|
||
|
URL: http://wiki.smc.org.in
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
License: LGPLv3+
|
||
|
BuildArch: noarch
|
||
|
|
||
|
Requires: hyphen
|
||
|
|
||
|
%description
|
||
|
Punjabi hyphenation rules.
|
||
|
|
||
|
%prep
|
||
|
%setup -T -q -c
|
||
|
cp -p %{SOURCE0} .
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
||
|
cp -p *.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
||
|
pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
|
||
|
pa_IN_aliases="pa_PK"
|
||
|
for lang in $pa_IN_aliases; do
|
||
|
ln -s hyph_pa_IN.dic hyph_$lang.dic
|
||
|
done
|
||
|
popd
|
||
|
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%{_datadir}/hyphen/*
|
||
|
|
||
|
%changelog
|
||
|
* Mon Apr 06 2009 Caolan McNamara <caolanm@redhat.com> - 0.20081213-1
|
||
|
- initial version
|