Miscellaneous small improvements.
This commit is contained in:
parent
9f417edac1
commit
922c79cbeb
@ -1,6 +1,6 @@
|
|||||||
Name: fontforge
|
Name: fontforge
|
||||||
Version: 0.0
|
Version: 0.0
|
||||||
Release: 1.20041231
|
Release: 2.20041231
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: An outline and bitmap font editor
|
Summary: An outline and bitmap font editor
|
||||||
|
|
||||||
@ -10,7 +10,6 @@ URL: http://fontforge.sourceforge.net/
|
|||||||
Source0: http://dl.sf.net/fontforge/fontforge_full-20041231.tgz
|
Source0: http://dl.sf.net/fontforge/fontforge_full-20041231.tgz
|
||||||
Source1: fontforge.desktop
|
Source1: fontforge.desktop
|
||||||
Source2: http://dl.sf.net/fontforge/fontforge_htdocs-20041231.tgz
|
Source2: http://dl.sf.net/fontforge/fontforge_htdocs-20041231.tgz
|
||||||
Source3: pfaicon.gif
|
|
||||||
Patch1: fontforge-20040618-docview.patch
|
Patch1: fontforge-20040618-docview.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
@ -22,7 +21,6 @@ BuildRequires: libungif-devel
|
|||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: freetype-devel
|
BuildRequires: freetype-devel
|
||||||
BuildRequires: XFree86-devel
|
BuildRequires: XFree86-devel
|
||||||
BuildRequires: ImageMagick
|
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: libuninameslist-devel
|
BuildRequires: libuninameslist-devel
|
||||||
Obsoletes: pfaedit
|
Obsoletes: pfaedit
|
||||||
@ -34,34 +32,40 @@ fonts. It supports a range of font formats, including PostScript
|
|||||||
(Type2) and CID-keyed fonts.
|
(Type2) and CID-keyed fonts.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n fontforge-20041231
|
%setup -q -n %{name}-20041231
|
||||||
%patch1 -p2 -b .docview
|
%patch1 -p2 -b .docview
|
||||||
|
|
||||||
mkdir htdocs
|
mkdir htdocs
|
||||||
tar xzf %{SOURCE2} -C htdocs
|
tar xzf %{SOURCE2} -C htdocs
|
||||||
rm -rf htdocs/scripts
|
rm -rf htdocs/scripts
|
||||||
|
chmod 644 htdocs/*
|
||||||
mkdir cidmaps
|
mkdir cidmaps
|
||||||
tar xzf htdocs/cidmaps.tgz -C cidmaps
|
tar xzf htdocs/cidmaps.tgz -C cidmaps
|
||||||
|
|
||||||
find . -name "CVS" -type d -print | xargs rm -r
|
find . -name "CVS" -type d -print | xargs rm -r
|
||||||
|
|
||||||
|
for i in fontforge/fontforge.1 fontforge/sfddiff.1 ; do
|
||||||
|
iconv -f iso-8859-1 -t utf-8 $i -o $i.utf8 ; mv $i.utf8 $i
|
||||||
|
done
|
||||||
|
|
||||||
|
sed -i -e 's/-rpath $(libdir)//' fontforge/Makefile*.in
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-regular-link --with-freetype-bytecode=no
|
%configure --with-regular-link --with-freetype-bytecode=no
|
||||||
# Parallell make not working.
|
# Parallel make not working.
|
||||||
make DOCDIR=%{_docdir}/%{name}-%{version}/htdocs
|
make DOCDIR=%{_docdir}/%{name}-%{version}/htdocs
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
# make install DESTDIR=$RPM_BUILD_ROOT fails.
|
# make install DESTDIR=$RPM_BUILD_ROOT fails.
|
||||||
%makeinstall
|
%makeinstall
|
||||||
install -p -m 644 cidmaps/Adobe* $RPM_BUILD_ROOT%{_datadir}/fontforge
|
install -p -m 644 cidmaps/Adobe* $RPM_BUILD_ROOT%{_datadir}/fontforge
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libgunicode.la $RPM_BUILD_ROOT%{_libdir}/libgdraw.la
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libg{draw,unicode}.{la,so}
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libgunicode.so $RPM_BUILD_ROOT%{_libdir}/libgdraw.so
|
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
install -Dpm 644 htdocs/ffanvil32.png \
|
||||||
convert %{SOURCE3} fontforge.png
|
$RPM_BUILD_ROOT%{_datadir}/pixmaps/fontforge.png
|
||||||
install -m 644 fontforge.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
|
|
||||||
|
|
||||||
desktop-file-install \
|
desktop-file-install \
|
||||||
--vendor fedora \
|
--vendor fedora \
|
||||||
@ -69,6 +73,8 @@ desktop-file-install \
|
|||||||
--add-category X-Fedora \
|
--add-category X-Fedora \
|
||||||
%{SOURCE1}
|
%{SOURCE1}
|
||||||
|
|
||||||
|
chmod -x $RPM_BUILD_ROOT%{_libdir}/pkgconfig/fontforge.pc
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -81,17 +87,24 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS INSTALL LICENSE README htdocs
|
%doc AUTHORS LICENSE htdocs
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/libg*.so.*
|
||||||
%{_libdir}/pkgconfig/fontforge.pc
|
%{_libdir}/pkgconfig/fontforge.pc
|
||||||
%{_datadir}/applications/*.desktop
|
%{_datadir}/applications/*fontforge.desktop
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/fontforge
|
||||||
%{_datadir}/pixmaps/*.png
|
%{_datadir}/pixmaps/fontforge.png
|
||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 29 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:0.0-2.20041231
|
||||||
|
- Avoid RPATH.
|
||||||
|
- Convert man pages to UTF-8.
|
||||||
|
- Fix pkgconfig and doc file permissions.
|
||||||
|
- Use updated upstream icon.
|
||||||
|
- Don't include installation documentation.
|
||||||
|
|
||||||
* Mon Jan 17 2005 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.0-1.20041231
|
* Mon Jan 17 2005 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.0-1.20041231
|
||||||
- Updated to 20041231.
|
- Updated to 20041231.
|
||||||
|
|
||||||
|
BIN
pfaicon.gif
BIN
pfaicon.gif
Binary file not shown.
Before Width: | Height: | Size: 198 B |
Loading…
Reference in New Issue
Block a user