summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkochano2000-07-15 14:53:13 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commite441f129a20a335dbbaaebbda81010a72e5a9fc7 (patch)
treee2770557523286543cb4953a3aabbe8eb67aeda9
parentb2c6d07cadfa02bded554159709891b3d7f44de2 (diff)
downloadt1lib-e441f129a20a335dbbaaebbda81010a72e5a9fc7.zip
t1lib-e441f129a20a335dbbaaebbda81010a72e5a9fc7.tar.gz
- xglyph moved to separate package - now main package doesn't depend on X11.
- Release 3. Changed files: t1lib.spec -> 1.24
-rw-r--r--t1lib.spec26
1 files changed, 23 insertions, 3 deletions
diff --git a/t1lib.spec b/t1lib.spec
index 09a4f5c..bd6c3af 100644
--- a/t1lib.spec
+++ b/t1lib.spec
@@ -1,7 +1,7 @@
Summary: A library for character- and string-glyphs from Adobe Type 1 fonts
Name: t1lib
Version: 1.0.1
-Release: 2
+Release: 3
License: LGPL
Group: Libraries
Group(fr): Librairies
@@ -91,6 +91,19 @@ Static libraries for t1lib.
%description devel -l pl
Biblioteki statyczne dla t1lib.
+%package xglyph
+Summary: Test program for t1lib with X11 interface
+Summary: Program testowy dla t1lib z interfejsem X11
+Group: X11/Applications
+Group(pl): X11/Aplikacje
+Requires: %{name}-devel = %{version}
+
+%description xglyph
+Test program for t1lib with X11 interface.
+
+%description xglyph -l pl
+Program testowy dla t1lib z interfejsem X11.
+
%prep
%setup -q -n T1-%{version}
%patch0 -p1
@@ -107,7 +120,8 @@ LDFLAGS="-s"; export LDFLAGS
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
- $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm}
+ $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm} \
+ $RPM_BUILD_ROOT/usr/X11R6/bin
%{__make} install DESTDIR=$RPM_BUILD_ROOT
@@ -115,6 +129,8 @@ install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
install Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_fontdir}/Type1
cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
+mv $RPM_BUILD_ROOT{%{_bindir}/xglyph,/usr/X11R6/bin}
+
strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
gzip -9nf Changes README.t1* doc/*.dvi
@@ -138,7 +154,7 @@ rm -r $RPM_BUILD_ROOT
%doc {Changes,README.t1*,doc/*.dvi}.gz
%doc doc/*.{tex,eps,fig}
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/type1afm
%attr(755,root,root) %{_libdir}/*.so.*.*
%dir %{_datadir}/%{name}
@@ -160,3 +176,7 @@ rm -r $RPM_BUILD_ROOT
%files static
%defattr(644,root,root,755)
%{_libdir}/*.a
+
+%files xglyph
+%defattr(644,root,root,755)
+%attr(755,root,root) /usr/X11R6/bin/xglyph