[Momonga-devel.ja:01121] separate hpijs from ghostscript
- From: KOMATSU Shinichiro <koma2@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Dec 2002 01:41:32 +0900
小松です。
現在 ghostscript の sub package になっている hpijs ですが、
build 時には gs と hpijs に依存関係はないし
(動かす時には、gs がないと hpijs は実質的に役に立たないでしょうけど)、
同じ IJS server である ijsgimpprint が別 spec になっていることを
考えても、別 spec にする方が自然でしょう。
ということで、添付 patch のように
ghostscript.spec から hpijs を分離しようと思います。
hpijs.spec も添付しておきます。
また、nosrc.rpm を
http://www.momonga-linux.org/~koma2/test/
以下に置いておきます。
# 明日は建物の停電があるので、モ鯖に置きます。
コメント等ありましたらよろしくお願いします。
特になければ、今日(23日)の夜にでも commit します。
--
---------------------------------------
東京大学大学院総合文化研究科
広域科学専攻相関基礎科学系
佐々研究室 博士3年
小松 晋一朗
koma2@xxxxxxxxxxxxxxxxxxxx
koma2@xxxxxxxxxxxxxxxxx
http://kamuy.c.u-tokyo.ac.jp/~koma2/
---------------------------------------
Index: ghostscript.spec
===================================================================
RCS file: /home/cvs/pkgs/ghostscript/ghostscript.spec,v
retrieving revision 1.13
diff -u -u -r1.13 ghostscript.spec
--- ghostscript.spec 2002/12/19 21:24:32 1.13
+++ ghostscript.spec 2002/12/22 16:31:07
@@ -19,9 +19,7 @@
BuildPreReq: libxml-devel
Obsoletes: ghostscript-pdfencrypt
BuildRoot: %{_tmppath}/%{name}-%{gs_ver}-root
-Release: 2m
-%define hpijs 1.3
-%define hpijs_release %{release}
+Release: 2m1test
License: GPL
URL: http://www.ghostscript.com/doc/gnu/
@@ -44,9 +42,6 @@
# http://www.gyve.org/gs-cjk/
%define cjk_ver 6.51-cjk-M2-R3
Source9: ftp://ftp.gyve.org/pub/gs-cjk/M2/gs%{cjk_ver}.tar.gz
-# HP Ink Jet Server
-Source10: http://us.dl.sf.net/sourceforge/hpinkjet/hpijs-%{hpijs}.tar.gz
-NoSource: 10
%define gsj_ver gs550j1
Source11: %{gsj_ver}.tar.gz
# Source12 is gs6.51 friendly contrib.mak-add for gsj
@@ -87,7 +82,6 @@
Patch26: ghostscript-7.05-dx6.patch
Patch27: ghostscript-7.05-fPIC.patch
Patch28: ghostscript-7.05-gb18030.patch
-Patch29: hpijs-1.3-rss.1.patch
Patch30: ghostscript-7.05-x11.patch
Patch31: ghostscript-7.05-ps1.patch
@@ -122,19 +116,6 @@
%description gtk
A GTK-enabled version of Ghostscript, called 'gsx'.
-%package -n hpijs
-Version: %{hpijs}
-Release: %{hpijs_release}
-Summary: HP Printer Drivers
-Requires: %{name}
-Group: Applications/Publishing
-
-%description -n hpijs
-hpijs is a collection of optimized drivers for HP printers.
-hpijs supports the DeskJet 350C, 600C, 600C Photo, 630C, Apollo 2000,
-Apollo 2100, Apollo 2560, DeskJet 800C, DeskJet 825, DeskJet 900,
-PhotoSmart, DeskJet 990C and PhotoSmart 100 series.
-
%package fonts
Summary: Fonts for the GhostScript PostScript(TM) interpreter.
Group: Applications/Publishing
@@ -145,7 +126,7 @@
and X11.
%prep
-%setup -q -a 10 -a 21
+%setup -q -a 21
# Set up the jpeg library
tar xzf %{SOURCE1}
@@ -274,11 +255,6 @@
%patch24 -p1 -b .scripts
-# Turn on HP's hpijs print driver interface
- GS_DEVS=$GS_DEVS'$(DD)ijs.dev $(DD)DJ630.dev '
- GS_DEVS=$GS_DEVS'$(DD)DJ6xx.dev $(DD)DJ6xxP.dev $(DD)DJ8xx.dev '
- GS_DEVS=$GS_DEVS'$(DD)DJ9xx.dev $(DD)DJ9xxVIP.dev $(DD)AP21xx.dev '
-
# Add pcl3 driver support for some other HP printers
tar xzfO %{SOURCE2} pcl3-%{pcl3_ver}/pcl3.tar | tar xf -
mv doc/*.1 man
@@ -447,11 +423,6 @@
# Add CIDnmap for GB18030 font (bug #71135)
%patch28 -p1 -b .gb18030
-# Patch hpijs with Richard Spencer-Smith's enhancements.
-cd hpijs-%{hpijs}
-%patch29 -p1 -b .rss
-cd ..
-
# Fix XLIBDIR
%patch30 -p1 -b .x11
@@ -481,12 +452,6 @@
make so RPM_OPT_FLAGS="%{optflags}" prefix=%{_prefix} \
GS_LIB_DEFAULT='%{_datadir}/ghostscript/%{gs_ver}/lib:%{gs_fontpath}'
-# Build the HP IJS server
-cd hpijs-%{hpijs}
-%configure
-make
-cd ..
-
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
@@ -501,9 +466,6 @@
docdir=%{buildroot}%{_docdir}/%{name}-%{gs_ver} \
exdir='$(docdir)/examples' \
GS_LIB_DEFAULT='%{_datadir}/ghostscript/%{version}/lib:%{gs_fontpath}'
-cd hpijs-%{hpijs}
-make install DESTDIR=%{buildroot}
-cd ..
ln -sf gs.1.gz %{buildroot}/%{_mandir}/man1/ghostscript.1.gz
ln -sf gs %{buildroot}/usr/bin/ghostscript
@@ -558,11 +520,6 @@
%defattr(-,root,root)
%{_bindir}/gsx
-%files -n hpijs
-%defattr(-,root,root)
-%{_bindir}/hpijs
-%{_docdir}/hpijs-%{hpijs}
-
%files devel
%defattr(-,root,root)
%dir %{_includedir}/ghostscript
@@ -574,6 +531,10 @@
%{_datadir}/ghostscript/fonts
%changelog
+* Sun Dec 22 2002 KOMATSU Shinichiro <koma2@xxxxxxxxxxxxxxxxxxxx>
+- (7.05-2m1test)
+- separate hpijs
+
* Fri Dec 20 2002 KOMATSU Shinichiro <koma2@xxxxxxxxxxxxxxxxxxxx>
- (7.05-2m)
- separate ijs
Summary: HP Printer Drivers
Name: hpijs
Version: 1.3
Release: 2m1test
Group: Applications/Publishing
License: modified BSD
Source0: http://us.dl.sf.net/sourceforge/hpinkjet/%{name}-%{version}.tar.gz
Patch0: http://www.linuxprinting.org/download/printing/hpijs/hpijs-1.3-rss.1.patch
NoSource: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
hpijs is a collection of optimized drivers for HP printers.
hpijs supports the DeskJet 350C, 600C, 600C Photo, 630C, Apollo 2000,
Apollo 2100, Apollo 2560, DeskJet 800C, DeskJet 825, DeskJet 900,
PhotoSmart, DeskJet 990C and PhotoSmart 100 series.
%prep
%setup -q
%patch0 -p1 -b .rss~
%build
%configure
make
%install
rm -rf %{buildroot}
%makeinstall
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc hpijs_readme.html gs_hpijs.png
%{_bindir}/*
%changelog
* Sun Dec 22 2002 KOMATSU Shinichiro <koma2@xxxxxxxxxxxxxxxxxxxx>
- (1.3-2m1test)
- separated from ghostscript