SHA256
1
0
forked from pool/intlfonts

- call spec-cleaner

OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/intlfonts?expand=0&rev=5
This commit is contained in:
Petr Gajdos 2012-05-17 09:22:08 +00:00 committed by Git OBS Bridge
parent f2a4219cba
commit ab0ab8df78
2 changed files with 59 additions and 54 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 17 09:10:14 UTC 2012 - pgajdos@suse.com
- call spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 22 15:41:17 CET 2011 - tiwai@suse.de Thu Dec 22 15:41:17 CET 2011 - tiwai@suse.de

View File

@ -16,6 +16,18 @@
# #
Name: intlfonts Name: intlfonts
Version: 1.2.1
Release: 0
License: SUSE-Public-Domain
Summary: Documentation for the International Fonts
Url: ftp://ftp.gnu.org/gnu/intlfonts/
Group: System/X11/Fonts
Source0: intlfonts-1.2.1.tar.bz2
Source1: gulim24.bdf.bz2
Source2: fonts.scale.intlfonts-ttf
Source3: efont-iso8859-15.tar.bz2
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: intlfonts-1.2.dif
BuildRequires: freetype2 BuildRequires: freetype2
BuildRequires: xorg-x11 BuildRequires: xorg-x11
BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-devel
@ -23,20 +35,9 @@ BuildRequires: xorg-x11-devel
%define ttf_fontdir /usr/share/fonts/truetype %define ttf_fontdir /usr/share/fonts/truetype
%define type1_fontdir /usr/share/fonts/Type1 %define type1_fontdir /usr/share/fonts/Type1
%define bdf_fontdir /usr/share/fonts/bdf %define bdf_fontdir /usr/share/fonts/bdf
PreReq: %suseconfig_fonts_prereq Requires(pre): %suseconfig_fonts_prereq
BuildArch: noarch
Version: 1.2.1
Release: 0
Summary: Documentation for the International Fonts
License: SUSE-Public-Domain
Group: System/X11/Fonts
Url: ftp://ftp.gnu.org/gnu/intlfonts/
Source0: intlfonts-1.2.1.tar.bz2
Source1: gulim24.bdf.bz2
Source2: fonts.scale.intlfonts-ttf
Source3: efont-iso8859-15.tar.bz2
Patch: intlfonts-1.2.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description %description
This package contains the READMEs for international fonts from the This package contains the READMEs for international fonts from the
@ -68,10 +69,10 @@ intlfonts-bdf-fonts: Bitmap fonts useful for printing exotic languages from
Emacs Emacs
%package -n intlfonts-arabic-bitmap-fonts %package -n intlfonts-arabic-bitmap-fonts
PreReq: %suseconfig_fonts_prereq
Summary: Arabic Fonts for the X Window System
License: SUSE-Public-Domain License: SUSE-Public-Domain
Summary: Arabic Fonts for the X Window System
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
Provides: locale(xorg-x11:ar) Provides: locale(xorg-x11:ar)
Provides: ifntarab = %{version} Provides: ifntarab = %{version}
Obsoletes: ifntarab <= 1.2.1 Obsoletes: ifntarab <= 1.2.1
@ -80,10 +81,10 @@ Obsoletes: ifntarab <= 1.2.1
Arabic fonts for the X Window System. Arabic fonts for the X Window System.
%package -n intlfonts-asian-bitmap-fonts %package -n intlfonts-asian-bitmap-fonts
PreReq: %suseconfig_fonts_prereq
Summary: Asian Fonts for the X Window System
License: No license agreement found in package ; SUSE-Public-Domain License: No license agreement found in package ; SUSE-Public-Domain
Summary: Asian Fonts for the X Window System
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
Provides: locale(xorg-x11:km;th;vi) Provides: locale(xorg-x11:km;th;vi)
Provides: ifntasia = %{version} Provides: ifntasia = %{version}
Obsoletes: ifntasia <= 1.2.1 Obsoletes: ifntasia <= 1.2.1
@ -92,10 +93,10 @@ Obsoletes: ifntasia <= 1.2.1
Asian fonts for the X Window System. Asian fonts for the X Window System.
%package -n intlfonts-chinese-bitmap-fonts %package -n intlfonts-chinese-bitmap-fonts
PreReq: %suseconfig_fonts_prereq
Summary: Chinese Fonts for the X Window System
License: PERMISSIVE-OSI-COMPLIANT License: PERMISSIVE-OSI-COMPLIANT
Summary: Chinese Fonts for the X Window System
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
Provides: locale(xorg-x11:zh) Provides: locale(xorg-x11:zh)
Provides: ifntchia = %{version} Provides: ifntchia = %{version}
Obsoletes: ifntchia <= 1.2.1 Obsoletes: ifntchia <= 1.2.1
@ -104,10 +105,10 @@ Obsoletes: ifntchia <= 1.2.1
Chinese fonts for the X Window System. Chinese fonts for the X Window System.
%package -n intlfonts-chinese-big-bitmap-fonts %package -n intlfonts-chinese-big-bitmap-fonts
PreReq: %suseconfig_fonts_prereq
Summary: Big Chinese Fonts for the X Window System
License: SUSE-Public-Domain License: SUSE-Public-Domain
Summary: Big Chinese Fonts for the X Window System
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
Provides: locale(xorg-x11:zh) Provides: locale(xorg-x11:zh)
Provides: ifntchib = %{version} Provides: ifntchib = %{version}
Obsoletes: ifntchib <= 1.2.1 Obsoletes: ifntchib <= 1.2.1
@ -116,10 +117,10 @@ Obsoletes: ifntchib <= 1.2.1
Big Chinese fonts for the X Window System. Big Chinese fonts for the X Window System.
%package -n intlfonts-ethiopic-bitmap-fonts %package -n intlfonts-ethiopic-bitmap-fonts
PreReq: %suseconfig_fonts_prereq
Summary: Ethiopic Fonts for the X Window System
License: No license agreement found in package ; SUSE-Public-Domain License: No license agreement found in package ; SUSE-Public-Domain
Summary: Ethiopic Fonts for the X Window System
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
Provides: locale(xorg-x11:am) Provides: locale(xorg-x11:am)
Provides: ifntethi = %{version} Provides: ifntethi = %{version}
Obsoletes: ifntethi <= 1.2.1 Obsoletes: ifntethi <= 1.2.1
@ -128,10 +129,10 @@ Obsoletes: ifntethi <= 1.2.1
Ethiopic fonts for the X Window System. Ethiopic fonts for the X Window System.
%package -n intlfonts-euro-bitmap-fonts %package -n intlfonts-euro-bitmap-fonts
PreReq: %suseconfig_fonts_prereq
Summary: European fonts for the X Window System
License: PERMISSIVE-OSI-COMPLIANT License: PERMISSIVE-OSI-COMPLIANT
Summary: European fonts for the X Window System
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
Provides: locale(xorg-x11:cs;el) Provides: locale(xorg-x11:cs;el)
Provides: ifnteuro = %{version} Provides: ifnteuro = %{version}
Obsoletes: ifnteuro <= 1.2.1 Obsoletes: ifnteuro <= 1.2.1
@ -142,10 +143,10 @@ European fonts for the X Window System (ISO 8859-1, 8859-2, 8859-3,
KOI8-1/GOST19768.74-1). KOI8-1/GOST19768.74-1).
%package -n intlfonts-japanese-bitmap-fonts %package -n intlfonts-japanese-bitmap-fonts
PreReq: %suseconfig_fonts_prereq
Summary: Japanese Fonts for the X Window System
License: SUSE-Public-Domain License: SUSE-Public-Domain
Summary: Japanese Fonts for the X Window System
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
Provides: locale(xorg-x11:ja) Provides: locale(xorg-x11:ja)
Provides: ifntjapa = %{version} Provides: ifntjapa = %{version}
Obsoletes: ifntjapa <= 1.2.1 Obsoletes: ifntjapa <= 1.2.1
@ -154,10 +155,10 @@ Obsoletes: ifntjapa <= 1.2.1
Japanese fonts for the X Window System. Japanese fonts for the X Window System.
%package -n intlfonts-japanese-big-bitmap-fonts %package -n intlfonts-japanese-big-bitmap-fonts
PreReq: %suseconfig_fonts_prereq
Summary: Big Japanese Fonts for the X Window System
License: SUSE-Public-Domain License: SUSE-Public-Domain
Summary: Big Japanese Fonts for the X Window System
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
Provides: locale(xorg-x11:ja) Provides: locale(xorg-x11:ja)
Provides: ifntjapb = %{version} Provides: ifntjapb = %{version}
Obsoletes: ifntjapb <= 1.2.1 Obsoletes: ifntjapb <= 1.2.1
@ -166,10 +167,10 @@ Obsoletes: ifntjapb <= 1.2.1
Big Japanese fonts for the X Window System. Big Japanese fonts for the X Window System.
%package -n intlfonts-phonetic-bitmap-fonts %package -n intlfonts-phonetic-bitmap-fonts
PreReq: %suseconfig_fonts_prereq
Summary: IPA font for the X Window System
License: SUSE-Public-Domain License: SUSE-Public-Domain
Summary: IPA font for the X Window System
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
Provides: ifntphon = %{version} Provides: ifntphon = %{version}
Obsoletes: ifntphon <= 1.2.1 Obsoletes: ifntphon <= 1.2.1
@ -177,10 +178,10 @@ Obsoletes: ifntphon <= 1.2.1
The International Phonetic Alphabet font for the X Window System. The International Phonetic Alphabet font for the X Window System.
%package -n intlfonts-ttf-fonts %package -n intlfonts-ttf-fonts
PreReq: %suseconfig_fonts_prereq
Summary: TrueType Fonts from the GNU Intlfonts Package
License: PERMISSIVE-OSI-COMPLIANT License: PERMISSIVE-OSI-COMPLIANT
Summary: TrueType Fonts from the GNU Intlfonts Package
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
Provides: intlfonts-ttf = %{version} Provides: intlfonts-ttf = %{version}
Obsoletes: intlfonts-ttf <= 1.2.1 Obsoletes: intlfonts-ttf <= 1.2.1
@ -188,8 +189,8 @@ Obsoletes: intlfonts-ttf <= 1.2.1
TrueType fonts from the GNU intlfonts package. TrueType fonts from the GNU intlfonts package.
%package -n intlfonts-bdf-fonts %package -n intlfonts-bdf-fonts
Summary: Fonts from the GNU Intlfonts Package in BDF Format
License: PERMISSIVE-OSI-COMPLIANT License: PERMISSIVE-OSI-COMPLIANT
Summary: Fonts from the GNU Intlfonts Package in BDF Format
Group: System/X11/Fonts Group: System/X11/Fonts
Provides: intlfonts-bdf = %{version} Provides: intlfonts-bdf = %{version}
Obsoletes: intlfonts-bdf <= 1.2.1 Obsoletes: intlfonts-bdf <= 1.2.1
@ -201,17 +202,17 @@ These fonts are useful for printing exotic languages such as Thai,
Tibetan, Vietnamese, Arabic, and more from within Emacs. Tibetan, Vietnamese, Arabic, and more from within Emacs.
%package -n intlfonts-type1-fonts %package -n intlfonts-type1-fonts
PreReq: %suseconfig_fonts_prereq
Summary: Type1 Fonts from the GNU Intlfonts Package
License: PERMISSIVE-OSI-COMPLIANT License: PERMISSIVE-OSI-COMPLIANT
Summary: Type1 Fonts from the GNU Intlfonts Package
Group: System/X11/Fonts Group: System/X11/Fonts
Requires(pre): %suseconfig_fonts_prereq
%description -n intlfonts-type1-fonts %description -n intlfonts-type1-fonts
Type1 fonts from the GNU intlfonts package. Type1 fonts from the GNU intlfonts package.
%prep %prep
%setup -n intlfonts-1.2.1 -b 0 -a 3 %setup -n intlfonts-1.2.1 -b 0 -a 3
%patch %patch0
bunzip2 -c $RPM_SOURCE_DIR/gulim24.bdf.bz2 > gulim24.bdf bunzip2 -c $RPM_SOURCE_DIR/gulim24.bdf.bz2 > gulim24.bdf
%build %build
@ -227,18 +228,17 @@ bunzip2 -c $RPM_SOURCE_DIR/gulim24.bdf.bz2 > gulim24.bdf
done done
%install %install
rm -rf $RPM_BUILD_ROOT mkdir -p %{buildroot}%{bitmap_fontdir}/
mkdir -p $RPM_BUILD_ROOT%{bitmap_fontdir}/
set +o posix set +o posix
for f in $(find ./ -name '*.pcf.gz') ; do for f in $(find ./ -name '*.pcf.gz') ; do
install -m 0444 $f $RPM_BUILD_ROOT%{bitmap_fontdir}/ install -m 0444 $f %{buildroot}%{bitmap_fontdir}/
done done
mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}/ mkdir -p %{buildroot}%{ttf_fontdir}/
install -m 0444 TrueType/*.ttf $RPM_BUILD_ROOT%{ttf_fontdir}/ install -m 0444 TrueType/*.ttf %{buildroot}%{ttf_fontdir}/
install -m 0444 $RPM_SOURCE_DIR/fonts.scale.intlfonts-ttf $RPM_BUILD_ROOT%{ttf_fontdir}/ install -m 0444 $RPM_SOURCE_DIR/fonts.scale.intlfonts-ttf %{buildroot}%{ttf_fontdir}/
mkdir -p $RPM_BUILD_ROOT%{type1_fontdir}/ mkdir -p %{buildroot}%{type1_fontdir}/
install -m 0444 Type1/*.[ap]f? $RPM_BUILD_ROOT%{type1_fontdir}/ install -m 0444 Type1/*.[ap]f? %{buildroot}%{type1_fontdir}/
mkdir -p $RPM_BUILD_ROOT%{bdf_fontdir}/ mkdir -p %{buildroot}%{bdf_fontdir}/
for f in \ for f in \
lt1-24-etl lt1-16b-etl lt1-16i-etl lt1-16bi-etl lt1-24-etl lt1-16b-etl \ lt1-24-etl lt1-16b-etl lt1-16i-etl lt1-16bi-etl lt1-24-etl lt1-16b-etl \
lt1-16i-etl lt1-16bi-etl lt2-24-etl lt3-24-etl lt4-24-etl thai24 \ lt1-16i-etl lt1-16bi-etl lt2-24-etl lt3-24-etl lt4-24-etl thai24 \
@ -246,21 +246,21 @@ bunzip2 -c $RPM_SOURCE_DIR/gulim24.bdf.bz2 > gulim24.bdf
gb24st jiskan24 gulim24 jksp40 cns1-40 cns2-40 taipei24 taipei24 \ gb24st jiskan24 gulim24 jksp40 cns1-40 cns2-40 taipei24 taipei24 \
sish24-etl ipa24-etl visc24-etl visc24-etl arab24-0-etl arab24-1-etl \ sish24-etl ipa24-etl visc24-etl visc24-etl arab24-0-etl arab24-1-etl \
lao24-mule arab24-2-etl ind1c24-mule tib1c24-mule tib24-mule \ lao24-mule arab24-2-etl ind1c24-mule tib1c24-mule tib24-mule \
ethio24f-uni cns3-40 cns4-40 cns5-40 cns6-40 cns7-40 ind24-mule ethio24f-uni cns3-40 cns4-40 cns5-40 cns6-40 cns7-40 ind24-mule
do do
install -m 0444 `find . -name $f.bdf` $RPM_BUILD_ROOT%{bdf_fontdir} install -m 0444 `find . -name $f.bdf` %{buildroot}%{bdf_fontdir}
done done
# install documents # install documents
mkdir -m 0755 -p $RPM_BUILD_ROOT%{_defaultdocdir}/intlfonts mkdir -m 0755 -p %{buildroot}%{_defaultdocdir}/intlfonts
find . -name 'README*' | while read i; do find . -name 'README*' | while read i; do
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/intlfonts/${i%/*} mkdir -p %{buildroot}%{_defaultdocdir}/intlfonts/${i%/*}
install -m 0444 $i $RPM_BUILD_ROOT%{_defaultdocdir}/intlfonts/${i%/*} install -m 0444 $i %{buildroot}%{_defaultdocdir}/intlfonts/${i%/*}
done done
cp -a $RPM_BUILD_ROOT%{_defaultdocdir}/intlfonts/Misc \ cp -a %{buildroot}%{_defaultdocdir}/intlfonts/Misc \
$RPM_BUILD_ROOT%{_defaultdocdir}/intlfonts/Arabic %{buildroot}%{_defaultdocdir}/intlfonts/Arabic
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
%post -n intlfonts-arabic-bitmap-fonts %post -n intlfonts-arabic-bitmap-fonts
%run_suseconfig_fonts %run_suseconfig_fonts