- amend spec file to reflect new font packaging scheme

(see openFATE#313536);

OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/dejavu-fonts?expand=0&rev=12
This commit is contained in:
Petr Gajdos 2012-07-11 08:55:22 +00:00 committed by Git OBS Bridge
parent 0bf2a6f164
commit 5d4e3221c0
2 changed files with 16 additions and 15 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 4 12:39:06 CEST 2012 - pgajdos@suse.cz
- amend spec file to reflect new font packaging scheme
(see openFATE#313536);
-------------------------------------------------------------------
Thu May 17 09:09:55 UTC 2012 - pgajdos@suse.com

View File

@ -16,20 +16,19 @@
#
Name: dejavu-fonts
Version: 2.33
Release: 1
License: SUSE-Permissive
Release: 0
Summary: DejaVu Truetype Fonts
Url: http://dejavu.sourceforge.net/
License: SUSE-Permissive
Group: System/X11/Fonts
# download http://mesh.dl.sourceforge.net/sourceforge/dejavu/dejavu-fonts-ttf-%{version}.tar.bz2
Url: http://dejavu.sourceforge.net/
# download http://mesh.dl.sourceforge.net/sourceforge/dejavu/dejavu-fonts-ttf-{version}.tar.bz2
Source: dejavu-fonts-ttf-%{version}.tar.bz2
Requires(pre): %suseconfig_fonts_prereq
BuildRequires: fontpackages-devel
%reconfigure_fonts_prereq
Provides: desktop-data-SuSE:/usr/X11R6/lib/X11/fonts/truetype/SUSESans-Roman.ttf
Provides: locale(bg;el;mk;ru;vi)
%define ttf_fontdir /usr/share/fonts/truetype
# FIXME: This causes a rpmlint warning; change <= to < once there's a new upstream version
Obsoletes: dejavu <= 2.33
Provides: dejavu = %{version}
@ -48,18 +47,14 @@ development.
%build
%install
mkdir -p %{buildroot}%{ttf_fontdir}/
install -m 0644 ttf/*.ttf %{buildroot}%{ttf_fontdir}/
mkdir -p %{buildroot}%{_ttfontsdir}/
install -m 0644 ttf/*.ttf %{buildroot}%{_ttfontsdir}/
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%reconfigure_fonts_scriptlets
%files
%defattr(-,root,root,755)
%doc AUTHORS BUGS LICENSE NEWS README *.txt fontconfig
%{ttf_fontdir}/
%{_ttfontsdir}/
%changelog