73 lines
2.3 KiB
RPMSpec
73 lines
2.3 KiB
RPMSpec
%global fontname julietaula-montserrat
|
|
%global fontconf 61-%{fontname}-fonts.conf
|
|
%global atfontconf 61-%{fontname}-alternates-fonts.conf
|
|
|
|
Name: julietaula-montserrat-fonts
|
|
Version: 7.222
|
|
Release: 1
|
|
Epoch: 1
|
|
Summary: Sans-serif typeface
|
|
|
|
License: OFL-1.1
|
|
URL: https://github.com/JulietaUla/Montserrat
|
|
Source0: https://github.com/JulietaUla/Montserrat/archive/v%{version}.tar.gz#/Montserrat-%{version}.tar.gz
|
|
Source1: %{name}-fontconfig.conf
|
|
Source2: %{name}-alternates-fontconfig.conf
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: fontpackages-devel
|
|
Requires: fontpackages-filesystem
|
|
|
|
Obsoletes: %{name} < 1:%{version}-%{release}
|
|
|
|
%description
|
|
The Montserrat font project develops a typeface created by Julieta Ulanovsky who
|
|
is inspired by the old posters and signs in the traditional neighborhood of Buenos
|
|
Aires called Montserrat.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -c -n %{name}-%{version}
|
|
|
|
%build
|
|
|
|
%install
|
|
pushd %{buildroot}
|
|
install -Dpm 0644 %_builddir/%{name}-%{version}/Montserrat-%{version}/fonts/ttf/*.ttf -t\
|
|
.%{_fontdir}
|
|
install -Dpm 0644 %_builddir/%{name}-%{version}/Montserrat-%{version}/fonts/otf/*.otf -t\
|
|
.%{_fontdir}
|
|
|
|
install -m 0755 -d .%{_fontconfig_templatedir} .%{_fontconfig_confdir}
|
|
install -m 0644 -p %{SOURCE1} .%{_fontconfig_templatedir}/%{fontconf}
|
|
install -m 0644 -p %{SOURCE2} .%{_fontconfig_templatedir}/%{atfontconf}
|
|
ln -s %{_fontconfig_templatedir}/%{fontconf} .%{_fontconfig_confdir}/%{fontconf}
|
|
ln -s %{_fontconfig_templatedir}/%{atfontconf} .%{_fontconfig_confdir}/%{atfontconf}
|
|
popd
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Montserrat-%{version}/AUTHORS.txt Montserrat-%{version}/CONTRIBUTORS.txt
|
|
%license Montserrat-%{version}/OFL.txt
|
|
%{_sysconfdir}/fonts/conf.d/%{fontconf}
|
|
%{_sysconfdir}/fonts/conf.d/%{atfontconf}
|
|
%{_datadir}/fontconfig/conf.avail/%{fontconf}
|
|
%{_datadir}/fontconfig/conf.avail/%{atfontconf}
|
|
%{_datadir}/fonts/%{fontname}/*.ttf
|
|
%{_datadir}/fonts/%{fontname}/*.otf
|
|
|
|
%files help
|
|
%defattr(-,root,root)
|
|
%doc Montserrat-%{version}/README.md
|
|
|
|
%changelog
|
|
* Sun Oct 08 2023 Ge Wang <wang__ge@126.com> - 1:7.222-1
|
|
- Update to version 7.222
|
|
|
|
* Tue May 10 2022 yaoxin <yaoxin30@h-partners.com> - 1:7.200-6
|
|
- License compliance rectification
|
|
|
|
* Mon Jan 20 2020 Jiangping Hu <hujp1985@foxmail.com> - 1:7.200-5
|
|
- Package init
|