|
nim |
683a08 |
%define spectemplatedir %{_sysconfdir}/rpmdevtools/
|
|
nim |
683a08 |
%define rpmmacrodir %{_sysconfdir}/rpm/
|
|
nim |
683a08 |
|
|
nim |
683a08 |
Name: fontpackages
|
|
nim |
2e47af |
Version: 1.12
|
|
nim |
683a08 |
Release: 1%{?dist}
|
|
nim |
683a08 |
Summary: Common directory and macro definitions used by font packages
|
|
nim |
683a08 |
|
|
nim |
683a08 |
Group: Development/System
|
|
nim |
683a08 |
# Mostly means the scriptlets inserted via this package do not change the
|
|
nim |
683a08 |
# license of the packages they're inserted in
|
|
nim |
683a08 |
License: LGPLv3+
|
|
nim |
683a08 |
# Or git://git.fedorahosted.org/fontpackages.git
|
|
nim |
683a08 |
URL: http://fedoraproject.org/wiki/Category:Fonts_SIG
|
|
nim |
683a08 |
Source0: http://fedorahosted.org/releases/f/o/%{name}/%{name}-%{version}.tar.bz2
|
|
nim |
683a08 |
BuildArch: noarch
|
|
nim |
683a08 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%description
|
|
nim |
683a08 |
This package contains the basic directory layout, spec templates, rpm macros
|
|
nim |
683a08 |
and other materials used to create font packages.
|
|
nim |
683a08 |
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%package filesystem
|
|
nim |
683a08 |
Summary: Directories used by font packages
|
|
nim |
683a08 |
Group: User Interface/X
|
|
nim |
683a08 |
License: Public Domain
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%description filesystem
|
|
nim |
683a08 |
This package contains the basic directory layout used by font packages,
|
|
nim |
683a08 |
including the correct permissions for the directories.
|
|
nim |
683a08 |
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%package devel
|
|
nim |
683a08 |
Summary: Templates and macros used to create font packages
|
|
nim |
683a08 |
Group: User Interface/X
|
|
nim |
683a08 |
|
|
nim |
683a08 |
Requires: rpmdevtools, %{name}-filesystem = %{version}-%{release}
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%description devel
|
|
nim |
683a08 |
This package contains spec templates, rpm macros and other materials used to
|
|
nim |
683a08 |
create font packages.
|
|
nim |
683a08 |
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%prep
|
|
nim |
683a08 |
%setup -q
|
|
nim |
683a08 |
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%build
|
|
nim |
683a08 |
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%install
|
|
nim |
683a08 |
rm -fr %{buildroot}
|
|
nim |
683a08 |
|
|
nim |
683a08 |
# Pull macros out of macros.fonts and emulate them during install
|
|
nim |
2e47af |
for dir in fontbasedir fontconfig_masterdir \
|
|
nim |
2e47af |
fontconfig_confdir fontconfig_templatedir ; do
|
|
nim |
683a08 |
export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" \
|
|
nim |
683a08 |
macros/macros.fonts | %{__awk} '{ print $2 }'))
|
|
nim |
683a08 |
done
|
|
nim |
683a08 |
|
|
nim |
683a08 |
install -m 0755 -d %{buildroot}${_fontbasedir} \
|
|
nim |
2e47af |
%{buildroot}${_fontconfig_masterdir} \
|
|
nim |
683a08 |
%{buildroot}${_fontconfig_confdir} \
|
|
nim |
683a08 |
%{buildroot}${_fontconfig_templatedir} \
|
|
nim |
683a08 |
%{buildroot}%{spectemplatedir} \
|
|
nim |
683a08 |
%{buildroot}%{rpmmacrodir}
|
|
nim |
683a08 |
install -m 0644 -p spec-templates/*.spec %{buildroot}%{spectemplatedir}
|
|
nim |
683a08 |
install -m 0644 -p macros/macros* %{buildroot}%{rpmmacrodir}
|
|
nim |
683a08 |
|
|
nim |
683a08 |
cat <<EOF > %{name}-%{version}.files
|
|
nim |
683a08 |
%defattr(0644,root,root,0755)
|
|
nim |
683a08 |
%dir ${_fontbasedir}
|
|
nim |
2e47af |
%dir ${_fontconfig_masterdir}
|
|
nim |
683a08 |
%dir ${_fontconfig_confdir}
|
|
nim |
683a08 |
%dir ${_fontconfig_templatedir}
|
|
nim |
683a08 |
EOF
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%clean
|
|
nim |
683a08 |
rm -fr %{buildroot}
|
|
nim |
683a08 |
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%files filesystem -f %{name}-%{version}.files
|
|
nim |
683a08 |
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%files devel
|
|
nim |
683a08 |
%defattr(0644,root,root,0755)
|
|
nim |
683a08 |
%doc license.txt readme.txt fontconfig-templates/
|
|
nim |
683a08 |
%config(noreplace) %{spectemplatedir}/*.spec
|
|
nim |
683a08 |
%config(noreplace) %{rpmmacrodir}/macros*
|
|
nim |
683a08 |
|
|
nim |
683a08 |
|
|
nim |
683a08 |
%changelog
|
|
nim |
2e47af |
* Fri Dec 19 2008 Nicolas Mailhot <nim at fedoraproject dot org>
|
|
nim |
2e47af |
- 1.12-1
|
|
nim |
2e47af |
☺ Add another macro to allow building fontconfig without cycling
|
|
nim |
2e47af |
|
|
nim |
683a08 |
* Wed Dec 10 2008 Nicolas Mailhot <nim at fedoraproject dot org>
|
|
nim |
683a08 |
- 1.11-1
|
|
nim |
683a08 |
☺ Add actual fedorahosted references
|
|
nim |
683a08 |
* Sun Nov 23 2008 Nicolas Mailhot <nim at fedoraproject dot org>
|
|
nim |
683a08 |
- 1.10-1
|
|
nim |
683a08 |
☺ renamed to “fontpackages”
|
|
nim |
683a08 |
* Fri Nov 14 2008 Nicolas Mailhot <nim at fedoraproject dot org>
|
|
nim |
683a08 |
- 1.9-1
|
|
nim |
683a08 |
☺ fix and complete fontconfig doc
|
|
nim |
683a08 |
* Fri Nov 14 2008 Nicolas Mailhot <nim at fedoraproject dot org>
|
|
nim |
683a08 |
- 1.8-1
|
|
nim |
683a08 |
☺ simplify multi spec template: codify general case
|
|
nim |
683a08 |
- 1.7-1
|
|
nim |
683a08 |
☺ split fontconfig template documentation is separate files
|
|
nim |
683a08 |
- 1.6-1
|
|
nim |
683a08 |
☺ simplify spec templates
|
|
nim |
683a08 |
- 1.5-1
|
|
nim |
683a08 |
☺ use ".conf" extension for fontconfig templates
|
|
nim |
683a08 |
- 1.4-1
|
|
nim |
683a08 |
☺ small multi spec template fix
|
|
nim |
683a08 |
|
|
nim |
683a08 |
* Wed Nov 12 2008 Nicolas Mailhot <nim at fedoraproject dot org>
|
|
nim |
683a08 |
- 1.3-1
|
|
nim |
683a08 |
☺ remove trailing slashes in directory macros
|
|
nim |
683a08 |
|
|
nim |
683a08 |
* Tue Nov 11 2008 Nicolas Mailhot <nim at fedoraproject dot org>
|
|
nim |
683a08 |
- 1.2-1
|
|
nim |
683a08 |
☺ add fontconfig templates
|
|
nim |
683a08 |
☺ fix a few typos
|
|
nim |
683a08 |
|
|
nim |
683a08 |
* Mon Nov 10 2008 Nicolas Mailhot <nim at fedoraproject dot org>
|
|
nim |
683a08 |
- 1.0-1
|
|
nim |
683a08 |
☺ initial release
|