| 1 | Summary: Font configuration and customization library
|
|---|
| 2 | Name: fontconfig-legacy
|
|---|
| 3 | Version: 2.11.94
|
|---|
| 4 | Release: 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
|
|---|
| 9 | License: MIT and Public Domain and UCD
|
|---|
| 10 | Group: System Environment/Libraries
|
|---|
| 11 | #Source: http://fontconfig.org/release/%{name}-%{version}.tar.bz2
|
|---|
| 12 | URL: http://fontconfig.org
|
|---|
| 13 |
|
|---|
| 14 | %define svn_url http://svn.netlabs.org/repos/ports/fontconfig_os2/trunk
|
|---|
| 15 | %define svn_rev 1188
|
|---|
| 16 |
|
|---|
| 17 | Source: %{name}-%{version}-r%{svn_rev}.zip
|
|---|
| 18 |
|
|---|
| 19 | BuildRequires: gcc make subversion zip
|
|---|
| 20 |
|
|---|
| 21 | BuildRequires: freetype-devel >= 2.5.3
|
|---|
| 22 | BuildRequires: kbuild
|
|---|
| 23 |
|
|---|
| 24 | Requires(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).
|
|---|
| 28 | Obsoletes: fontconfig < 2.11.94
|
|---|
| 29 |
|
|---|
| 30 | %description
|
|---|
| 31 | Fontconfig is designed to locate fonts within the
|
|---|
| 32 | system and select them according to requirements specified by
|
|---|
| 33 | applications.
|
|---|
| 34 |
|
|---|
| 35 | %package devel
|
|---|
| 36 | Summary: Font configuration and customization library
|
|---|
| 37 | Group: Development/Libraries
|
|---|
| 38 | Requires: %{name} = %{version}-%{release}
|
|---|
| 39 | Requires: freetype-devel >= 2.5.3
|
|---|
| 40 | Requires: pkgconfig
|
|---|
| 41 |
|
|---|
| 42 | Obsoletes: fontconfig-devel < 2.11.94
|
|---|
| 43 |
|
|---|
| 44 | %description devel
|
|---|
| 45 | The fontconfig-devel package includes the header files,
|
|---|
| 46 | and developer docs for the fontconfig package.
|
|---|
| 47 |
|
|---|
| 48 | Install fontconfig-devel if you want to develop programs which
|
|---|
| 49 | will 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
|
|---|
| 59 | svn export -r %{svn_rev} %{svn_url} . --force
|
|---|
| 60 | rm -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 |
|
|---|
| 76 | cmd /c kmk $KMK_FLAGS
|
|---|
| 77 |
|
|---|
| 78 |
|
|---|
| 79 | %install
|
|---|
| 80 | %{kmk_env}
|
|---|
| 81 |
|
|---|
| 82 | rm -rf "%{buildroot}"
|
|---|
| 83 |
|
|---|
| 84 | cmd /c kmk $KMK_FLAGS DESTDIR="%{buildroot}" install
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 | %clean
|
|---|
| 88 | rm -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
|
|---|