fedora-rpmdevtools spectemplate-fonts.spec, NONE, 1.1 rpmdev-newspec, 1.5, 1.6 rpmdevtools.spec, 1.44, 1.45
Ville Skytta (scop)
fedora-extras-commits at redhat.com
Sat Dec 8 16:20:35 UTC 2007
Author: scop
Update of /cvs/fedora/fedora-rpmdevtools
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22659
Modified Files:
rpmdev-newspec rpmdevtools.spec
Added Files:
spectemplate-fonts.spec
Log Message:
Add fonts spec template from the Fedora Fonts SIG (#407781)
--- NEW FILE spectemplate-fonts.spec ---
%define fontname FONTNAME
%define fontdir %{_datadir}/fonts/%{fontname}
%define fontconfdir %{_sysconfdir}/fonts/conf.d
Name: %{fontname}-fonts
Version:
Release: 1%{?dist}
Summary:
Group: User Interface/X
License:
URL:
Source0:
Source1: %{name}-fontconfig.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires:
%description
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
install -dm 755 $RPM_BUILD_ROOT%{fontdir}
# install eg. *.ttf and *.otf to $RPM_BUILD_ROOT%{fontdir} with perms 644
install -dm 755 $RPM_BUILD_ROOT%{fontconfdir}
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{fontconfdir}/<XX>-%{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
%config(noreplace) %{fontconfdir}/XX-%{fontname}.conf
%dir %{fontdir}/
%{fontdir}/*.ttf
%{fontdir}/*.otf
%changelog
Index: rpmdev-newspec
===================================================================
RCS file: /cvs/fedora/fedora-rpmdevtools/rpmdev-newspec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- rpmdev-newspec 6 Aug 2007 18:00:12 -0000 1.5
+++ rpmdev-newspec 8 Dec 2007 16:20:33 -0000 1.6
@@ -92,6 +92,10 @@
lib*|*-lib|*-libs)
spectype=lib
;;
+ *-fonts)
+ spectype=fonts
+ specfilter="; s/\\bFONTNAME\\b/${appname%%-fonts}/"
+ ;;
*)
spectype=$DEFTYPE
;;
@@ -113,7 +117,7 @@
specfile=/dev/stdout
fi
-cat "$tempspec" | sed -e "s/^\\(Name:\\s*\\)/\\1$appname/ $specfilter" \
+cat "$tempspec" | sed -e "s/^\\(Name:\\s*\\)$/\\1$appname/ $specfilter" \
> "$specfile"
if [ "$specfile" != "/dev/stdout" ] ; then
Index: rpmdevtools.spec
===================================================================
RCS file: /cvs/fedora/fedora-rpmdevtools/rpmdevtools.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- rpmdevtools.spec 12 Oct 2007 18:50:03 -0000 1.44
+++ rpmdevtools.spec 8 Dec 2007 16:20:33 -0000 1.45
@@ -123,6 +123,9 @@
%changelog
+* Sat Dec 8 2007 Ville Skyttä <ville.skytta at iki.fi>
+- Add fonts spec template from the Fedora Fonts SIG (#407781).
+
* Fri Oct 12 2007 Lubomir Kundrak <lkundrak at redhat.com> - 6.4-1
- Import the previous fix into CVS to resync, bump version
More information about the scm-commits
mailing list