Blame SPECS/t1lib.spec

cd8116
Name:           t1lib
cd8116
Version:        5.1.2
c8cd88
Release:        14%{?dist}
cd8116
cd8116
Summary:        PostScript Type 1 font rasterizer
cd8116
cd8116
Group:          Applications/Publishing
cd8116
License:        LGPLv2+
cd8116
URL:            ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-%{version}.lsm
cd8116
Source0:        ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-%{version}.tar.gz
cd8116
Patch0:         http://ftp.de.debian.org/debian/pool/main/t/t1lib/t1lib_5.1.2-3.diff.gz
cd8116
Patch1:         t1lib-5.1.2-segf.patch
cd8116
# Fixes CVE-2010-2642, CVE-2011-0433
cd8116
# http://bugzilla.redhat.com/show_bug.cgi?id=679732
cd8116
Patch2:         t1lib-5.1.2-afm-fix.patch
cd8116
# Fixes CVE-2011-0764, CVE-2011-1552, CVE-2011-1553, CVE-2011-1554
cd8116
# http://bugzilla.redhat.com/show_bug.cgi?id=692909
cd8116
Patch3:         t1lib-5.1.2-type1-inv-rw-fix.patch
cd8116
# Add aarch64 support
cd8116
# https://bugzilla.redhat.com/show_bug.cgi?id=926603
cd8116
Patch4:         t1lib-5.1.2-aarch64.patch
cd8116
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cd8116
BuildRequires:  libXaw-devel
cd8116
cd8116
Requires(post): coreutils, findutils
cd8116
cd8116
%description
cd8116
T1lib is a rasterizer library for Adobe Type 1 Fonts. It supports
cd8116
rotation and transformation, kerning underlining and antialiasing. It
cd8116
does not depend on X11, but does provides some special functions for
cd8116
X11.
cd8116
cd8116
AFM-files can be generated from Type 1 font files and font subsetting
cd8116
is possible.
cd8116
cd8116
%package        apps
cd8116
Summary:        t1lib demo applications
cd8116
Group:          Applications/Text
cd8116
Requires:       %{name} = %{version}-%{release}
cd8116
cd8116
%description    apps
cd8116
Sample applications using t1lib
cd8116
cd8116
%package        devel
cd8116
Summary:        Header files and development files for %{name}
cd8116
Group:          Development/Libraries
cd8116
Requires:       %{name} = %{version}-%{release}
cd8116
cd8116
%description    devel
cd8116
This package contains header files and development files for %{name}.
cd8116
cd8116
%package        static
cd8116
Summary:        Static libraries for %{name}
cd8116
Group:          Development/Libraries
cd8116
Requires:       %{name}-devel = %{version}-%{release}
cd8116
cd8116
%description    static
cd8116
This package contains static libraries for %{name}.
cd8116
cd8116
%prep
cd8116
%setup -q
cd8116
%patch0 -p1
cd8116
%patch1 -p1 -b .segf
cd8116
%patch2 -p1 -b .afm-fix
cd8116
%patch3 -p1 -b .type1-inv-rw-fix
cd8116
%patch4 -p1 -b .aarch64
cd8116
cd8116
# use debian patches directly instead of duplicating them
cd8116
#patch -p1 < debian/patches/segfault.diff -b -z .segf
cd8116
patch -p1 < debian/patches/no-config.diff
cd8116
patch -p1 < debian/patches/no-docs.diff
cd8116
patch -p1 < debian/patches/lib-cleanup.diff
cd8116
cd8116
iconv -f latin1 -t utf8 < Changes > Changes.utf8
cd8116
touch -r Changes Changes.utf8
cd8116
mv Changes.utf8 Changes
cd8116
cd8116
cd8116
%build
cd8116
%configure
cd8116
make %{?_smp_mflags} without_doc
cd8116
touch -r lib/t1lib/t1lib.h.in lib/t1lib.h
cd8116
touch -r lib/t1lib/t1libx.h lib/t1libx.h
cd8116
ln README.t1lib-%{version} README
cd8116
sed -e 's;/usr/share/X11/fonts;%{_datadir}/X11/fonts;' \
cd8116
  -e 's;/usr/share/fonts/type1;%{_datadir}/fonts %{_datadir}/texmf/fonts;' \
cd8116
  -e 's;/etc/t1lib/;%{_datadir}/t1lib/;' \
cd8116
 debian/t1libconfig > t1libconfig
