| 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 |
|
|---|
| 10 | Summary: Font configuration and customization library
|
|---|
| 11 | Name: fontconfig
|
|---|
| 12 | Version: 2.12.4
|
|---|
| 13 | Release: 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
|
|---|
| 18 | License: MIT and Public Domain and UCD
|
|---|
| 19 | Group: System Environment/Libraries
|
|---|
| 20 | #Source: http://fontconfig.org/release/%{name}-%{version}.tar.bz2
|
|---|
| 21 | URL: http://fontconfig.org
|
|---|
| 22 | Vendor: bww bitwise works GmbH
|
|---|
| 23 | %scm_source svn http://svn.netlabs.org/repos/ports/fontconfig/trunk 2220
|
|---|
| 24 |
|
|---|
| 25 | Source1: 30-os2-unsupported.conf
|
|---|
| 26 | Source2: 80-os2-tnr-fix.conf
|
|---|
| 27 |
|
|---|
| 28 | BuildRequires: expat-devel
|
|---|
| 29 | BuildRequires: freetype-devel >= %{freetype_version}
|
|---|
| 30 | #BuildRequires: fontpackages-devel
|
|---|
| 31 | BuildRequires: autoconf automake libtool
|
|---|
| 32 | #BuildRequires: gperf
|
|---|
| 33 |
|
|---|
| 34 | #Requires: fontpackages-filesystem
|
|---|
| 35 | Requires: freetype
|
|---|
| 36 | Requires(pre): freetype
|
|---|
| 37 | Requires(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.
|
|---|
| 42 | Requires: fontconfig-legacy
|
|---|
| 43 |
|
|---|
| 44 | %description
|
|---|
| 45 | Fontconfig is designed to locate fonts within the
|
|---|
| 46 | system and select them according to requirements specified by
|
|---|
| 47 | applications.
|
|---|
| 48 |
|
|---|
| 49 | %package devel
|
|---|
| 50 | Summary: Font configuration and customization library
|
|---|
| 51 | Group: Development/Libraries
|
|---|
| 52 | Requires: %{name} = %{version}-%{release}
|
|---|
| 53 | Requires: freetype-devel >= %{freetype_version}
|
|---|
| 54 | Requires: pkgconfig
|
|---|
| 55 |
|
|---|
| 56 | %description devel
|
|---|
| 57 | The fontconfig-devel package includes the header files,
|
|---|
| 58 | and developer docs for the fontconfig package.
|
|---|
| 59 |
|
|---|
| 60 | Install fontconfig-devel if you want to develop programs which
|
|---|
| 61 | will use fontconfig.
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | %package devel-doc
|
|---|
| 65 | Summary: Development Documentation files for fontconfig library
|
|---|
| 66 | Group: Documentation
|
|---|
| 67 | BuildArch: noarch
|
|---|
| 68 | Requires: %{name}-devel = %{version}-%{release}
|
|---|
| 69 |
|
|---|
| 70 | %description devel-doc
|
|---|
| 71 | The fontconfig-devel-doc package contains the documentation files
|
|---|
| 72 | which is useful for developing applications that uses fontconfig.
|
|---|
| 73 |
|
|---|
| 74 | %debug_package
|
|---|
| 75 |
|
|---|
| 76 | %prep
|
|---|
| 77 | %scm_setup
|
|---|
| 78 |
|
|---|
| 79 | # Generate configure and friends
|
|---|
| 80 | autoreconf -fvi
|
|---|
| 81 |
|
|---|
| 82 | %build
|
|---|
| 83 | # We don't want to rebuild the docs, but we want to install the included ones.
|
|---|
| 84 | export HASDOCBOOK=no
|
|---|
| 85 | export CFLAGS="%{optflags}"
|
|---|
| 86 | export LDFLAGS="-Zomf -Zhigh-mem"
|
|---|
| 87 | export LIBS="-lcx"
|
|---|
| 88 | export VENDOR="%{vendor}"
|
|---|
| 89 |
|
|---|
| 90 | %configure \
|
|---|
| 91 | --with-add-fonts=%{_prefix}/local/share/fonts,%{_datadir}/fonts \
|
|---|
| 92 | --disable-static
|
|---|
| 93 |
|
|---|
| 94 | make %{?_smp_mflags} V=1
|
|---|
| 95 |
|
|---|
| 96 | %install
|
|---|
| 97 | rm -rf "$RPM_BUILD_ROOT"
|
|---|
| 98 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|---|
| 99 |
|
|---|
| 100 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|---|
| 101 |
|
|---|
| 102 | # install OS/2-specific configs and activate them
|
|---|
| 103 | install -p -m 0644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/
|
|---|
| 104 | ln -s %{_fontconfig_templatedir}/30-os2-unsupported.conf $RPM_BUILD_ROOT%{_fontconfig_confdir}/
|
|---|
| 105 | ln -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
|
|---|
| 109 | mv $RPM_BUILD_ROOT%{_docdir}/fontconfig/* .
|
|---|
| 110 | rmdir $RPM_BUILD_ROOT%{_docdir}/fontconfig/
|
|---|
| 111 |
|
|---|
| 112 | %check
|
|---|
| 113 | # @todo Some tests will fail if there is no working system config (upstream bug)
|
|---|
| 114 | if [ -f "%{_fontconfig_masterdir}/fonts.conf" ] ; then
|
|---|
| 115 | # this export is needed, as else the dll for the tests are not found
|
|---|
| 116 | export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/.libs
|
|---|
| 117 | #make check
|
|---|
| 118 | fi
|
|---|
| 119 |
|
|---|
| 120 | %post
|
|---|
| 121 |
|
|---|
| 122 | umask 0022
|
|---|
| 123 |
|
|---|
| 124 | mkdir -p %{_localstatedir}/cache/fontconfig
|
|---|
| 125 |
|
|---|
| 126 | # Force regeneration of all fontconfig cache files
|
|---|
| 127 | rm -rf %{_localstatedir}/cache/fontconfig/*
|
|---|
| 128 | BEGINLIBPATH="$(echo %{_libdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g');$BEGINLIBPATH" \
|
|---|
| 129 | LIBPATHSTRICT=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.
|
|---|