71e2334
%{?mingw_package_header}
a18bbbc
ca42916
Name:           mingw-fontconfig
412811d
Version:        2.14.2
e35c6c8
Release:        2%{?dist}
a18bbbc
Summary:        MinGW Windows Fontconfig library
a18bbbc
a18bbbc
License:        MIT
a18bbbc
URL:            http://fontconfig.org
b170d62
Source0:        http://fontconfig.org/release/fontconfig-%{version}.tar.xz
a18bbbc
7768e15
# Allow disabling tests (do not build)
7768e15
Patch0:         fontconfig_tests.patch
7768e15
a18bbbc
BuildArch:      noarch
a18bbbc
d90e9c2
BuildRequires: make
67fcca8
BuildRequires:  mingw32-filesystem >= 95
a18bbbc
BuildRequires:  mingw32-gcc
a18bbbc
BuildRequires:  mingw32-binutils
a18bbbc
BuildRequires:  mingw32-expat
a18bbbc
BuildRequires:  mingw32-freetype
07a567a
BuildRequires:  mingw32-win-iconv
a18bbbc
67fcca8
BuildRequires:  mingw64-filesystem >= 95
67fcca8
BuildRequires:  mingw64-gcc
67fcca8
BuildRequires:  mingw64-binutils
67fcca8
BuildRequires:  mingw64-expat
67fcca8
BuildRequires:  mingw64-freetype
67fcca8
BuildRequires:  mingw64-win-iconv
67fcca8
8db2bc3
BuildRequires:  gperf
67fcca8
BuildRequires:  pkgconfig
a179b81
BuildRequires:  python3
a18bbbc
47f3b67
BuildRequires:  automake autoconf libtool gettext-devel
7768e15
a18bbbc
a18bbbc
%description
a18bbbc
MinGW Windows Fontconfig library.
a18bbbc
a18bbbc
67fcca8
# Win32
ca42916
%package -n mingw32-fontconfig
67fcca8
Summary:        MinGW Windows Fontconfig library
67fcca8
Requires:       pkgconfig
ca42916
ca42916
%description -n mingw32-fontconfig
ca42916
MinGW Windows Fontconfig library.
ca42916
67fcca8
%package -n mingw32-fontconfig-static
67fcca8
Summary:       Static version of the cross compiled Fontconfig library
67fcca8
Requires:      mingw32-fontconfig = %{version}-%{release}
67fcca8
67fcca8
%description -n mingw32-fontconfig-static
67fcca8
Static version of the cross compiled Fontconfig library.
67fcca8
67fcca8
# Win64
67fcca8
%package -n mingw64-fontconfig
67fcca8
Summary:        MinGW Windows Fontconfig library
67fcca8
Requires:       pkgconfig
ca42916
67fcca8
%description -n mingw64-fontconfig
67fcca8
MinGW Windows Fontconfig library.
67fcca8
67fcca8
%package -n mingw64-fontconfig-static
67fcca8
Summary:       Static version of the cross compiled Fontconfig library
67fcca8
Requires:      mingw64-fontconfig = %{version}-%{release}
67fcca8
67fcca8
%description -n mingw64-fontconfig-static
67fcca8
Static version of the cross compiled Fontconfig library.
67fcca8
67fcca8
67fcca8
%?mingw_debug_package
Kalev Lember 23f6c9b
Kalev Lember 23f6c9b
a18bbbc
%prep
7768e15
%autosetup -p1 -n fontconfig-%{version}
86f3702
a18bbbc
a18bbbc
%build
67fcca8
export MINGW32_CONFIGURE_ARGS="--with-arch=i686"
67fcca8
export MINGW64_CONFIGURE_ARGS="--with-arch=x86_64"
7768e15
autoreconf -ifv
7768e15
%mingw_configure --disable-docs --disable-tests --enable-static --enable-shared
1ca7a91
%mingw_make_build
a18bbbc
a18bbbc
a18bbbc
%install
1ca7a91
%mingw_make_install
a18bbbc
7768e15
rm -f %{buildroot}/%{mingw32_libdir}/charset.alias
7768e15
rm -f %{buildroot}/%{mingw64_libdir}/charset.alias
a18bbbc
67fcca8
# Remove the .def file
7768e15
rm -f %{buildroot}%{mingw32_libdir}/fontconfig.def
7768e15
rm -f %{buildroot}%{mingw64_libdir}/fontconfig.def
a18bbbc
2ddcad2
# Remove .la files
7768e15
rm -f %{buildroot}%{mingw32_libdir}/*.la
7768e15
rm -f %{buildroot}%{mingw64_libdir}/*.la
2ddcad2
67fcca8
# Remove duplicate manpages.
7768e15
rm -rf %{buildroot}%{mingw32_mandir}
7768e15
rm -rf %{buildroot}%{mingw64_mandir}
67fcca8
67fcca8
# Remove the docs
7768e15
rm -rf %{buildroot}%{mingw32_datadir}/doc
7768e15
rm -rf %{buildroot}%{mingw64_datadir}/doc
7768e15
a18bbbc
67fcca8
# Win32
47f3b67
%files -n mingw32-fontconfig
095f752
%license COPYING
c6736b3
%{mingw32_bindir}/fc-cache.exe
c6736b3
%{mingw32_bindir}/fc-cat.exe
7768e15
%{mingw32_bindir}/fc-conflist.exe
c6736b3
%{mingw32_bindir}/fc-list.exe
c6736b3
%{mingw32_bindir}/fc-match.exe
71e2334
%{mingw32_bindir}/fc-pattern.exe
c6736b3
%{mingw32_bindir}/fc-query.exe
c6736b3
%{mingw32_bindir}/fc-scan.exe
4f06829
%{mingw32_bindir}/fc-validate.exe
c6736b3
%{mingw32_bindir}/libfontconfig-1.dll
c6736b3
%{mingw32_libdir}/libfontconfig.dll.a
c6736b3
%{mingw32_libdir}/pkgconfig/fontconfig.pc
c6736b3
%{mingw32_includedir}/fontconfig/
c6736b3
%{mingw32_sysconfdir}/fonts/
85651b8
%{mingw32_datadir}/fontconfig/
7768e15
%dir %{mingw32_datadir}/gettext
7768e15
%dir %{mingw32_datadir}/gettext/its
7768e15
%{mingw32_datadir}/gettext/its/fontconfig.its
7768e15
%{mingw32_datadir}/gettext/its/fontconfig.loc
85651b8
%{mingw32_datadir}/xml/fontconfig/
a18bbbc
67fcca8
%files -n mingw32-fontconfig-static
67fcca8
%{mingw32_libdir}/libfontconfig.a
67fcca8
67fcca8
# Win64
47f3b67
%files -n mingw64-fontconfig
095f752
%license COPYING
67fcca8
%{mingw64_bindir}/fc-cache.exe
67fcca8
%{mingw64_bindir}/fc-cat.exe
7768e15
%{mingw64_bindir}/fc-conflist.exe
67fcca8
%{mingw64_bindir}/fc-list.exe
67fcca8
%{mingw64_bindir}/fc-match.exe
71e2334
%{mingw64_bindir}/fc-pattern.exe
67fcca8
%{mingw64_bindir}/fc-query.exe
67fcca8
%{mingw64_bindir}/fc-scan.exe
4f06829
%{mingw64_bindir}/fc-validate.exe
67fcca8
%{mingw64_bindir}/libfontconfig-1.dll
67fcca8
%{mingw64_libdir}/libfontconfig.dll.a
67fcca8
%{mingw64_libdir}/pkgconfig/fontconfig.pc
67fcca8
%{mingw64_includedir}/fontconfig/
67fcca8
%{mingw64_sysconfdir}/fonts/
85651b8
%{mingw64_datadir}/fontconfig/
7768e15
%dir %{mingw64_datadir}/gettext
7768e15
%dir %{mingw64_datadir}/gettext/its
7768e15
%{mingw64_datadir}/gettext/its/fontconfig.its
7768e15
%{mingw64_datadir}/gettext/its/fontconfig.loc
85651b8
%{mingw64_datadir}/xml/fontconfig/
67fcca8
67fcca8
%files -n mingw64-fontconfig-static
67fcca8
%{mingw64_libdir}/libfontconfig.a
67fcca8
67fcca8
a18bbbc
%changelog
e35c6c8
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.2-2
e35c6c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
e35c6c8
412811d
* Sat Jan 28 2023 Sandro Mani <manisandro@gmail.com> - 2.14.2-1
412811d
- Update to 2.14.2
412811d
e0406f1
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.1-2
e0406f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
e0406f1
e83e3bf
* Sun Oct 30 2022 Sandro Mani <manisandro@gmail.com> - 2.14.1-1
e83e3bf
- Update to 2.14.1
e83e3bf
0ee6c90
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.0-2
0ee6c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0ee6c90
b170d62
* Wed Apr 06 2022 Sandro Mani <manisandro@gmail.com> - 2.14.0-1
b170d62
- Update to 2.14.0
b170d62
d2836bd
* Fri Mar 25 2022 Sandro Mani <manisandro@gmail.com> - 2.13.1-8
d2836bd
- Rebuild with mingw-gcc-12
d2836bd
2d507ec
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.1-7
2d507ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2d507ec
30015e3
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.1-6
30015e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
30015e3
9ed7b88
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.1-5
9ed7b88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9ed7b88
78eeb0d
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.1-4
78eeb0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
78eeb0d
bd9d874
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.1-3
bd9d874
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bd9d874
d15ef8a
* Tue Oct 08 2019 Sandro Mani <manisandro@gmail.com> - 2.13.1-2
d15ef8a
- Rebuild (Changes/Mingw32GccDwarf2)
d15ef8a
7768e15
* Wed Aug 28 2019 Sandro Mani <manisandro@gmail.com> - 2.13.1-1
7768e15
- Update to 2.13.1
7768e15
c506307
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.6-5
c506307
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c506307
c9eae7e
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.6-4
c9eae7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c9eae7e
9a02a49
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.6-3
9a02a49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9a02a49
3aa8ec2
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.6-2
3aa8ec2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3aa8ec2
d502771
* Sun Oct 15 2017 Kalev Lember <klember@redhat.com> - 2.12.6-1
d502771
- Update to 2.12.6
d502771
525e302
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.1-3
525e302
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
525e302
3708d3f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.1-2
3708d3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3708d3f
c671b0c
* Mon Sep 05 2016 Kalev Lember <klember@redhat.com> - 2.12.1-1
c671b0c
- Update to 2.12.1
f3fe14f
- Don't set group tags
c671b0c
a179b81
* Sat May 07 2016 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.11.95-1
a179b81
- Update to 2.11.95
a179b81
- Add BuildRequires: python3 to fix FTBFS
a179b81
66c7619
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.94-2
66c7619
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
66c7619
1da57d2
* Sun Aug 23 2015 Kalev Lember <klember@redhat.com> - 2.11.94-1
1da57d2
- Update to 2.11.94
095f752
- Use license macro for COPYING files
1da57d2
131bbe3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11.1-3
131bbe3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
131bbe3
ad2d14b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11.1-2
ad2d14b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ad2d14b
86f3702
* Thu May 29 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.11.1-1
86f3702
- Update to 2.11.1
86f3702
332b9f4
* Wed Nov 20 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.11.0-1
332b9f4
- Update to 2.11.0
332b9f4
e2634ed
* Sat Sep  7 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.10.95-1
e2634ed
- Update to 2.10.95
e2634ed
3535196
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.93-3
3535196
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3535196
605a3aa
* Sun Jul 21 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.10.93-2
605a3aa
- Rebuild to avoid strnlen dependency which causes runtime issues on Windows XP
605a3aa
5dbaa33
* Sat Jun 15 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.10.93-1
5dbaa33
- Update to 2.10.93
5dbaa33
75b1b84
* Sat May  4 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.10.92-1
75b1b84
- Update to 2.10.92
75b1b84
b96e835
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.91-2
b96e835
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b96e835
4f06829
* Wed Jan 16 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.10.91-1
4f06829
- Update to 2.10.91 (required by pango 1.32.6)
4f06829
a04e777
* Sat Oct 13 2012 Nicola Fontana <ntd@entidi.it> - 2.10.1-2
a04e777
- Dropped libxml2 dependency
a04e777
85651b8
* Sun Oct 07 2012 Kalev Lember <kalevlember@gmail.com> - 2.10.1-1
85651b8
- Update to 2.10.1
85651b8
30cda6e
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.0-2
30cda6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
30cda6e
71e2334
* Sun Jun 03 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.9.0-1
71e2334
- Update to 2.9.0
71e2334
- Dropped the autoreconf call
71e2334
67fcca8
* Sun Mar 11 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.8.0-7
67fcca8
- Added win64 support
67fcca8
- Added static subpackage
67fcca8
- Dropped .def files
67fcca8
2ddcad2
* Fri Mar 09 2012 Kalev Lember <kalevlember@gmail.com> - 2.8.0-6
2ddcad2
- Remove .la files
2ddcad2
ca42916
* Tue Mar 06 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.8.0-5
ca42916
- Renamed the source package to mingw-fontconfig (RHBZ #800379)
c6736b3
- Use mingw macros without leading underscore
ca42916
93b871a
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.8.0-4
93b871a
- Rebuild against the mingw-w64 toolchain
93b871a
8bebd79
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-3
8bebd79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8bebd79
07a567a
* Wed Jul 06 2011 Kalev Lember <kalevlember@gmail.com> - 2.8.0-2
07a567a
- Rebuilt against win-iconv
07a567a
Kalev Lember e90b98e
* Mon May 23 2011 Kalev Lember <kalev@smartlink.ee> - 2.8.0-1
Kalev Lember e90b98e
- Update to 2.8.0
Kalev Lember f36489a
- Spec cleanup
Kalev Lember 23f6c9b
- Split debug symbols in -debuginfo subpackage
Kalev Lember e90b98e
Kalev Lember 4e01e6e
* Mon May 23 2011 Kalev Lember <kalev@smartlink.ee> - 2.6.0-12
Kalev Lember 4e01e6e
- Don't install html documentation which duplicates what is in Fedora native
Kalev Lember 4e01e6e
b65c81c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-11
b65c81c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b65c81c
e040db8
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-10
e040db8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e040db8
a18bbbc
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-9
a18bbbc
- Rebuild for mingw32-gcc 4.4
a18bbbc
a18bbbc
* Fri Feb  6 2009 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-8
a18bbbc
- Include license.
a18bbbc
a18bbbc
* Fri Jan 30 2009 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-7
a18bbbc
- Requires pkgconfig.
a18bbbc
a18bbbc
* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-6
a18bbbc
- Use _smp_mflags.
a18bbbc
- Rebuild libtool configuration.
a18bbbc
- More BRs suggested by auto-buildrequires.
a18bbbc
a18bbbc
* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-5
a18bbbc
- Rename mingw -> mingw32.
a18bbbc
a18bbbc
* Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-4
a18bbbc
- Remove duplicate manpages.
a18bbbc
- Patch to delete logfile left when building (unused) manpages.
a18bbbc
a18bbbc
* Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.6.0-3
a18bbbc
- Add mingw_bindir to $PATH for freetype-config script
a18bbbc
a18bbbc
* Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-2
a18bbbc
- Remove static library.
a18bbbc
- +BR mingw-libxml2.
a18bbbc
a18bbbc
* Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.6.0-1
a18bbbc
- Initial RPM release