source: projects/specs/trunk/t/t1lib/t1lib-vl.spec @ 6304

Revision 6304, 7.8 KB checked in by Takemikaduchi, 12 years ago (diff)

ImageMagick?, libarchive, libogg, libvorbis, udisks2: new upstream release
cmake, gvfs, kdeutils, totem-pl-parser: rebuild with libarchive-3.0.4
cvs, pam, patch, t1lib: rebuild package

Line 
1Summary:        PostScript Type 1 font rasterizer
2Name:           t1lib
3Version:        5.1.2
4Release:        3%{?_dist_release}
5Epoch:          1
6
7Group:          System Environment/Libraries
8License:        LGPLv2+
9URL:            ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-%{version}.lsm
10
11Source:         ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
12Patch1:         %{name}-doc.patch.bz2
13Patch2:         %{name}-config.patch.bz2
14Patch3:         %{name}-5.1.2-segf.patch
15# security fixes
16Patch10:        t1lib-5.1.2-CVE-2010-2642.patch
17Patch11:        t1lib-5.1.2-CVE-2011-0764.patch
18
19BuildRoot:      %{_tmppath}/%{name}-%{version}-root
20BuildRequires:  libICE-devel libX11-devel libXaw-devel libXpm-devel
21BuildRequires:  texlive texlive-common
22
23Vendor:         Project Vine
24Distribution:   Vine Linux
25
26%description
27T1lib is a library for generating character and string-glyphs from
28Adobe Type 1 fonts under UNIX. T1lib uses most of the code of the X11
29rasterizer donated by IBM to the X11-project. But some disadvantages
30of the rasterizer being included in X11 have been eliminated.
31T1lib also includes a support for antialiasing.
32
33%package devel
34Summary:        Header files for PostScript Type 1 font rasterizer
35Group:          Development/Libraries
36Requires:       %{name} = %{epoch}:%{version}-%{release}
37Provides:       %{name}-devel = %{version}-%{release}
38
39%description devel
40Header files required for compiling packages
41needing the t1lib.
42
43%package static-devel
44Summary:        Static libraries for PostScript Type 1 font rasterizer
45Group:          Development/Libraries
46Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
47Provides:       %{name}-static-devel = %{version}-%{release}
48
49%description static-devel
50Static libraries required for staticaly compiling packages needing the t1lib.
51
52%package progs
53Summary:        Programs dor manipulating Type 1 font
54Group:          Applications/Graphics
55License:        GPLv2+
56Requires:       %{name} = %{epoch}:%{version}
57Provides:       %{name}-progs
58
59%description progs
60The t1lib-progs contains the programs "xglyph" and "type1afm"
61It also contains the "t1libconfig" script used to configure t1lib.
62
63%prep
64%setup -q
65%patch1 -p0
66%patch2 -p0
67%patch3 -p1 -b .segf
68%patch10 -p1 -b .CVE-2010-2642
69%patch11 -p1 -b .CVE-2011-0764
70
71iconv -f latin1 -t utf8 < Changes > Changes.utf8
72touch -r Changes Changes.utf8
73mv Changes.utf8 Changes
74
75%build
76%configure
77#export tagname=CC
78perl -pi -e 's,-DGLOBAL_CONFIG_DIR="\\"/usr/share/t1lib\\"",-DGLOBAL_CONFIG_DIR="\\"/etc/t1lib\\"",;' Makefile
79#(cd lib
80#perl -pi -e 's,$(DESTDIR)/usr/share/t1lib,$(DESTDIR)$(datedir)t1lib,;' Makefile
81#)
82make without_doc
83#LIBTOOL=/usr/bin/libtool
84touch -r lib/t1lib/t1lib.h.in lib/t1lib.h
85touch -r lib/t1lib/t1libx.h lib/t1libx.h
86ln README.t1lib-%{version} README
87
88(cd doc
89make clean
90make pdf)
91
92%install
93rm -rf $RPM_BUILD_ROOT
94install -d $RPM_BUILD_ROOT%{_libdir} \
95        $RPM_BUILD_ROOT%{_datadir} \
96        $RPM_BUILD_ROOT%{_bindir} \
97        $RPM_BUILD_ROOT%{_includedir}
98make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
99
100rm -f $RPM_BUILD_ROOT%{_libdir}/libt1*.la
101chmod a+x $RPM_BUILD_ROOT%{_libdir}/libt1*.so.*
102
103mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/t1lib
104mv $RPM_BUILD_ROOT%{_datadir}/t1lib/t1lib.config $RPM_BUILD_ROOT%{_sysconfdir}/t1lib
105
106%post   -p /sbin/ldconfig
107%postun -p /sbin/ldconfig
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
112
113%files -n %{name}
114%defattr(-,root,root)
115%config(noreplace) %{_sysconfdir}/t1lib/t1lib.config
116%doc Changes LGPL README.t1*
117%{_libdir}/libt1*.so.*
118
119%files -n %{name}-devel
120%defattr(-,root,root)
121%doc LGPL doc/t1lib_doc.pdf
122%{_includedir}/*
123%{_libdir}/*.so
124
125%files -n %{name}-static-devel
126%defattr(-,root,root)
127%doc LGPL
128%{_libdir}/*.a
129
130%files -n %{name}-progs
131%defattr(-,root,root)
132%doc LICENSE README.t1python
133%{_bindir}/*
134
135%changelog
136* Mon Jan 16 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.1.2-3
137- add patch10 for fix CVE-2010-2642 (AFM font metrics parser)
138  CVE-2011-0433 is fixed on the this patch.
139- add patch11 for fix CVE-2011-0764 (AFM font metrics parser)
140  CVE-2011-0764, CVE-2011-1552, 53, 54 are fixed by this patch
141- add Vendor/Distri Tags
142
143* Fri Jun 03 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.1.2-2
144- add BR: texlive-common
145
146* Sun May 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.2-1
147- updated to 5.1.2
148- added Patch3 from Fedora
149
150* Mon Apr 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.0.2-3
151- rebuild with current VineSeed
152- use BR: texlive instead of tetex
153
154* Sun Nov 09 2008 Shu KONNO <owa@bg.wakwak.com> 5.0.2-2vl5
155- rebuild with libXaw.so.7 (libXaw-1.0.5)
156- spec in utf-8
157
158* Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 5.0.2-1vl5
159- applied new versioning policy
160- removed *.la
161- added BuildRequires: xorg-x11-devel libXpm-devel, instead of XFree86-devel xpm-devel
162
163* Sat Dec 24 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.0.2-0vl2
164- fixed spec file to build current environment
165- added %{epoch} related t1libs
166
167* Sat Jun 19 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.0.2-0vl1
168- updated to 5.0.2
169- changed Group:
170
171* Sun Mar 16 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0.0-0vl1
172- new upstream release 5.0.0
173
174* Fri May 31 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.3.1-5vl0
175- modified for Vine
176
177* Thu May 16 2002 Yves Duret <yduret@mandrakesoft.com> 1.3.1-5mdk
178- 9.0 lib policy: added %libname-static-devel
179
180* Wed Apr 17 2002 Yves Duret <yduret@mandrakesoft.com> 1.3.1-4mdk
181- use %%makeinstall_std
182- use %%buildroot
183- devel package provides %%version-%%release
184
185* Sat Feb 02 2002 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.3.1-3mdk
186- fixed multiple "install -d" (problem with {).
187
188* Mon Jan 21 2002 Yves Duret <yduret@mandrakesoft.com> 1.3.1-2mdk
189- use the freshmeat url
190
191* Sun Jan 13 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.3.1-1mdk
192- 1.3.1.
193- Remove the URL. There doesn't seem to be one for it.
194
195* Sun Oct 28 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.3-1mdk
196- The all new-and-shiny t1lib 1.3.
197
198* Wed Aug 15 2001 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.2-2mdk
199- removed .dvi.gz doc.
200- removed .ps docs and unneeded .eps files. All printable doc files
201  now replaced with only one PDF doc file.
202
203* Tue Aug 07 2001 Yves Duret <yduret@mandrakesoft.com> 1.2-1mdk
204- version 1.2
205- s{Serial}{Epoch} & s{Copyright}{License}
206- updated url & source
207- added Patch{0,1,2}
208- fix buildrequires
209- remove big, fussy and redundand pdf/ps doc (ghibo sux) :
210  size of devel rpm divided by more than 2 !
211
212* Wed May 23 2001 Yves Duret <yduret@mandrakesoft.com> 1.1.1-2mdk
213- more and more macros
214- s{Copyright}{License}
215
216* Sat May 05 2001 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.1.1-1mdk
217- updated to release 1.1.1 (bugfixes).
218
219* Tue Mar 13 2001 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.1.0-1mdk
220- updated to release 1.1.0.
221- gzip doc instead of bzip2.
222- removed docdir patch.
223
224* Wed Dec 27 2000 Yves Duret <yduret@mandrakesoft.com> 1.0.1-6mdk
225- added a obsoletes -devel tag.
226
227* Tue Dec 26 2000 Yves Duret <yduret@mandrakesoft.com> 1.0.1-5mdk
228- splitted into main deval and progs packages.
229- config file now in /etc as it should be
230- used bzip2 instead of gzip for doc
231- macros
232
233* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.0.1-4mdk
234- automatically added BuildRequires
235
236* Fri Jul 28 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-3mdk
237- BM + macroszification
238
239* Tue May 16 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.0.1-2mdk
240- Move .so from devel to package and add some links for alpha.
241
242* Sat Apr 01 2000 Giuseppe Ghibメ<ghibo@mandrakesoft.com> 1.0.1-1mdk
243- updated to version 1.0.1.
244- moved .so file to devel package.
245- exchanged package group between main and -devel packages.
246
247* Thu Mar 23 2000 Daouda Lo <daouda@mandrakesoft.com> 0.9.2-3mdk
248- fix group.
249
250* Thu Jan 13 2000 Pixel <pixel@mandrakesoft.com>
251- libtoolize --force.
252
253* Sat Oct 30 1999 Giuseppe Ghibメ<ghibo@linux-mandrake.com>
254- updated to version 0.9.2.
255
256* Thu Aug 12 1999 Giuseppe Ghibメ<ghibo@linux-mandrake.com>
257- added PostScript documentation.
258- split into main and devel package.
259
260* Sun Aug 1 1999 Richard D. Jackson <richardj@1gig.net>
261- first release of t1lib-0.9.1
Note: See TracBrowser for help on using the repository browser.