From eb925e2e3492a7984e94bb71a62a567821fd10a5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:51:04 +0100 Subject: [PATCH] update to 20200910 [release 20200910-1mamba;Wed Dec 08 2021] --- README.md | 4 ++ urw-base35-fonts.spec | 101 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 urw-base35-fonts.spec diff --git a/README.md b/README.md index 0d700ae..7ae960d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # urw-base35-fonts +35 type 1 PostScript fonts donated and licenced under the GPL by URW. +You can get this package together with a custom made fonts.dir and fonts.scale file (which is the same as the fonts.dir file) from here. +The fonts.dir was specially made to match the original Adobe names of the fonts, e.g. Times, Helvetica etc. + diff --git a/urw-base35-fonts.spec b/urw-base35-fonts.spec new file mode 100644 index 0000000..76143be --- /dev/null +++ b/urw-base35-fonts.spec @@ -0,0 +1,101 @@ +%global fontconfig_prio 61 +Name: urw-base35-fonts +Version: 20200910 +Release: 1mamba +Summary: URW)++ base 35 font set +License: Affero GNU Public License, GPL +Group: System/Fonts +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ArtifexSoftware/urw-base35-fonts +Source: https://github.com/ArtifexSoftware/urw-base35-fonts.git/%{version}/urw-base35-fonts-%{version}.tar.bz2 +Source1: urw-fonts.tar.gz +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Provides: urw-fonts +Obsoletes: urw-fonts <= 2017.07.27 +Requires(post): fontconfig + +%description +35 type 1 PostScript fonts donated and licenced under the GPL by URW. +You can get this package together with a custom made fonts.dir and fonts.scale file (which is the same as the fonts.dir file) from here. +The fonts.dir was specially made to match the original Adobe names of the fonts, e.g. Times, Helvetica etc. + +%prep +%setup -q -a1 + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -d -m0755 %{buildroot}%{_datadir}/fonts/URW +cp fonts/*.{t1,afm,otf} %{buildroot}%{_datadir}/fonts/URW/ +# Legacy fonts +cp URW/**.{afm,pfm} %{buildroot}%{_datadir}/fonts/URW/ + +install -d -m0755 %{buildroot}%{_datadir}/metainfo +cp appstream/*.xml %{buildroot}%{_datadir}/metainfo/ + +install -d -m 0755 %{buildroot}%{_datadir}/fontconfig/conf.avail +install -d -m 0755 %{buildroot}%{_sysconfdir}/fonts/conf.d +# Install the fontconfig files with correct priority for our distribution: +for file in fontconfig/*.conf; do + DISTRO_FILENAME="%{fontconfig_prio}-$(basename $file)" + install -m 0644 -p $file %{buildroot}%{_datadir}/fontconfig/conf.avail/$DISTRO_FILENAME + ln -sf %{_datadir}/fontconfig/conf.avail/$DISTRO_FILENAME %{buildroot}%{_sysconfdir}/fonts/conf.d/$DISTRO_FILENAME +done + +# Some of the fontconfig files are not to be shipped: +# * urw-fallback-specifics.conf - these mappings are already provided by fontconfig +# * urw-fallback-generics.conf - no use-cases for this as far as we know +rm -f %{buildroot}%{_datadir}/fontconfig/conf.avail/%{fontconfig_prio}-urw-fallback-{specifics,generics}.conf +rm -f %{buildroot}%{_sysconfdir}/fonts/conf.d/%{fontconfig_prio}-urw-fallback-{specifics,generics}.conf + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +# something has probably changed, update the font-config cache +/usr/bin/fc-cache +exit 0 + +%postun +# erase +/usr/bin/fc-cache +exit 0 + +%files +%defattr(-,root,root) +%{_sysconfdir}/fonts/conf.d/61-urw-*.conf +%{_datadir}/fontconfig/conf.avail/61-urw-*.conf +%{_datadir}/metainfo/*.xml +%dir %{_datadir}/fonts/URW +%{_datadir}/fonts/URW/* +%doc COPYING LICENSE + +%changelog +* Wed Dec 08 2021 Silvan Calarco 20200910-1mamba +- update to 20200910 + +* Tue Feb 23 2021 Automatic Build System 2017.07.27-1mamba +- automatic version update by autodist + +* Mon Jul 15 2013 Automatic Build System 1.0-6mamba +- automatic rebuild by autodist + +* Thu Jun 18 2009 Silvan Calarco 1.0-5mamba +- specfile updated and rebuilt + +* Fri Sep 02 2005 Massimo Pintore 1.0-4qilnx +- rebuilt with correct postun script + +* Fri Feb 04 2005 Silvan Calarco 1.0-3qilnx +- rebuilt as a noarch package + +* Sun Nov 02 2003 Davide Madrisan 1.0-2qilnx +- spec file updates + +* Fri Jul 18 2003 Silvan Calarco 1.0-1qilnx +- first build for urw-fonts