diff --git a/.cvsignore b/.cvsignore index e69de29..25b64b8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +gluk_-_Sportrop.zip diff --git a/import.log b/import.log new file mode 100644 index 0000000..c66c322 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +sportrop-fonts-0_9-4_fc9:HEAD:sportrop-fonts-0.9-4.fc9.src.rpm:1217295341 diff --git a/sources b/sources index e69de29..949f58c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +315aaea18c37aa085a4ab2856d5d991d gluk_-_Sportrop.zip diff --git a/sportrop-fonts-fontconfig.conf b/sportrop-fonts-fontconfig.conf new file mode 100644 index 0000000..e1c23e1 --- /dev/null +++ b/sportrop-fonts-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + Sportrop + + fantasy + + + + fantasy + + Sportrop + + + diff --git a/sportrop-fonts.spec b/sportrop-fonts.spec new file mode 100644 index 0000000..fa41710 --- /dev/null +++ b/sportrop-fonts.spec @@ -0,0 +1,80 @@ +%define fontname sportrop +%define fontdir %{_datadir}/fonts/%{fontname} +%define fontconfdir %{_sysconfdir}/fonts/conf.d + +Name: %{fontname}-fonts +Version: 0.9 +Release: 4%{?dist} +Summary: A multiline decorative font + +Group: User Interface/X +License: OFL +URL: http://openfontlibrary.org/media/files/gluk/287 +Source0: http://openfontlibrary.org/people/gluk/gluk_-_Sportrop.zip +Source1: %{name}-fontconfig.conf +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +%description +A neat multiline font + +%prep +%setup -c +chmod 0644 *.txt +for txt in *.txt ; do + fold -s $txt > $txt.new + sed -i 's/\r//' $txt.new + touch -r $txt $txt.new + mv $txt.new $txt +done + + +%build + + +%install +rm -rf $RPM_BUILD_ROOT + +install -dm 755 $RPM_BUILD_ROOT%{fontdir} +install -pm 644 Sportrop.ttf $RPM_BUILD_ROOT%{fontdir} + +install -dm 755 $RPM_BUILD_ROOT%{fontconfdir} +install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{fontconfdir}/63-%{fontname}.conf + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +if [ -x %{_bindir}/fc-cache ] ; then + %{_bindir}/fc-cache -f %{fontdir} || : +fi + +%postun +if [ $1 -eq 0 -a -x %{_bindir}/fc-cache ] ; then + %{_bindir}/fc-cache -f %{fontdir} || : +fi + +%files +%defattr(644,root,root,755) +%doc OFL_FAQ.txt OFL_License.txt tabl_c.jpg +%config(noreplace) %{fontconfdir}/63-%{fontname}.conf +%dir %{fontdir}/ +%{fontdir}/*.ttf + + +%changelog +* Sun Jul 27 2008 Jon Stanley - 0.9-4 +- Revert package split, package only TTF +- Use %%setup macro + +* Wed Jul 23 2008 Jon Stanley - 0.9-3 +- Split OTF and TTF into subpackages + +* Wed Jul 23 2008 Jon Stanley - 0.9-2 +- Fixed rpmlint warning in license and license FAQ + +* Tue Jul 22 2008 Jon Stanley - 0.9-1 +- Initial package