source: spec/trunk/SPECS/fontconfig-legacy.spec@ 1036

Last change on this file since 1036 was 614, checked in by dmik, 10 years ago

spec: fontconfig: Release 2.11.94-1.

Note that this also includes renaming of old (incomplete)
fontconfig 2.8.0 and below to fontconfig-legacy.

File size: 3.0 KB
Line 
1Summary: Font configuration and customization library
2Name: fontconfig-legacy
3Version: 2.11.94
4Release: 1%{?dist}
5# src/ftglue.[ch] is in Public Domain
6# src/fccache.c contains Public Domain code
7# fc-case/CaseFolding.txt is in the UCD
8# otherwise MIT
9License: MIT and Public Domain and UCD
10Group: System Environment/Libraries
11#Source: http://fontconfig.org/release/%{name}-%{version}.tar.bz2
12URL: http://fontconfig.org
13
14%define svn_url http://svn.netlabs.org/repos/ports/fontconfig_os2/trunk
15%define svn_rev 1188
16
17Source: %{name}-%{version}-r%{svn_rev}.zip
18
19BuildRequires: gcc make subversion zip
20
21BuildRequires: freetype-devel >= 2.5.3
22BuildRequires: kbuild
23
24Requires(pre): freetype
25
26# fontconfig-legacy used to be fontconfig before 2.11.94 (fontconfig is now a different
27# package containing the complete upstream version with a differnt DLL name).
28Obsoletes: fontconfig < 2.11.94
29
30%description
31Fontconfig is designed to locate fonts within the
32system and select them according to requirements specified by
33applications.
34
35%package devel
36Summary: Font configuration and customization library
37Group: Development/Libraries
38Requires: %{name} = %{version}-%{release}
39Requires: freetype-devel >= 2.5.3
40Requires: pkgconfig
41
42Obsoletes: fontconfig-devel < 2.11.94
43
44%description devel
45The fontconfig-devel package includes the header files,
46and developer docs for the fontconfig package.
47
48Install fontconfig-devel if you want to develop programs which
49will use fontconfig.
50
51%debug_package
52
53
54%prep
55%if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
56%setup -q
57%else
58%setup -n "%{name}-%{version}" -Tc
59svn export -r %{svn_rev} %{svn_url} . --force
60rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
61(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
62%endif
63
64
65%define kmk_env \
66 KMK_FLAGS="\
67 KBUILD_VERBOSE=2 \
68 BUILD_TYPE=release \
69 INST_PREFIX=%{_prefix}"
70
71
72%build
73
74%{kmk_env}
75
76cmd /c kmk $KMK_FLAGS
77
78
79%install
80%{kmk_env}
81
82rm -rf "%{buildroot}"
83
84cmd /c kmk $KMK_FLAGS DESTDIR="%{buildroot}" install
85
86
87%clean
88rm -rf "%{buildroot}"
89
90
91%files
92%defattr(-,root,root)
93#%doc README AUTHORS COPYING
94%{_libdir}/fntcfg2.dll
95
96
97%files devel
98%defattr(-,root,root)
99%{_libdir}/fontconfig*.lib
100%{_libdir}/pkgconfig/*
101%{_includedir}/fontconfig
102
103
104%changelog
105* Mon Dec 14 2015 Dmitriy Kuminov <coding@dmik.orgh> - 2.11.94-1
106- Import version 2.11.94 and add many new exports.
107- Complete support for many APIs (FcPattern*, FcStr*, FcLang*)
108 which makes this version much closer to original fontconfig.
109- Hard-code substitution of WarpSans with Workplace Sans.
110- Makefiles cleanup.
111- Rename package from fontconfig to fontconfig-legacy due to the OS/2
112 release of the full version of the original fontconfig library.
113
114* Wed Oct 28 2014 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.8.0-2
115- build with svn source now
116
117* Mon Oct 6 2014 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.8.0-1
118- first public version
Note: See TracBrowser for help on using the repository browser.