un-fonts-ttf/un-fonts-ttf.spec

203 lines
8.3 KiB
RPMSpec
Raw Normal View History

%define fontconfdir %{_sysconfdir}/fonts/conf.d/
Name: un-fonts-ttf
Version: 1.0.2
Release: 2mamba
Summary: Un-fonts Korean TrueType Fonts
Group: System/Fonts
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://kldp.net/projects/unfonts/
Source: http://kldp.net/frs/download.php/4695/un-fonts-core-%{version}-080608.tar.gz
Source1: http://kldp.net/frs/download.php/4696/un-fonts-extra-%{version}-080608.tar.gz
Source2: un-extra-fonts-bom-fontconfig.conf
Source3: un-extra-fonts-penheulim-fontconfig.conf
Source4: un-extra-fonts-jamobatang-fontconfig.conf
Source5: un-extra-fonts-pilgia-fontconfig.conf
Source6: un-extra-fonts-jamodotum-fontconfig.conf
Source7: un-extra-fonts-shinmun-fontconfig.conf
Source8: un-extra-fonts-jamonovel-fontconfig.conf
Source9: un-extra-fonts-taza-fontconfig.conf
Source10: un-extra-fonts-jamosora-fontconfig.conf
Source11: un-extra-fonts-vada-fontconfig.conf
Source12: un-extra-fonts-pen-fontconfig.conf
Source13: un-extra-fonts-yetgul-fontconfig.conf
Source21: un-core-fonts-batangbold-fontconfig.conf
Source22: un-core-fonts-dotum-fontconfig.conf
Source23: un-core-fonts-batang-fontconfig.conf
Source24: un-core-fonts-graphicbold-fontconfig.conf
Source25: un-core-fonts-dinarubold-fontconfig.conf
Source26: un-core-fonts-graphic-fontconfig.conf
Source27: un-core-fonts-dinaru-fontconfig.conf
Source28: un-core-fonts-gungseo-fontconfig.conf
Source29: un-core-fonts-dinarulight-fontconfig.conf
Source30: un-core-fonts-pilgibold-fontconfig.conf
Source31: un-core-fonts-dotumbold-fontconfig.conf
Source32: un-core-fonts-pilgi-fontconfig.conf
License: BSD
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Un-fonts Korean TrueType Fonts.
%prep
%setup -q -c -a1
%package -n un-core-fonts-ttf
Summary: Korean TrueType Core Fonts
Group: System/Fonts
%description -n un-core-fonts-ttf
Korean TrueType Core Fonts.
%package -n un-extra-fonts-ttf
Summary: Korean TrueType Extra Fonts
Group: System/Fonts
%description -n un-extra-fonts-ttf
Korean TrueType Extra Fonts.
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}%{_datadir}/fonts/truetype/un-fonts
cp un-fonts/*.ttf %{buildroot}%{_datadir}/fonts/truetype/un-fonts
install -dm 0755 -d %{buildroot}%{fontconfdir}
install -pm 0644 -p %{SOURCE2}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-bom.conf
install -pm 0644 -p %{SOURCE3}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-jamobatang.conf
install -pm 0644 -p %{SOURCE4}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-jamodotum.conf
install -pm 0644 -p %{SOURCE5}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-jamonovel.conf
install -pm 0644 -p %{SOURCE6}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-jamosora.conf
install -pm 0644 -p %{SOURCE7}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-pen.conf
install -pm 0644 -p %{SOURCE8}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-penheulim.conf
install -pm 0644 -p %{SOURCE9}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-pilgia.conf
install -pm 0644 -p %{SOURCE10}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-shinmun.conf
install -pm 0644 -p %{SOURCE11}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-taza.conf
install -pm 0644 -p %{SOURCE12}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-vada.conf
install -pm 0644 -p %{SOURCE13}\
%{buildroot}%{fontconfdir}66-un-extra-fonts-yetgul.conf
install -pm 0644 -p %{SOURCE21}\
%{buildroot}%{fontconfdir}65-un-core-fonts-batang.conf
install -pm 0644 -p %{SOURCE22}\
%{buildroot}%{fontconfdir}65-un-core-fonts-batangbold.conf
install -pm 0644 -p %{SOURCE23}\
%{buildroot}%{fontconfdir}65-un-core-fonts-dinaru.conf
install -pm 0644 -p %{SOURCE24}\
%{buildroot}%{fontconfdir}65-un-core-fonts-dinarubold.conf
install -pm 0644 -p %{SOURCE25}\
%{buildroot}%{fontconfdir}65-un-core-fonts-dinarulight.conf
install -pm 0644 -p %{SOURCE26}\
%{buildroot}%{fontconfdir}65-un-core-fonts-dotum.conf
install -pm 0644 -p %{SOURCE27}\
%{buildroot}%{fontconfdir}65-un-core-fonts-dotumbold.conf
install -pm 0644 -p %{SOURCE28}\
%{buildroot}%{fontconfdir}65-un-core-fonts-graphic.conf
install -pm 0644 -p %{SOURCE29}\
%{buildroot}%{fontconfdir}65-un-core-fonts-graphicbold.conf
install -pm 0644 -p %{SOURCE30}\
%{buildroot}%{fontconfdir}65-un-core-fonts-gungseo.conf
install -pm 0644 -p %{SOURCE31}\
%{buildroot}%{fontconfdir}65-un-core-fonts-pilgi.conf
install -pm 0644 -p %{SOURCE32}\
%{buildroot}%{fontconfdir}65-un-core-fonts-pilgibold.conf
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n un-core-fonts-ttf
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
exit 0
%postun -n un-core-fonts-ttf
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
exit 0
%post -n un-extra-fonts-ttf
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
exit 0
%postun -n un-extra-fonts-ttf
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
exit 0
%files -n un-core-fonts-ttf
%defattr(-,root,root)
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-batang.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-batangbold.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-dinaru.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-dinarubold.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-dinarulight.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-dotum.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-dotumbold.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-graphic.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-graphicbold.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-gungseo.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-pilgi.conf
%{_sysconfdir}/fonts/conf.d/65-un-core-fonts-pilgibold.conf
%dir %{_datadir}/fonts/truetype/un-fonts
%{_datadir}/fonts/truetype/un-fonts/UnBatang.ttf
%{_datadir}/fonts/truetype/un-fonts/UnBatangBold.ttf
%{_datadir}/fonts/truetype/un-fonts/UnDinaru.ttf
%{_datadir}/fonts/truetype/un-fonts/UnDinaruBold.ttf
%{_datadir}/fonts/truetype/un-fonts/UnDinaruLight.ttf
%{_datadir}/fonts/truetype/un-fonts/UnDotum.ttf
%{_datadir}/fonts/truetype/un-fonts/UnDotumBold.ttf
%{_datadir}/fonts/truetype/un-fonts/UnGraphic.ttf
%{_datadir}/fonts/truetype/un-fonts/UnGraphicBold.ttf
%{_datadir}/fonts/truetype/un-fonts/UnGungseo.ttf
%{_datadir}/fonts/truetype/un-fonts/UnPilgi.ttf
%{_datadir}/fonts/truetype/un-fonts/UnPilgiBold.ttf
#%{_datadir}/fonts/truetype/un-fonts/*.ttf
%doc un-fonts/COPYING un-fonts/README
%files -n un-extra-fonts-ttf
%defattr(-,root,root)
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-bom.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-jamobatang.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-jamodotum.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-jamonovel.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-jamosora.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-pen.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-penheulim.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-pilgia.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-shinmun.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-taza.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-vada.conf
%{_sysconfdir}/fonts/conf.d/66-un-extra-fonts-yetgul.conf
%dir %{_datadir}/fonts/truetype/un-fonts
%{_datadir}/fonts/truetype/un-fonts/UnBom.ttf
%{_datadir}/fonts/truetype/un-fonts/UnJamoBatang.ttf
%{_datadir}/fonts/truetype/un-fonts/UnJamoDotum.ttf
%{_datadir}/fonts/truetype/un-fonts/UnJamoNovel.ttf
%{_datadir}/fonts/truetype/un-fonts/UnJamoSora.ttf
%{_datadir}/fonts/truetype/un-fonts/UnPen.ttf
%{_datadir}/fonts/truetype/un-fonts/UnPenheulim.ttf
%{_datadir}/fonts/truetype/un-fonts/UnPilgia.ttf
%{_datadir}/fonts/truetype/un-fonts/UnShinmun.ttf
%{_datadir}/fonts/truetype/un-fonts/UnTaza.ttf
%{_datadir}/fonts/truetype/un-fonts/UnVada.ttf
%{_datadir}/fonts/truetype/un-fonts/UnYetgul.ttf
%doc un-fonts/COPYING un-fonts/README
%changelog
* Mon Jul 15 2013 Automatic Build System <autodist@mambasoft.it> 1.0.2-2mamba
- automatic rebuild by autodist
* Mon Jun 22 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1-1mamba
- package created by autospec