X-Git-Url: https://git.wh0rd.org/?p=fontconfig.git;a=blobdiff_plain;f=fontconfig.spec.in;h=90373527c8f199d9dcf14087f5288b84f412082f;hp=718198fb4181dcd33f9676e0d8a9eea710648e4d;hb=HEAD;hpb=20fa60c9ae5923487c80ef0449e869a30a8ddc19 diff --git a/fontconfig.spec.in b/fontconfig.spec.in index 718198f..9037352 100644 --- a/fontconfig.spec.in +++ b/fontconfig.spec.in @@ -1,74 +1,138 @@ -Summary: System for configuring and customizing font access +# Some distributions name their Freetype 2 package "freetype", while others +# name it "freetype2". You can define the name your distribution uses here. +%define freetype2 freetype + +Summary: Font configuration and customization library Name: fontconfig Version: @VERSION@ Release: 1 License: MIT Group: System Environment/Libraries -Source: http://fontconfig.org/fontconfig.tar.gz -BuildRoot: /var/tmp/%{name}-%{version}-root -Requires: freetype2 -BuildRequires: freetype2-devel +Source: http://fontconfig.org/release/fontconfig-%{version}.tar.gz +URL: http://fontconfig.org +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +BuildRequires: %{_bindir}/docbook2html +BuildRequires: %{_bindir}/docbook2txt +BuildRequires: %{freetype2}-devel +BuildRequires: expat-devel +BuildRequires: perl + +PreReq: %{freetype2} %description -System for layout and rendering of internationalized text. +Fontconfig is designed to locate fonts within the +system and select them according to requirements specified by +applications. %package devel -Summary: System for layout and rendering of internationalized text +Summary: Font configuration and customization library Group: Development/Libraries Requires: %{name} = %{version} -Requires: freetype2-devel +Requires: %{freetype2}-devel %description devel -The fontconfig-devel package includes the static libraries and header files -for the fontconfig package. +The fontconfig-devel package includes the static libraries, +header files, and developer docs for the fontconfig package. + +Install fontconfig-devel if you want to develop programs which +will use fontconfig. -Install fontconfig-devel if you want to develop programs which will use -fontconfig. +# Some rpm specific directories. Prefix 'my' hopefully does not collide with anything. +%define my_docdir %{_datadir}/doc/%{name}-%{version} +%define my_develdocdir %{_datadir}/doc/%{name}-devel-%{version} +%define my_tmpdocdir $RPM_BUILD_ROOT%{my_docdir} +%define my_tmpdeveldocdir $RPM_BUILD_ROOT%{my_develdocdir} %prep -%setup +%setup -q %build -CFLAGS="$RPM_OPT_FLAGS" -./configure --prefix=%{_prefix} \ - --bindir=%{_bindir} --mandir=%{_mandir} \ - --localstatedir=%{_localstatedir} --libdir=%{_libdir} \ - --datadir=%{_datadir} --includedir=%{_includedir} \ - --sysconfdir=%{_sysconfdir} --disable-gtk-doc -make +%configure --with-x-fonts=/usr/X11R6/lib/X11/fonts --disable-gtk-doc \ + --with-docdir=%{my_docdir} +make %{_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +{ + %makeinstall docdir=%{my_tmpdocdir} -make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \ - mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \ - localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \ - datadir=$RPM_BUILD_ROOT%{_datadir} \ - includedir=$RPM_BUILD_ROOT%{_includedir} \ - sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install + # The make does not distinguish the base and devel packages + mkdir -p %{my_tmpdeveldocdir} + mv -f %{my_tmpdocdir}/*devel* %{my_tmpdeveldocdir} + + # Use a more informative directory name: + mv -f %{my_tmpdeveldocdir}/fontconfig-devel %{my_tmpdeveldocdir}/html +} %clean -rm -rf $RPM_BUILD_ROOT +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post -/sbin/ldconfig +{ + /sbin/ldconfig + # Force regeneration of all fontconfig cache files. + %{_bindir}/fc-cache -f --system-only +} %postun -p /sbin/ldconfig %files -%doc README AUTHORS COPYING ChangeLog TODO -%{_libdir}/libfontconfig*.so -%{_bindir}/fc-* -%{_libdir}/pango -%config %{_sysconfdir}/fonts/fonts.conf -%config %{_sysconfdir}/fonts/fonts.dtd +%defattr(-, root, root) +%doc README AUTHORS COPYING ChangeLog doc/fontconfig-user.{html,txt} +%{my_docdir}/* +%dir %{_sysconfdir}/fonts +%{_sysconfdir}/fonts/fonts.conf +%{_sysconfdir}/fonts/fonts.dtd %config %{_sysconfdir}/fonts/local.conf +%{_bindir}/fc-* +%{_libdir}/libfontconfig*.so.* +%{_mandir}/man1/* +%{_mandir}/man5/* %files devel %defattr(-, root, root) -%{_libdir}/libfontconfig*.so -%{_libdir}/*a -%{_libdir}/pkgconfig/*.pc -%{_includedir}/fontconfig +#%doc doc/fontconfig-devel.txt doc/fontconfig-devel/* +%{my_develdocdir} +%dir %{_includedir}/fontconfig +%{_includedir}/fontconfig/* +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/libfontconfig.so +%{_libdir}/pkgconfig +%{_mandir}/man3/* %changelog +* Wed Mar 20 2004 Enrique Perez-Terron +- Added mandir /man1/* to main file list +- Added missing '/*' after includedir/fontconfig to avoid "listed twice" error. +- Removed configure option --disable-docs since its problem is solved, see below. +- Added option to makeinstall to have it install docs in the proper directory. + Notice though that the %doc macro deletes and recreates the docs directory. +- Cleaner separation of devel docs. +- Renamed doc/fontconfig-devel-*/fontconfig-devel subdirectory to 'html'. +- Removed %doc macro from devel filelist, since it deletes installed files. + +* Fri Mar 7 2003 Mike A. Harris 2.1.92-1 +- Removed man1/* and added man5/* to main package and man3/* to devel package +- Added missing defattr(-, root, root) to main package +- Added HTML and text development documentation to -devel subpackage + +* Wed Mar 5 2003 Mike A. Harris +- Added back the configure macro options --disable-docs because otherwise + fontconfig installs docs into /usr/share/doc/fontconfig (with no version + number) unconditionally, causing RPM to fail the build due to unpackaged + files terminate build + +* Wed Mar 5 2003 Mike A. Harris +- Removed commented out rpm macro define at top of spec file, replacing it with + a simple explanation, since rpm macros are expanded by rpm even in comments +- Changed /usr/bin to _bindir in BuildRequires lines +- Cleaned up rpm postinstall script, and made fc-cache use _bindir +- Reorganized file manifest lists + +* Sun Mar 2 2003 Owen Taylor +- Various improvements from Red Hat spec file + +* Sun Mar 2 2003 Mike A. Harris +- Initial changelog entry