source: spec/trunk/SPECS/fontconfig.spec@ 1330

Last change on this file since 1330 was 1212, checked in by Silvan Scherrer, 8 years ago

spec: fontconfig: Release version 2.12.4-1.

File size: 5.9 KB
Line 
1# Note: this .spec is borrowed from git://pkgs.fedoraproject.org/rpms/fontconfig.git
2
3# OS/2 rpm macros don't define this (yet), do it manually:
4%global _fontconfig_masterdir %{_sysconfdir}/fonts
5%global _fontconfig_confdir %{_sysconfdir}/fonts/conf.d
6%global _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail
7
8%global freetype_version 2.1.4
9
10Summary: Font configuration and customization library
11Name: fontconfig
12Version: 2.12.4
13Release: 1%{?dist}
14# src/ftglue.[ch] is in Public Domain
15# src/fccache.c contains Public Domain code
16# fc-case/CaseFolding.txt is in the UCD
17# otherwise MIT
18License: MIT and Public Domain and UCD
19Group: System Environment/Libraries
20#Source: http://fontconfig.org/release/%{name}-%{version}.tar.bz2
21URL: http://fontconfig.org
22Vendor: bww bitwise works GmbH
23%scm_source svn http://svn.netlabs.org/repos/ports/fontconfig/trunk 2220
24
25Source1: 30-os2-unsupported.conf
26Source2: 80-os2-tnr-fix.conf
27
28BuildRequires: expat-devel
29BuildRequires: freetype-devel >= %{freetype_version}
30#BuildRequires: fontpackages-devel
31BuildRequires: autoconf automake libtool
32#BuildRequires: gperf
33
34#Requires: fontpackages-filesystem
35Requires: freetype
36Requires(pre): freetype
37Requires(post): grep coreutils
38#Requires: font(:lang=en)
39
40# @todo Temporary enforce dependency on the legacy package (that was previously named
41# fontconfig) to have it installed. This should be dropped at some point.
42Requires: fontconfig-legacy
43
44%description
45Fontconfig is designed to locate fonts within the
46system and select them according to requirements specified by
47applications.
48
49%package devel
50Summary: Font configuration and customization library
51Group: Development/Libraries
52Requires: %{name} = %{version}-%{release}
53Requires: freetype-devel >= %{freetype_version}
54Requires: pkgconfig
55
56%description devel
57The fontconfig-devel package includes the header files,
58and developer docs for the fontconfig package.
59
60Install fontconfig-devel if you want to develop programs which
61will use fontconfig.
62
63
64%package devel-doc
65Summary: Development Documentation files for fontconfig library
66Group: Documentation
67BuildArch: noarch
68Requires: %{name}-devel = %{version}-%{release}
69
70%description devel-doc
71The fontconfig-devel-doc package contains the documentation files
72which is useful for developing applications that uses fontconfig.
73
74%debug_package
75
76%prep
77%scm_setup
78
79# Generate configure and friends
80autoreconf -fvi
81
82%build
83# We don't want to rebuild the docs, but we want to install the included ones.
84export HASDOCBOOK=no
85export CFLAGS="%{optflags}"
86export LDFLAGS="-Zomf -Zhigh-mem"
87export LIBS="-lcx"
88export VENDOR="%{vendor}"
89
90%configure \
91 --with-add-fonts=%{_prefix}/local/share/fonts,%{_datadir}/fonts \
92 --disable-static
93
94make %{?_smp_mflags} V=1
95
96%install
97rm -rf "$RPM_BUILD_ROOT"
98make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
99
100find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
101
102# install OS/2-specific configs and activate them
103install -p -m 0644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/
104ln -s %{_fontconfig_templatedir}/30-os2-unsupported.conf $RPM_BUILD_ROOT%{_fontconfig_confdir}/
105ln -s %{_fontconfig_templatedir}/80-os2-tnr-fix.conf $RPM_BUILD_ROOT%{_fontconfig_confdir}/
106
107# move installed doc files back to build directory to package them
108# in the right place
109mv $RPM_BUILD_ROOT%{_docdir}/fontconfig/* .
110rmdir $RPM_BUILD_ROOT%{_docdir}/fontconfig/
111
112%check
113# @todo Some tests will fail if there is no working system config (upstream bug)
114if [ -f "%{_fontconfig_masterdir}/fonts.conf" ] ; then
115# this export is needed, as else the dll for the tests are not found
116export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/.libs
117#make check
118fi
119
120%post
121
122umask 0022
123
124mkdir -p %{_localstatedir}/cache/fontconfig
125
126# Force regeneration of all fontconfig cache files
127rm -rf %{_localstatedir}/cache/fontconfig/*
128BEGINLIBPATH="$(echo %{_libdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g');$BEGINLIBPATH" \
129LIBPATHSTRICT=T \
130%{_bindir}/fc-cache -f
131
132%postun
133
134#%transfiletriggerin -- %{_prefix}/local/share/fonts %{_datadir}/fonts
135#%{_bindir}/fc-cache -s
136
137#%transfiletriggerpostun -- %{_prefix}/local/share/fonts %{_datadir}/fonts
138#%{_bindir}/fc-cache -s
139
140%files
141%doc README AUTHORS
142%doc fontconfig-user.txt fontconfig-user.html
143%doc %{_fontconfig_confdir}/README
144%license COPYING
145%{_libdir}/fntcnf*.dll
146%{_bindir}/fc-cache.exe
147%{_bindir}/fc-cat.exe
148%{_bindir}/fc-list.exe
149%{_bindir}/fc-match.exe
150%{_bindir}/fc-pattern.exe
151%{_bindir}/fc-query.exe
152%{_bindir}/fc-scan.exe
153%{_bindir}/fc-validate.exe
154%{_fontconfig_templatedir}/*.conf
155%{_datadir}/xml/fontconfig
156# fonts.conf is not supposed to be modified.
157# If you want to do so, you should use local.conf instead.
158%config %{_fontconfig_masterdir}/fonts.conf
159%config(noreplace) %{_fontconfig_confdir}/*.conf
160%dir %{_localstatedir}/cache/fontconfig
161%{_mandir}/man1/*
162%{_mandir}/man5/*
163
164%files devel
165%{_libdir}/fontconfig*.a
166%{_libdir}/pkgconfig/*
167%{_includedir}/fontconfig
168%{_mandir}/man3/*
169
170%files devel-doc
171%doc fontconfig-devel.txt fontconfig-devel
172
173%changelog
174* Wed Aug 09 2017 Silvan Scherrer <silvan.scherrer@aroa.com> 2.12.4-1
175- Update to version 2.12.4.
176- use new scm_ macros
177- fixes ticket #168, #169
178
179* Fri Nov 25 2016 Silvan Scherrer <silvan.scherrer@aroa.com> 2.12.1-2
180- add buildlevel information to the dll
181
182* Tue Oct 25 2016 Silvan Scherrer <silvan.scherrer@aroa.com> 2.12.1-1
183- Update to version 2.12.1.
184
185* Sat Apr 23 2016 Dmitriy Kuminov <coding@dmik.org> 2.11.95-1
186- Update to version 2.11.95.
187- Fix selecting Type 1 fonts from OS/2 PM font registry.
188- Add aliases for system OS/2 fonts not reconginzed by FreeType
189 (this includes Tms Rmn, Helv and Times New Roman MT 30).
190- Remove trailing space from Times New Roman Type 1 system font.
191- Temporarily disable assertions that sometimes abort Firefox at exit.
192
193* Tue Mar 1 2016 Dmitriy Kuminov <coding@dmik.org> 2.11.94-2
194- Allow loading DLL into high memory.
195
196* Mon Dec 14 2015 Dmitriy Kuminov <coding@dmik.org> 2.11.94-1
197- Initial package for version 2.11.94.
Note: See TracBrowser for help on using the repository browser.