]> git.pld-linux.org Git - packages/dgs.git/blob - dgs.spec
e32100b4b1bbfca57e84f89a99ea4f40da1206f0
[packages/dgs.git] / dgs.spec
1 Name:           dgs
2 Summary:        Display GhostScript - Libraries supporting Display PostScript (DPS)
3 Version:        0.5.9.1
4 Release:        1
5 Copyright:      GPL
6 Vendor:         The Seawood Project
7 Source:         ftp://ftp.gnustep.org/pub/gnustep/%name/%name-%version.tar.gz
8 #Source:                ftp://alpha.gnu.org/gnu/gnustep/%{name}-%{version}.tar.gz
9 #Patch:         dgs-DESTDIR.patch
10 Group:          Applications/Graphics
11 Requires:       ghostscript
12 BuildRoot:      /tmp/%{name}-%{version}-root
13
14 %description
15 The Display Ghostscript System is functionally upward-compatible with
16 Adobe Display PostScript, but it has been written independently.  The
17 Display Ghostscript System provides a device-independent imaging model
18 for displaying information on a screen.  The imaging model uses the
19 PostScript language which has powerful graphics capabilities and frees
20 the programmer from display-specific details like screen resolution and
21 color issues.
22
23 %prep
24 %setup -q
25 %patch -p1
26
27 %build
28 %GNUconfigure
29
30 make shared=yes debug=no CFLAGS="$RPM_OPT_FLAGS -I/usr/X11R6/include"
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_prefix}
35
36 make install DESTDIR=$RPM_BUILD_ROOT shared=yes debug=no
37
38 # remove files provided by normal ghostscript
39 rm -rf $RPM_BUILD_ROOT%{_mandir}
40 (cd $RPM_BUILD_ROOT%{_bindir};\
41 rm -f bdftops font2c gsbj gsdj gsdj500 gslj gslp gsnd printafm wftopfa)
42
43 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/* \
44         $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*.* || :
45
46 gzip -9nf ANNOUNCE FAQ NEWS README STATUS TODO ChangeLog
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post -p /sbin/ldconfig
52
53 %postun -p /sbin/ldconfig
54
55 %files
56 %defattr(644,root,root,755)
57 %doc {ANNOUNCE,FAQ,NEWS,README,STATUS,TODO,ChangeLog}.gz
58 %attr(755,root,root) %{_bindir}/*
59 %{_includedir}/DPS
60 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
61 %{_libdir}/lib*.so
62 %{_libdir}/*.a
This page took 0.054973 seconds and 3 git commands to generate.