]> git.wh0rd.org - fontconfig.git/blame_incremental - fontconfig.spec.in
Bug 44826 - <alias> must contain only a single <family>
[fontconfig.git] / fontconfig.spec.in
... / ...
CommitLineData
1# Some distributions name their Freetype 2 package "freetype", while others
2# name it "freetype2". You can define the name your distribution uses here.
3%define freetype2 freetype
4
5Summary: Font configuration and customization library
6Name: fontconfig
7Version: @VERSION@
8Release: 1
9License: MIT
10Group: System Environment/Libraries
11Source: http://fontconfig.org/release/fontconfig-%{version}.tar.gz
12URL: http://fontconfig.org
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14
15BuildRequires: %{_bindir}/docbook2html
16BuildRequires: %{_bindir}/docbook2txt
17BuildRequires: %{freetype2}-devel
18BuildRequires: expat-devel
19BuildRequires: perl
20
21PreReq: %{freetype2}
22
23%description
24Fontconfig is designed to locate fonts within the
25system and select them according to requirements specified by
26applications.
27
28%package devel
29Summary: Font configuration and customization library
30Group: Development/Libraries
31Requires: %{name} = %{version}
32Requires: %{freetype2}-devel
33
34%description devel
35The fontconfig-devel package includes the static libraries,
36header files, and developer docs for the fontconfig package.
37
38Install fontconfig-devel if you want to develop programs which
39will use fontconfig.
40
41# Some rpm specific directories. Prefix 'my' hopefully does not collide with anything.
42%define my_docdir %{_datadir}/doc/%{name}-%{version}
43%define my_develdocdir %{_datadir}/doc/%{name}-devel-%{version}
44%define my_tmpdocdir $RPM_BUILD_ROOT%{my_docdir}
45%define my_tmpdeveldocdir $RPM_BUILD_ROOT%{my_develdocdir}
46
47%prep
48%setup -q
49
50%build
51%configure --with-x-fonts=/usr/X11R6/lib/X11/fonts --disable-gtk-doc \
52 --with-docdir=%{my_docdir}
53make %{_smp_mflags}
54
55%install
56[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
57{
58 %makeinstall docdir=%{my_tmpdocdir}
59
60 # The make does not distinguish the base and devel packages
61 mkdir -p %{my_tmpdeveldocdir}
62 mv -f %{my_tmpdocdir}/*devel* %{my_tmpdeveldocdir}
63
64 # Use a more informative directory name:
65 mv -f %{my_tmpdeveldocdir}/fontconfig-devel %{my_tmpdeveldocdir}/html
66}
67
68%clean
69[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
70
71%post
72{
73 /sbin/ldconfig
74 # Force regeneration of all fontconfig cache files.
75 %{_bindir}/fc-cache -f --system-only
76}
77
78%postun -p /sbin/ldconfig
79
80%files
81%defattr(-, root, root)
82%doc README AUTHORS COPYING ChangeLog doc/fontconfig-user.{html,txt}
83%{my_docdir}/*
84%dir %{_sysconfdir}/fonts
85%{_sysconfdir}/fonts/fonts.conf
86%{_sysconfdir}/fonts/fonts.dtd
87%config %{_sysconfdir}/fonts/local.conf
88%{_bindir}/fc-*
89%{_libdir}/libfontconfig*.so.*
90%{_mandir}/man1/*
91%{_mandir}/man5/*
92
93%files devel
94%defattr(-, root, root)
95#%doc doc/fontconfig-devel.txt doc/fontconfig-devel/*
96%{my_develdocdir}
97%dir %{_includedir}/fontconfig
98%{_includedir}/fontconfig/*
99%{_libdir}/*.a
100%{_libdir}/*.la
101%{_libdir}/libfontconfig.so
102%{_libdir}/pkgconfig
103%{_mandir}/man3/*
104
105%changelog
106* Wed Mar 20 2004 Enrique Perez-Terron <enrio@online.no>
107- Added mandir /man1/* to main file list
108- Added missing '/*' after includedir/fontconfig to avoid "listed twice" error.
109- Removed configure option --disable-docs since its problem is solved, see below.
110- Added option to makeinstall to have it install docs in the proper directory.
111 Notice though that the %doc macro deletes and recreates the docs directory.
112- Cleaner separation of devel docs.
113- Renamed doc/fontconfig-devel-*/fontconfig-devel subdirectory to 'html'.
114- Removed %doc macro from devel filelist, since it deletes installed files.
115
116* Fri Mar 7 2003 Mike A. Harris <mharris@redhat.com> 2.1.92-1
117- Removed man1/* and added man5/* to main package and man3/* to devel package
118- Added missing defattr(-, root, root) to main package
119- Added HTML and text development documentation to -devel subpackage
120
121* Wed Mar 5 2003 Mike A. Harris <mharris@redhat.com>
122- Added back the configure macro options --disable-docs because otherwise
123 fontconfig installs docs into /usr/share/doc/fontconfig (with no version
124 number) unconditionally, causing RPM to fail the build due to unpackaged
125 files terminate build
126
127* Wed Mar 5 2003 Mike A. Harris <mharris@redhat.com>
128- Removed commented out rpm macro define at top of spec file, replacing it with
129 a simple explanation, since rpm macros are expanded by rpm even in comments
130- Changed /usr/bin to _bindir in BuildRequires lines
131- Cleaned up rpm postinstall script, and made fc-cache use _bindir
132- Reorganized file manifest lists
133
134* Sun Mar 2 2003 Owen Taylor <otaylor@redhat.com>
135- Various improvements from Red Hat spec file
136
137* Sun Mar 2 2003 Mike A. Harris <mharris@redhat.com>
138- Initial changelog entry