6a11bc
%global fontname stix
6a11bc
%global fontconf 61-%{fontname}
6a11bc
6a11bc
%global archivename STIXv%{version}
6a11bc
6a11bc
%global common_desc \
6a11bc
The mission of the Scientific and Technical Information Exchange (STIX) font \
6a11bc
creation project is the preparation of a comprehensive set of fonts that serve \
6a11bc
the scientific and engineering community in the process from manuscript \
6a11bc
creation through final publication, both in electronic and print formats.
6a11bc
6a11bc
Name:    %{fontname}-fonts
6a11bc
Version: 1.1.0
6a11bc
Release: 12%{?dist}
6a11bc
Summary: Scientific and engineering fonts
6a11bc
6a11bc
License: OFL
6a11bc
URL:     http://www.stixfonts.org/
6a11bc
Source0:  http://downloads.sourceforge.net/stixfonts/%{archivename}.zip
6a11bc
Source10: stix-fonts-fontconfig.conf
6a11bc
Source11: stix-fonts-math-fontconfig.conf
6a11bc
Source20: %{fontname}.metainfo.xml
6a11bc
Source21: %{fontname}-math.metainfo.xml
6a11bc
6a11bc
BuildArch:     noarch
6a11bc
BuildRequires: fontpackages-devel
6a11bc
Requires:      fontpackages-filesystem
6a11bc
6a11bc
Obsoletes:     stix-fonts-doc < 1.1.0
6a11bc
6a11bc
%description
6a11bc
%common_desc
6a11bc
6a11bc
This package includes base Unicode fonts containing most glyphs for standard
6a11bc
use in the usual four styles.
6a11bc
6a11bc
%_font_pkg -f %{fontconf}.conf STIX-*otf
6a11bc
%doc License/*.pdf *.pdf
6a11bc
%{_datadir}/appdata/%{fontname}.metainfo.xml
6a11bc
6a11bc
6a11bc
%package -n %{fontname}-math-fonts
6a11bc
Summary:   Scientific and engineering fonts, PUA glyphs
6a11bc
Requires:  %{name} = %{version}-%{release}
6a11bc
6a11bc
Obsoletes: stix-integrals-fonts < 1.1.0
6a11bc
Obsoletes: stix-pua-fonts < 1.1.0
6a11bc
Obsoletes: stix-sizes-fonts < 1.1.0
6a11bc
Obsoletes: stix-variants-fonts < 1.1.0
6a11bc
6a11bc
6a11bc
%description -n %{fontname}-math-fonts
6a11bc
%common_desc
6a11bc
6a11bc
This package includes one symbol font completing the four faces in the main
6a11bc
%{name} package. It replaces the heap of confusing fontlets in the first Stix
6a11bc
release.
6a11bc
6a11bc
%_font_pkg -n math -f %{fontconf}-math.conf STIXMath*otf
6a11bc
%{_datadir}/appdata/%{fontname}-math.metainfo.xml
6a11bc
6a11bc
6a11bc
%prep
6a11bc
%setup -q -c
6a11bc
6a11bc
6a11bc
%build
6a11bc
6a11bc
6a11bc
%install
6a11bc
install -m 0755 -d %{buildroot}%{_fontdir}
6a11bc
install -m 0644 -p Fonts/STIX-Word/*.otf %{buildroot}%{_fontdir}
6a11bc
6a11bc
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
6a11bc
                   %{buildroot}%{_fontconfig_confdir}
6a11bc
6a11bc
install -m 0644 -p %{SOURCE10} \
6a11bc
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
6a11bc
install -m 0644 -p %{SOURCE11} \
6a11bc
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-math.conf
6a11bc
6a11bc
for fconf in %{fontconf}.conf \
6a11bc
             %{fontconf}-math.conf ; do
6a11bc
  ln -s %{_fontconfig_templatedir}/$fconf \
6a11bc
        %{buildroot}%{_fontconfig_confdir}/$fconf
6a11bc
done
6a11bc
6a11bc
# Add AppStream metadata
6a11bc
install -Dm 0644 -p %{SOURCE20} \
6a11bc
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
6a11bc
install -Dm 0644 -p %{SOURCE21} \
6a11bc
        %{buildroot}%{_datadir}/appdata/%{fontname}-math.metainfo.xml
6a11bc
6a11bc
6a11bc
%changelog
6a11bc
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-12
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6a11bc
6a11bc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-11
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6a11bc
6a11bc
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-10
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6a11bc
6a11bc
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6a11bc
6a11bc
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-8
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6a11bc
6a11bc
* Tue Nov 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.1.0-7
6a11bc
- Add metainfo file to show this font in gnome-software
6a11bc
- Remove %%clean section which is optional now
6a11bc
- Remove buildroot which is optional now
6a11bc
- Remove removal of buildroot in %%install
6a11bc
- Remove group tag
6a11bc
6a11bc
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-6
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6a11bc
6a11bc
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-5
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6a11bc
6a11bc
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-4
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6a11bc
6a11bc
* Thu Nov 08 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.0-3
6a11bc
- Upstream changed their tarball with new pdf, rebuild
6a11bc
6a11bc
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6a11bc
6a11bc
* Sun Jul 8 2012 Nicolas Mailhot <nicolas.mailhot at laposte.net>
6a11bc
- 1.1.0-1
6a11bc
— Update to new stable release
6a11bc
— Major refactoring now that some sanity prevailed upstream in font naming
6a11bc
  Be careful if you used the old font family names
6a11bc
6a11bc
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6a11bc
6a11bc
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
6a11bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6a11bc
6a11bc
* Sun Jul 25 2010 Nicolas Mailhot <nicolas.mailhot at laposte.net>
6a11bc
- 1.0.0-1
6a11bc
— Update to non-beta release
6a11bc
— Switch licensing to OFL
6a11bc
— Add -doc subpackage
6a11bc
6a11bc
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
6a11bc
- 0.9-13
6a11bc
— Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6a11bc
6a11bc
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
6a11bc
- 0.9-12
6a11bc
— Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6a11bc
6a11bc
* Mon Feb 16 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
6a11bc
- 0.9-11
6a11bc
— prepare for F11 mass rebuild, new rpm and new fontpackages
6a11bc
6a11bc
* Fri Jan 16 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
6a11bc
- 0.9-10
6a11bc
‣ Convert to new naming guidelines
6a11bc
6a11bc
* Sun Nov 23 2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
6a11bc
- 0.9-9
6a11bc
ᛤ ‘rpm-fonts’ renamed to “fontpackages”
6a11bc
6a11bc
* Fri Nov 14 2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
6a11bc
- 0.9-8
6a11bc
▤ Rebuild using new « rpm-fonts »
6a11bc
6a11bc
* Fri Jul 11 2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
6a11bc
- 0.9-7
6a11bc
⌖ Fedora 10 alpha general package cleanup
6a11bc
6a11bc
* Thu Nov 1 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
6a11bc
☺ 0.9-6
6a11bc
 ✓ Add some fontconfig aliasing rules
6a11bc
☢ 0.9-4
6a11bc
⚠ Initial experimental packaging