]> git.pld-linux.org Git - packages/fonts-TTF-Bitstream-Cyberfonts.git/blame - fonts-TTF-Bitstream-Cyberfonts.spec
- switch to license-installer.sh from SVN (via DistFiles)
[packages/fonts-TTF-Bitstream-Cyberfonts.git] / fonts-TTF-Bitstream-Cyberfonts.spec
CommitLineData
2b96597e 1#
2# Conditional build:
f167731c 3%bcond_with license_agreement # generates package
2b96597e 4#
ddd8f72b
JB
5Summary: Bitstream Cyberfonts TrueType font
6Summary(pl.UTF-8): Font TrueType Cyberfonts firmy Bitstream
2b96597e 7%define base_name fonts-TTF-Bitstream-Cyberfonts
8%if %{with license_agreement}
9Name: %{base_name}
10%else
11Name: %{base_name}-installer
12%endif
13Version: 1.0
044f7b09 14Release: 2%{?with_license_agreement:wla}
2b96597e 15License: Nondistributable but free (See Bitstream-Cyberfonts-licence.txt)
16Group: Fonts
17%if %{with license_agreement}
18# also at http://dl.sourceforge.net/corefonts/
19Source0: ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/Cyberbit.ZIP
20# NoSource0-md5: 63a6f607ac5a78d34b67247b893faf5b
21Source1: ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/Cyberbase.ZIP
22# NoSource1-md5: 63a6f607ac5a78d34b67247b893faf5b
23Source2: ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/CyberCJK.ZIP
24# NoSource2-md5: 63a6f607ac5a78d34b67247b893faf5b
2b96597e 25BuildRequires: unzip
044f7b09
ER
26# we need the -installer package as otherwise can't make end-user
27# package to work. see also comments in %%prep section.
28BuildRequires: %{base_name}-installer
2b96597e 29Requires: %{_fontsdir}/TTF
30Requires(post,postun): fontpostinst
31%else
06c9787d 32Source0: http://svn.pld-linux.org/svn/license-installer/license-installer.sh
33# NoSource0-md5: 4fb1600353dd57fe088e0b12fb0ecac2
044f7b09 34Source1: %{base_name}-licence.txt
2b96597e 35Requires: unzip
06c9787d 36Requires: rpm-build-tools >= 4.4.35
2b96597e 37%endif
2b96597e 38BuildArch: noarch
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%define ttffontsdir %{_fontsdir}/TTF
42
43%description
ddd8f72b 44Bitstream Cyberfonts TrueType font.
69729c55 45%if !%{with license_agreement}
2b96597e 46License issues made us not to include inherent files into this package
47by default. If you want to
48create full working package please build it with one of the following
49command:
50
51%{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
2b96597e 52%endif
53
aca5b462 54%description -l pl.UTF-8
ddd8f72b 55Font TrueType Cyberfonts firmy Bitstream.
69729c55 56%if !%{with license_agreement}
aca5b462
JR
57Kwestie licencji zmusiły nas do niedołączania do tego pakietu istotnych
58plików. Jeśli chcesz stworzyć
59w pełni funkcjonalny pakiet, zbuduj go za pomocą polecenia:
2b96597e 60
61%{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
2b96597e 62%endif
63
64%prep
65%if %{with license_agreement}
66%setup -q -c -T
67/usr/bin/unzip -L %{SOURCE0}
68/usr/bin/unzip -L %{SOURCE1}
69/usr/bin/unzip -L %{SOURCE2}
044f7b09
ER
70# ugly hack, to work with -installer package, when it may not fetch this file
71# from CVS with builder (-nc, -ncs)
72install %{_datadir}/%{base_name}/Bitstream-Cyberfonts-licence.txt .
2b96597e 73%endif
74
75%install
76rm -rf $RPM_BUILD_ROOT
69729c55 77%if !%{with license_agreement}
2b96597e 78install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
79
044f7b09
ER
80sed -e '
81 s/@BASE_NAME@/%{base_name}/g
82 s/@TARGET_CPU@/%{_target_cpu}/g
83 s-@VERSION@-%{version}-g
84 s-@RELEASE@-%{release}-g
85 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
86 s,@LICENSE@,%{_datadir}/%{base_name}/Bitstream-Cyberfonts-licence.txt,
06c9787d 87 s,@DATADIR@,%{_datadir}/%{base_name},g
044f7b09 88' %{SOURCE0} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
2b96597e 89
90install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
044f7b09 91install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{base_name}/Bitstream-Cyberfonts-licence.txt
2b96597e 92%else
93install -d $RPM_BUILD_ROOT%{ttffontsdir}
94install *.ttf $RPM_BUILD_ROOT%{ttffontsdir}
95%endif
2b96597e 96
97%clean
98rm -rf $RPM_BUILD_ROOT
99
100%if %{with license_agreement}
101%post
102fontpostinst TTF
103
104%postun
105fontpostinst TTF
106
107%else
3f4eb4ad 108%post
2b96597e 109echo "
110If you accept the license enclosed in the file
111%{_datadir}/%{base_name}/Bitstream-Cyberfonts-licence.txt
112and want to install real fonts, then rebuild the package with the
113following command:
114
115%{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
116"
117%endif
118
119%files
120%defattr(644,root,root,755)
121%if %{with license_agreement}
044f7b09 122%doc Bitstream-Cyberfonts-licence.txt
2b96597e 123%{ttffontsdir}/*
124%else
125%attr(755,root,root) %{_bindir}/%{base_name}.install
2b96597e 126%{_datadir}/%{base_name}
044f7b09 127%endif
This page took 0.070557 seconds and 4 git commands to generate.