Split out the metainfo files to match the other packages
This commit is contained in:
parent
37558e8a39
commit
ae8203d432
@ -27,6 +27,11 @@ Source2: %{name}-mono.conf
|
|||||||
Source3: %{name}-sans.conf
|
Source3: %{name}-sans.conf
|
||||||
Source4: %{name}-serif.conf
|
Source4: %{name}-serif.conf
|
||||||
Source5: %{name}-narrow.conf
|
Source5: %{name}-narrow.conf
|
||||||
|
Source6: %{fontname}.metainfo.xml
|
||||||
|
Source7: %{fontname}-mono.metainfo.xml
|
||||||
|
Source8: %{fontname}-sans.metainfo.xml
|
||||||
|
Source9: %{fontname}-serif.metainfo.xml
|
||||||
|
Source10: %{fontname}-narrow.metainfo.xml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: fontpackages-devel >= 1.13, xorg-x11-font-utils
|
BuildRequires: fontpackages-devel >= 1.13, xorg-x11-font-utils
|
||||||
BuildRequires: fontforge
|
BuildRequires: fontforge
|
||||||
@ -54,7 +59,7 @@ Shared common files of Liberation font families.
|
|||||||
%verify(not md5 size mtime) %{_fontdir}/fonts.dir
|
%verify(not md5 size mtime) %{_fontdir}/fonts.dir
|
||||||
%verify(not md5 size mtime) %{_fontdir}/fonts.scale
|
%verify(not md5 size mtime) %{_fontdir}/fonts.scale
|
||||||
%{catalogue}/%{name}
|
%{catalogue}/%{name}
|
||||||
%{_datadir}/appdata/Liberation.metainfo.xml
|
%{_datadir}/appdata/liberation.metainfo.xml
|
||||||
|
|
||||||
%package -n %{fontname}-sans-fonts
|
%package -n %{fontname}-sans-fonts
|
||||||
Summary: Sans-serif fonts to replace commonly used Microsoft Arial
|
Summary: Sans-serif fonts to replace commonly used Microsoft Arial
|
||||||
@ -67,7 +72,7 @@ Requires: %{fontname}-fonts-common = %{epoch}:%{version}-%{release}
|
|||||||
This is Sans-serif TrueType fonts that replaced commonly used Microsoft Arial.
|
This is Sans-serif TrueType fonts that replaced commonly used Microsoft Arial.
|
||||||
|
|
||||||
%_font_pkg -n sans -f *-%{fontname}-sans.conf LiberationSans-*.ttf
|
%_font_pkg -n sans -f *-%{fontname}-sans.conf LiberationSans-*.ttf
|
||||||
%{_datadir}/appdata/LiberationSans.metainfo.xml
|
%{_datadir}/appdata/liberation-sans.metainfo.xml
|
||||||
|
|
||||||
%package -n %{fontname}-serif-fonts
|
%package -n %{fontname}-serif-fonts
|
||||||
Summary: Serif fonts to replace commonly used Microsoft Times New Roman
|
Summary: Serif fonts to replace commonly used Microsoft Times New Roman
|
||||||
@ -81,7 +86,7 @@ This is Serif TrueType fonts that replaced commonly used Microsoft Times New \
|
|||||||
Roman.
|
Roman.
|
||||||
|
|
||||||
%_font_pkg -n serif -f *-%{fontname}-serif.conf LiberationSerif*.ttf
|
%_font_pkg -n serif -f *-%{fontname}-serif.conf LiberationSerif*.ttf
|
||||||
%{_datadir}/appdata/LiberationSerif.metainfo.xml
|
%{_datadir}/appdata/liberation-serif.metainfo.xml
|
||||||
|
|
||||||
%package -n %{fontname}-mono-fonts
|
%package -n %{fontname}-mono-fonts
|
||||||
Summary: Monospace fonts to replace commonly used Microsoft Courier New
|
Summary: Monospace fonts to replace commonly used Microsoft Courier New
|
||||||
@ -95,7 +100,7 @@ This is Monospace TrueType fonts that replaced commonly used Microsoft Courier \
|
|||||||
New.
|
New.
|
||||||
|
|
||||||
%_font_pkg -n mono -f *-%{fontname}-mono.conf LiberationMono*.ttf
|
%_font_pkg -n mono -f *-%{fontname}-mono.conf LiberationMono*.ttf
|
||||||
%{_datadir}/appdata/LiberationMono.metainfo.xml
|
%{_datadir}/appdata/liberation-mono.metainfo.xml
|
||||||
|
|
||||||
%package -n %{fontname}-narrow-fonts
|
%package -n %{fontname}-narrow-fonts
|
||||||
Summary: Sans-serif Narrow fonts to replace commonly used Microsoft Arial Narrow
|
Summary: Sans-serif Narrow fonts to replace commonly used Microsoft Arial Narrow
|
||||||
@ -109,7 +114,7 @@ This is Sans-Serif Narrow TrueType fonts that replaced commonly used Microsoft \
|
|||||||
Arial Narrow.
|
Arial Narrow.
|
||||||
|
|
||||||
%_font_pkg -n narrow -f *-%{fontname}-narrow.conf LiberationSansNarrow*.ttf
|
%_font_pkg -n narrow -f *-%{fontname}-narrow.conf LiberationSansNarrow*.ttf
|
||||||
%{_datadir}/appdata/LiberationNarrow.metainfo.xml
|
%{_datadir}/appdata/liberation-narrow.metainfo.xml
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{archivename}
|
%setup -q -n %{archivename}
|
||||||
@ -141,53 +146,16 @@ install -m 0644 -p %{SOURCE5} \
|
|||||||
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-narrow.conf
|
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-narrow.conf
|
||||||
|
|
||||||
# Add AppStream metadata
|
# Add AppStream metadata
|
||||||
mkdir -p %{buildroot}%{_datadir}/appdata
|
install -Dm 0644 -p %{SOURCE6} \
|
||||||
cat > %{buildroot}%{_datadir}/appdata/Liberation.metainfo.xml <<EOF
|
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
install -Dm 0644 -p %{SOURCE7} \
|
||||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
%{buildroot}%{_datadir}/appdata/%{fontname}-mono.metainfo.xml
|
||||||
<component type="font">
|
install -Dm 0644 -p %{SOURCE8} \
|
||||||
<id>Liberation</id>
|
%{buildroot}%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
install -Dm 0644 -p %{SOURCE9} \
|
||||||
<name>Liberation</name>
|
%{buildroot}%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
|
||||||
<summary>Open source versions of several commercial fonts</summary>
|
install -Dm 0644 -p %{SOURCE10} \
|
||||||
</component>
|
%{buildroot}%{_datadir}/appdata/%{fontname}-narrow.metainfo.xml
|
||||||
EOF
|
|
||||||
cat > %{buildroot}%{_datadir}/appdata/LiberationSans.metainfo.xml <<EOF
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
|
||||||
<component type="font">
|
|
||||||
<id>LiberationSans</id>
|
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
|
||||||
<extends>Liberation</extends>
|
|
||||||
</component>
|
|
||||||
EOF
|
|
||||||
cat > %{buildroot}%{_datadir}/appdata/LiberationSerif.metainfo.xml <<EOF
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
|
||||||
<component type="font">
|
|
||||||
<id>LiberationSerif</id>
|
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
|
||||||
<extends>Liberation</extends>
|
|
||||||
</component>
|
|
||||||
EOF
|
|
||||||
cat > %{buildroot}%{_datadir}/appdata/LiberationMono.metainfo.xml <<EOF
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
|
||||||
<component type="font">
|
|
||||||
<id>LiberationMono</id>
|
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
|
||||||
<extends>Liberation</extends>
|
|
||||||
</component>
|
|
||||||
EOF
|
|
||||||
cat > %{buildroot}%{_datadir}/appdata/LiberationNarrow.metainfo.xml <<EOF
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
|
||||||
<component type="font">
|
|
||||||
<id>LiberationNarrow</id>
|
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
|
||||||
<extends>Liberation</extends>
|
|
||||||
</component>
|
|
||||||
EOF
|
|
||||||
|
|
||||||
for fconf in %{fontconf}-mono.conf \
|
for fconf in %{fontconf}-mono.conf \
|
||||||
%{fontconf}-sans.conf \
|
%{fontconf}-sans.conf \
|
||||||
|
7
liberation-mono.metainfo.xml
Normal file
7
liberation-mono.metainfo.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||||
|
<component type="font">
|
||||||
|
<id>liberation-mono</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<extends>liberation</extends>
|
||||||
|
</component>
|
7
liberation-narrow.metainfo.xml
Normal file
7
liberation-narrow.metainfo.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||||
|
<component type="font">
|
||||||
|
<id>liberation-narrow</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<extends>liberation</extends>
|
||||||
|
</component>
|
7
liberation-sans.metainfo.xml
Normal file
7
liberation-sans.metainfo.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||||
|
<component type="font">
|
||||||
|
<id>liberation-sans</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<extends>liberation</extends>
|
||||||
|
</component>
|
7
liberation-serif.metainfo.xml
Normal file
7
liberation-serif.metainfo.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||||
|
<component type="font">
|
||||||
|
<id>liberation-serif</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<extends>liberation</extends>
|
||||||
|
</component>
|
8
liberation.metainfo.xml
Normal file
8
liberation.metainfo.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||||
|
<component type="font">
|
||||||
|
<id>liberation</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<name>Liberation</name>
|
||||||
|
<summary>Open source versions of several commercial fonts</summary>
|
||||||
|
</component>
|
Loading…
Reference in New Issue
Block a user