- Fixed summary.
- Fixed macros in changelog. - Avoid mixed spaces and tabs. - Ship COPYING file. - Added comments for all patches. - More consistent macro use.
This commit is contained in:
parent
70ad2fc0e1
commit
b41625a6c8
@ -1,11 +1,11 @@
|
||||
%define gs_ver 8.71
|
||||
%define gs_dot_ver 8.71
|
||||
%{expand: %%define build_with_freetype %{?_with_freetype:1}%{!?_with_freetype:0}}
|
||||
Summary: A PostScript interpreter and renderer.
|
||||
Summary: A PostScript interpreter and renderer
|
||||
Name: ghostscript
|
||||
Version: %{gs_ver}
|
||||
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
|
||||
# Included CMap data is Redistributable, no modification permitted,
|
||||
# see http://bugzilla.redhat.com/487510
|
||||
@ -121,6 +121,7 @@ rm -rf libpng zlib jpeg jasper
|
||||
# Define .runlibfileifexists.
|
||||
%patch5 -p1
|
||||
|
||||
# Use the system jasper library.
|
||||
%patch6 -p1 -b .system-jasper
|
||||
|
||||
# Fix pksmraw output (bug #308211). Still needed in 8.63.
|
||||
@ -237,7 +238,7 @@ cd ijs
|
||||
cd ..
|
||||
|
||||
echo ".so man1/gs.1" > $RPM_BUILD_ROOT/%{_mandir}/man1/ghostscript.1
|
||||
ln -sf gs $RPM_BUILD_ROOT/usr/bin/ghostscript
|
||||
ln -sf gs $RPM_BUILD_ROOT%{_bindir}/ghostscript
|
||||
|
||||
# Rename an original cidfmap to cidfmap.GS
|
||||
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/%{gs_dot_ver}/Resource/Init/cidfmap{,.GS}
|
||||
@ -261,10 +262,10 @@ rm -f $RPM_BUILD_ROOT%{_bindir}/ijs_{client,server}_example
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/ghostscript/%{gs_dot_ver}/Resource/Font
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.d
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/ghostscript/%{gs_dot_ver}
|
||||
touch $RPM_BUILD_ROOT/etc/ghostscript/%{gs_dot_ver}/Fontmap.local
|
||||
touch $RPM_BUILD_ROOT/etc/ghostscript/%{gs_dot_ver}/cidfmap.local
|
||||
touch $RPM_BUILD_ROOT/etc/ghostscript/%{gs_dot_ver}/CIDFnmap.local
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ghostscript/%{gs_dot_ver}
|
||||
touch $RPM_BUILD_ROOT%{_sysconfdir}/ghostscript/%{gs_dot_ver}/Fontmap.local
|
||||
touch $RPM_BUILD_ROOT%{_sysconfdir}/ghostscript/%{gs_dot_ver}/cidfmap.local
|
||||
touch $RPM_BUILD_ROOT%{_sysconfdir}/ghostscript/%{gs_dot_ver}/CIDFnmap.local
|
||||
|
||||
# The man/de/man1 symlinks are broken (bug #66238).
|
||||
find $RPM_BUILD_ROOT%{_mandir}/de/man1 -type l | xargs rm -f
|
||||
@ -273,7 +274,7 @@ find $RPM_BUILD_ROOT%{_mandir}/de/man1 -type l | xargs rm -f
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/fixmswrd.pl
|
||||
|
||||
MAIN_PWD=`pwd`
|
||||
(cd $RPM_BUILD_ROOT; find ./usr/share/ghostscript/%{gs_dot_ver}/Resource -type f | \
|
||||
(cd $RPM_BUILD_ROOT; find .%{_datadir}/ghostscript/%{gs_dot_ver}/Resource -type f | \
|
||||
sed -e 's/\.//;' | grep -v Fontmap | grep -v gs_init.ps > $MAIN_PWD/rpm.sharelist
|
||||
find .%{_bindir}/ | sed -e 's/\.//;' | \
|
||||
grep -v '/$\|/hpijs$\|/gsx$\|/ijs-config$' \
|
||||
@ -288,8 +289,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f rpm.sharelist
|
||||
%defattr(-,root,root)
|
||||
%dir /etc/ghostscript
|
||||
%dir /etc/ghostscript/%{gs_dot_ver}
|
||||
%doc doc/COPYING
|
||||
%dir %{_sysconfdir}/ghostscript
|
||||
%dir %{_sysconfdir}/ghostscript/%{gs_dot_ver}
|
||||
%dir %{_datadir}/ghostscript
|
||||
%dir %{_datadir}/ghostscript/conf.d
|
||||
%dir %{_datadir}/ghostscript/%{gs_dot_ver}
|
||||
@ -304,7 +306,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/libijs-*.so*
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/%{gs_dot_ver}
|
||||
%config(noreplace) /etc/ghostscript/%{gs_dot_ver}/*
|
||||
%config(noreplace) %{_sysconfdir}/ghostscript/%{gs_dot_ver}/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
@ -334,6 +336,14 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/libgs.so
|
||||
|
||||
%changelog
|
||||
* Wed Mar 3 2010 Tim Waugh <twaugh@redhat.com> 8.71-6
|
||||
- Fixed summary.
|
||||
- Fixed macros in changelog.
|
||||
- Avoid mixed spaces and tabs.
|
||||
- Ship COPYING file.
|
||||
- Added comments for all patches.
|
||||
- More consistent macro use.
|
||||
|
||||
* Mon Feb 22 2010 Tim Waugh <twaugh@redhat.com> 8.71-5
|
||||
- The doc subpackage is now noarch (bug #567179).
|
||||
|
||||
@ -987,7 +997,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
- Fix gimp-print-4.2.0 so that it builds without cups-config.
|
||||
|
||||
* Sat Feb 2 2002 Bill Nottingham <notting@redhat.com> 6.52-4
|
||||
- do condrestart in %postun, not %post
|
||||
- do condrestart in %%postun, not %%post
|
||||
|
||||
* Fri Feb 1 2002 Bernhard Rosenkraenzer <bero@redhat.com> 6.52-3
|
||||
- Restart service cups after installing gimp-print-cups
|
||||
@ -1089,7 +1099,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
* Thu Feb 8 2001 Crutcher Dunnavant <crutcher@redhat.com>
|
||||
- merged in some patches that got away:
|
||||
- * Fri Sep 1 2000 Mitsuo Hamada <mhamada@redhat.com>
|
||||
* Fri Sep 1 2000 Mitsuo Hamada <mhamada@redhat.com>
|
||||
- add support JIS B size
|
||||
- fix the problem of reconverting GNUPLOT output
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user