cd8116
touch -r README.t1lib-%{version} t1libconfig
cd8116
cd8116
%install
cd8116
rm -rf $RPM_BUILD_ROOT
cd8116
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
cd8116
rm $RPM_BUILD_ROOT%{_libdir}/libt1*.la
cd8116
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libt1*.so.*
cd8116
cd8116
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
cd8116
install -p -m 644 debian/man/FontDatabase.5 $RPM_BUILD_ROOT%{_mandir}/man5/
cd8116
install -p -m 644 debian/man/t1libconfig.8 $RPM_BUILD_ROOT%{_mandir}/man8/
cd8116
install -p -m 644 debian/man/type1afm.1 $RPM_BUILD_ROOT%{_mandir}/man1/
cd8116
install -p -m 644 debian/man/xglyph.1 $RPM_BUILD_ROOT%{_mandir}/man1/
cd8116
touch -r README.t1lib-%{version} $RPM_BUILD_ROOT%{_mandir}/man?/*.*
cd8116
cd8116
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
cd8116
install -p -m 755 t1libconfig $RPM_BUILD_ROOT%{_sbindir}/
cd8116
cd8116
mkdir -p $RPM_BUILD_ROOT%{_datadir}/t1lib/
cd8116
touch $RPM_BUILD_ROOT%{_datadir}/t1lib/{FontDatabase,t1lib.config}
cd8116
cd8116
%clean
cd8116
rm -rf $RPM_BUILD_ROOT
cd8116
cd8116
cd8116
%post
cd8116
/sbin/ldconfig
cd8116
%{_sbindir}/t1libconfig --force > /dev/null
cd8116
cd8116
%postun -p /sbin/ldconfig
cd8116
cd8116
cd8116
%files
cd8116
%defattr(-,root,root,-)
cd8116
%doc Changes LGPL LICENSE README
cd8116
%dir %{_datadir}/t1lib
cd8116
%ghost %verify(not size mtime md5) %{_datadir}/t1lib/t1lib.config
cd8116
%ghost %verify(not size mtime md5) %{_datadir}/t1lib/FontDatabase
cd8116
%{_libdir}/libt1.so.*
cd8116
%{_libdir}/libt1x.so.*
cd8116
%{_mandir}/man5/*
cd8116
%{_mandir}/man8/*
cd8116
%{_sbindir}/t1libconfig
cd8116
cd8116
%files apps
cd8116
%defattr(-,root,root,-)
cd8116
%{_bindir}/type1afm
cd8116
%{_bindir}/xglyph
cd8116
%{_mandir}/man1/*
cd8116
cd8116
%files devel
cd8116
%defattr(-,root,root,-)
cd8116
%doc doc/t1lib_doc.pdf
cd8116
%{_includedir}/t1lib*.h
cd8116
%{_libdir}/libt1.so
cd8116
%{_libdir}/libt1x.so
cd8116
cd8116
%files static
cd8116
%defattr(-,root,root,-)
cd8116
%{_libdir}/libt1.a
cd8116
%{_libdir}/libt1x.a
cd8116
cd8116
cd8116
%changelog
c8cd88
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 5.1.2-14
c8cd88
- Mass rebuild 2014-01-24
c8cd88
c8cd88
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 5.1.2-13
c8cd88
- Mass rebuild 2013-12-27
c8cd88
cd8116
* Tue Mar 26 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 5.1.2-12
cd8116
- Added support for aarch64 (aarch64 patch)
cd8116
  Resolves: rhbz#926603
cd8116
cd8116
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-11
cd8116
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cd8116
cd8116
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-10
cd8116
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cd8116
cd8116
* Tue Jan 10 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 5.1.2-9
cd8116
- Add patch to fix CVE-2010-2642, CVE-2011-0433 (afm-fix patch)
cd8116
- New version of patch for CVE-2011-0764, also fixes CVE-2011-1552,
cd8116
  CVE-2011-1553, CVE-2011-1554 (type1-inv-rw-fix patch)
cd8116
  Resolves: rhbz#772899
cd8116
- Add explicit NVR requires to apps subpackage (consumes libt1(x).so)
cd8116
- Fix rpmlint warning (mixed-use-of-spaces-and-tabs)
cd8116
cd8116
* Tue Jan  3 2012 José Matos <jamatos@fedoraproject.org> - 5.1.2-8
cd8116
- Add patch to fix CVE-2011-0764
cd8116
cd8116
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-7
cd8116
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cd8116
cd8116
* Wed May 26 2010 José Matos <jamatos@fc.up.pt> - 5.1.2-6
cd8116
- Use updated debian patch (thanks to Patrice Dumas). (#587885)
cd8116
cd8116
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-5
cd8116
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cd8116
cd8116
* Thu Jul 02 2009 Adam Jackson <ajax@redhat.com> 5.1.2-4
cd8116
- Split demo apps to a subpackage to isolate libXaw deps
cd8116
cd8116
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-3
cd8116
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cd8116
cd8116
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.1.2-2
cd8116
- Autorebuild for GCC 4.3
cd8116
cd8116
* Sat Jan 12 2008 Patrice Dumas <pertusus[AT]free.fr> - 5.1.2-1
cd8116
- update to 5.1.2
cd8116
cd8116
* Tue Jan  8 2008 Patrice Dumas <pertusus[AT]free.fr> - 5.1.1-7
cd8116
- add X libs BuildRequires (#353861)
cd8116
cd8116
* Tue Jan  8 2008 Patrice Dumas <pertusus[AT]free.fr> - 5.1.1-6
cd8116
- apply debian patch
cd8116
- use debian patches directly
cd8116
cd8116
* Sat Jan  5 2008 Patrice Dumas <pertusus[AT]free.fr> - 5.1.1-5
cd8116
- silence t1libconfig when the directories don't exist (#183108)
cd8116
cd8116
* Sat Jan  5 2008 Patrice Dumas <pertusus[AT]free.fr> - 5.1.1-4
cd8116
- separate subpackage for static library
cd8116
- keep timestamps
cd8116
- add more paths to t1libconfig and use rpm macros for those paths
cd8116
- fix the -maxdepth position in find
cd8116
- put t1lib.config and FontDatabase in %%{_datadir} these are not
cd8116
  config files, they are generated
cd8116
- fix a segfault in t1lib with long TYPE1 lines
cd8116
cd8116
* Thu Sep 27 2007 José Matos <jamatos[AT]fc.up.pt> - 5.1.1-3
cd8116
- Apply patch to fix CVE-2007-4033
cd8116
cd8116
* Tue Aug 28 2007 José Matos <jamatos[AT]fc.up.pt> - 5.1.1-2
cd8116
- License fix, rebuild for devel (F8).
cd8116
cd8116
* Thu Jun  7 2007 José Matos <jamatos[AT]fc.up.pt> - 5.1.1-1
cd8116
- Update to 5.1.1.
cd8116
- Remove t1lib-5.1.0-destdir.patch (applied upstream).
cd8116
cd8116
* Sun Apr 22 2007 José Matos <jamatos[AT]fc.up.pt> - 5.1.0-9
cd8116
- Add Requires(post).
cd8116
cd8116
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 5.1.0-8
cd8116
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
cd8116
cd8116
* Wed Sep 20 2006 José Matos <jamatos[AT]fc.up.pt> - 5.1.0-7
cd8116
- Rebuild for FC-6.
cd8116
cd8116
* Sun Feb 26 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 5.1.0-6
cd8116
- Change X11 font path to Fedora Core 5's default (#183108, Ville Skyttä)
cd8116
cd8116
* Tue Feb 14 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 5.1.0-5
cd8116
- Rebuild for Fedora Extras 5
cd8116
cd8116
* Tue Jan 17 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 5.1.0-4
cd8116
- %%ghost-ing config files, also making sure they're regenerated
cd8116
cd8116
* Tue Jan 17 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 5.1.0-3
cd8116
- rebuild
cd8116
cd8116
* Tue Jan 17 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 5.1.0-2
cd8116
- remove unneeded %%{_datadir}/t1lib contents
cd8116
- cleanup
cd8116
cd8116
* Tue Sep 27 2005 Michael A. Peters <mpeters@mac.com> - 5.1.0-1
cd8116
- updated version
cd8116
- remove Patch0 (in upstream), added Patch6
cd8116
- Does not BuildRequire xfree/xorg devel
cd8116
- no longer BuildRequire autoconf (Patch0 removed)
cd8116
cd8116
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 5.0.2-3
cd8116
- rebuild on all arches
cd8116
cd8116
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
cd8116
- rebuilt
cd8116
cd8116
* Thu Mar 11 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:5.0.2-0.fdr.1
cd8116
- Updated to 5.0.2.
cd8116
cd8116
* Sat Feb  7 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> 0:5.0.0-0.fdr.3
cd8116
- Converted spec file to UTF-8.
cd8116
- Synchronised patches with Debian (unstable) t1lib-5.0.0.
cd8116
cd8116
* Thu Nov 27 2003 Marius L. Jøhndal <mariuslj at ifi.uio.no> 0:5.0.0-0.fdr.2
cd8116
- Added URL (bug 880).
cd8116
- Eliminated funny typo in configure script (bug 880).
cd8116
cd8116
* Sun Oct 26 2003 Marius L. Jøhndal <mariuslj at ifi.uio.no> 0:5.0.0-0.fdr.1
cd8116
- Initial RPM release.
cd8116