Blame SPECS/mingw-gettext.spec

e8efd7
%?mingw_package_header
e8efd7
e8efd7
Name:      mingw-gettext
e8efd7
Version:   0.19.7
e8efd7
Release:   5%{?dist}
e8efd7
Summary:   GNU libraries and utilities for producing multi-lingual messages
e8efd7
e8efd7
License:   GPLv2+ and LGPLv2+
e8efd7
Group:     Development/Libraries
e8efd7
URL:       http://www.gnu.org/software/gettext/
e8efd7
Source0:   http://ftp.gnu.org/pub/gnu/gettext/gettext-%{version}.tar.gz
e8efd7
e8efd7
BuildArch: noarch
e8efd7
ExclusiveArch: %{ix86} x86_64
e8efd7
e8efd7
BuildRequires: mingw32-filesystem >= 95
e8efd7
BuildRequires: mingw32-gcc
e8efd7
BuildRequires: mingw32-gcc-c++
e8efd7
BuildRequires: mingw32-binutils
e8efd7
BuildRequires: mingw32-win-iconv
e8efd7
BuildRequires: mingw32-termcap
e8efd7
e8efd7
BuildRequires: mingw64-filesystem >= 95
e8efd7
BuildRequires: mingw64-gcc
e8efd7
BuildRequires: mingw64-gcc-c++
e8efd7
BuildRequires: mingw64-binutils
e8efd7
BuildRequires: mingw64-win-iconv
e8efd7
BuildRequires: mingw64-termcap
e8efd7
e8efd7
# Possible extra BRs.  These are used if available, but
e8efd7
# not required just for building.
e8efd7
#BuildRequires: mingw32-dlfcn
e8efd7
#BuildRequires: mingw32-libxml2
e8efd7
#BuildRequires: mingw32-expat
e8efd7
#BuildRequires: mingw32-glib2
e8efd7
e8efd7
e8efd7
%description
e8efd7
MinGW Windows Gettext library
e8efd7
e8efd7
e8efd7
# Win32
e8efd7
%package -n mingw32-gettext
e8efd7
Summary:         GNU libraries and utilities for producing multi-lingual messages
e8efd7
e8efd7
%description -n mingw32-gettext
e8efd7
MinGW Windows Gettext library
e8efd7
e8efd7
%package -n mingw32-gettext-static
e8efd7
Summary:        Static version of the MinGW Windows Gettext library
e8efd7
Requires:       mingw32-gettext = %{version}-%{release}
e8efd7
Group:          Development/Libraries
e8efd7
e8efd7
%description -n mingw32-gettext-static
e8efd7
Static version of the MinGW Windows Gettext library.
e8efd7
e8efd7
# Win64
e8efd7
%package -n mingw64-gettext
e8efd7
Summary:         GNU libraries and utilities for producing multi-lingual messages
e8efd7
e8efd7
%description -n mingw64-gettext
e8efd7
MinGW Windows Gettext library
e8efd7
e8efd7
%package -n mingw64-gettext-static
e8efd7
Summary:        Static version of the MinGW Windows Gettext library
e8efd7
Requires:       mingw64-gettext = %{version}-%{release}
e8efd7
Group:          Development/Libraries
e8efd7
e8efd7
%description -n mingw64-gettext-static
e8efd7
Static version of the MinGW Windows Gettext library.
e8efd7
e8efd7
e8efd7
%?mingw_debug_package
e8efd7
e8efd7
e8efd7
%prep
e8efd7
%setup -q -n gettext-%{version}
e8efd7
e8efd7
e8efd7
%build
e8efd7
%mingw_configure            \
e8efd7
    --disable-java          \
e8efd7
    --disable-native-java   \
e8efd7
    --disable-csharp        \
e8efd7
    --enable-static         \
e8efd7
    --enable-threads=win32  \
e8efd7
    --without-emacs         \
e8efd7
    --disable-openmp
e8efd7
%mingw_make %{?_smp_mflags}
e8efd7
e8efd7
e8efd7
%install
e8efd7
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
e8efd7
e8efd7
rm -f $RPM_BUILD_ROOT%{mingw32_datadir}/locale/locale.alias
e8efd7
rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/charset.alias
e8efd7
e8efd7
rm -f $RPM_BUILD_ROOT%{mingw64_datadir}/locale/locale.alias
e8efd7
rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/charset.alias
e8efd7
e8efd7
# Remove documentation - already available in base gettext-devel.
e8efd7
rm -rf $RPM_BUILD_ROOT%{mingw32_mandir}
e8efd7
rm -rf $RPM_BUILD_ROOT%{mingw32_docdir}
e8efd7
rm -rf $RPM_BUILD_ROOT%{mingw32_infodir}
e8efd7
e8efd7
rm -rf $RPM_BUILD_ROOT%{mingw64_mandir}
e8efd7
rm -rf $RPM_BUILD_ROOT%{mingw64_docdir}
e8efd7
rm -rf $RPM_BUILD_ROOT%{mingw64_infodir}
e8efd7
e8efd7
# Drop some useless tools
e8efd7
rm -rf $RPM_BUILD_ROOT%{mingw32_libdir}/gettext
e8efd7
rm -rf $RPM_BUILD_ROOT%{mingw64_libdir}/gettext
e8efd7
e8efd7
# Drop all .la files
e8efd7
find $RPM_BUILD_ROOT -name "*.la" -delete
e8efd7
e8efd7
%mingw_find_lang %{name} --all-name
e8efd7
e8efd7
e8efd7
# Win32
e8efd7
%files -n mingw32-gettext -f mingw32-%{name}.lang
e8efd7
%doc COPYING
e8efd7
%{mingw32_bindir}/autopoint
e8efd7
%{mingw32_bindir}/envsubst.exe
e8efd7
%{mingw32_bindir}/gettext.exe
e8efd7
%{mingw32_bindir}/gettext.sh
e8efd7
%{mingw32_bindir}/gettextize
e8efd7
%{mingw32_bindir}/libasprintf-0.dll
e8efd7
%{mingw32_bindir}/libgettextlib-0-19-7.dll
e8efd7
%{mingw32_bindir}/libgettextpo-0.dll
e8efd7
%{mingw32_bindir}/libgettextsrc-0-19-7.dll
e8efd7
%{mingw32_bindir}/libintl-8.dll
e8efd7
%{mingw32_bindir}/msg*.exe
e8efd7
%{mingw32_bindir}/ngettext.exe
e8efd7
%{mingw32_bindir}/recode-sr-latin.exe
e8efd7
%{mingw32_bindir}/xgettext.exe
e8efd7
%{mingw32_includedir}/autosprintf.h
e8efd7
%{mingw32_includedir}/gettext-po.h
e8efd7
%{mingw32_includedir}/libintl.h
e8efd7
%{mingw32_libdir}/libasprintf.dll.a
e8efd7
%{mingw32_libdir}/libgettextlib.dll.a
e8efd7
%{mingw32_libdir}/libgettextpo.dll.a
e8efd7
%{mingw32_libdir}/libgettextsrc.dll.a
e8efd7
%{mingw32_libdir}/libintl.dll.a
e8efd7
%{mingw32_datadir}/gettext/
e8efd7
%{mingw32_datadir}/gettext-%{version}/
e8efd7
%{mingw32_datadir}/aclocal/*m4
e8efd7
e8efd7
%files -n mingw32-gettext-static
e8efd7
%{mingw32_libdir}/libasprintf.a
e8efd7
%{mingw32_libdir}/libgettextpo.a
e8efd7
%{mingw32_libdir}/libintl.a
e8efd7
e8efd7
# Win64
e8efd7
%files -n mingw64-gettext -f mingw64-%{name}.lang
e8efd7
%doc COPYING
e8efd7
%{mingw64_bindir}/autopoint
e8efd7
%{mingw64_bindir}/envsubst.exe
e8efd7
%{mingw64_bindir}/gettext.exe
e8efd7
%{mingw64_bindir}/gettext.sh
e8efd7
%{mingw64_bindir}/gettextize
e8efd7
%{mingw64_bindir}/libasprintf-0.dll
e8efd7
%{mingw64_bindir}/libgettextlib-0-19-7.dll
e8efd7
%{mingw64_bindir}/libgettextpo-0.dll
e8efd7
%{mingw64_bindir}/libgettextsrc-0-19-7.dll
e8efd7
%{mingw64_bindir}/libintl-8.dll
e8efd7
%{mingw64_bindir}/msg*.exe
e8efd7
%{mingw64_bindir}/ngettext.exe
e8efd7
%{mingw64_bindir}/recode-sr-latin.exe
e8efd7
%{mingw64_bindir}/xgettext.exe
e8efd7
%{mingw64_includedir}/autosprintf.h
e8efd7
%{mingw64_includedir}/gettext-po.h
e8efd7
%{mingw64_includedir}/libintl.h
e8efd7
%{mingw64_libdir}/libasprintf.dll.a
e8efd7
%{mingw64_libdir}/libgettextlib.dll.a
e8efd7
%{mingw64_libdir}/libgettextpo.dll.a
e8efd7
%{mingw64_libdir}/libgettextsrc.dll.a
e8efd7
%{mingw64_libdir}/libintl.dll.a
e8efd7
%{mingw64_datadir}/gettext/
e8efd7
%{mingw64_datadir}/gettext-%{version}/
e8efd7
%{mingw64_datadir}/aclocal/*m4
e8efd7
e8efd7
%files -n mingw64-gettext-static
e8efd7
%{mingw64_libdir}/libasprintf.a
e8efd7
%{mingw64_libdir}/libgettextpo.a
e8efd7
%{mingw64_libdir}/libintl.a
e8efd7
e8efd7
e8efd7
%changelog
e8efd7
* Tue Aug 14 2018 Victor Toso <victortoso@redhat.com> - 0.19.7-5
e8efd7
- ExclusiveArch: i686, x86_64
e8efd7
- Related: rhbz#1615874
e8efd7
e8efd7
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.7-4
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e8efd7
e8efd7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.7-3
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e8efd7
e8efd7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.7-2
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e8efd7
e8efd7
* Tue May 03 2016 Kalev Lember <klember@redhat.com> - 0.19.7-1
e8efd7
- Update to 0.19.7
e8efd7
e8efd7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.4-3
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e8efd7
e8efd7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19.4-2
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e8efd7
e8efd7
* Thu Jan  1 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.19.4-1
e8efd7
- Update to 0.19.4
e8efd7
e8efd7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.3.2-2
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e8efd7
e8efd7
* Sat Mar 29 2014 Kalev Lember <kalevlember@gmail.com> - 0.18.3.2-1
e8efd7
- Update to 0.18.3.2
e8efd7
e8efd7
* Sat Sep  7 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.3.1-1
e8efd7
- Update to 0.18.3.1
e8efd7
e8efd7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.3-2
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e8efd7
e8efd7
* Sat Jul 13 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.3-1
e8efd7
- Update to 0.18.3
e8efd7
- Dropped upstreamed patch
e8efd7
e8efd7
* Sat Jun 15 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.2.1-3
e8efd7
- Fix FTBFS due to invalid use of cdecl
e8efd7
e8efd7
* Sat Jun 15 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.2.1-2
e8efd7
- Rebuild to resolve InterlockedCompareExchange regression in mingw32 libraries
e8efd7
e8efd7
* Sat May  4 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.2.1-1
e8efd7
- Update to 0.18.2.1
e8efd7
e8efd7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.2-2
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e8efd7
e8efd7
* Fri Jan  4 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.2-1
e8efd7
- Update to 0.18.2
e8efd7
- Removed all hacks as they're not needed any more
e8efd7
e8efd7
* Thu Dec  6 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.1.1-11
e8efd7
- Fix the build on RHEL6 (too old libtool)
e8efd7
- Minor cleanup
e8efd7
e8efd7
* Sun Jul 22 2012 Kalev Lember <kalevlember@gmail.com> - 0.18.1.1-10
e8efd7
- Fix message catalog split to subpackages (#842166)
e8efd7
e8efd7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.1.1-9
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e8efd7
e8efd7
* Sat Mar 10 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.1.1-8
e8efd7
- Added win64 support
e8efd7
e8efd7
* Thu Mar 08 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.1.1-7
e8efd7
- Dropped .la files
e8efd7
e8efd7
* Tue Mar 06 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.1.1-6
e8efd7
- Renamed the source package to mingw-gettext (RHBZ #800387)
e8efd7
- Use mingw macros without leading underscore
e8efd7
e8efd7
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.1.1-5
e8efd7
- Rebuild against the mingw-w64 toolchain
e8efd7
- Added a patch to fix compatibility with mingw-w64
e8efd7
e8efd7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.1.1-4
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e8efd7
e8efd7
* Wed Jul  6 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.1.1-3
e8efd7
- Rebuild again to fix incomplete dependencies
e8efd7
e8efd7
* Wed Jul  6 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.18.1.1-2
e8efd7
- Rebuild against win-iconv
e8efd7
e8efd7
* Mon May 23 2011 Kalev Lember <kalev@smartlink.ee> - 0.18.1.1-1
e8efd7
- Update to 0.18.1.1
e8efd7
- Spec cleanup
e8efd7
- Split debug symbols in -debuginfo subpackage
e8efd7
e8efd7
* Mon May 23 2011 Kalev Lember <kalev@smartlink.ee> - 0.17-16
e8efd7
- Removed html documentation and info pages
e8efd7
e8efd7
* Wed Apr 27 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.17.15
e8efd7
- Dropped the proxy-libintl pieces as the upstream gtk+ win32 maintainers
e8efd7
  also decided to drop it and it's causing more harm than good
e8efd7
e8efd7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-14
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e8efd7
e8efd7
* Sat Oct 16 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.17-13
e8efd7
- Replaced the libintl import library with a small wrapper library in order
e8efd7
  to let other binaries have a soft-dependency on libintl-8.dll as proposed
e8efd7
  on the fedora-mingw mailing list
e8efd7
e8efd7
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-12
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e8efd7
e8efd7
* Fri Apr  3 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.17-11
e8efd7
- Added -static subpackage
e8efd7
e8efd7
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-10
e8efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e8efd7
e8efd7
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 0.17-9
e8efd7
- Rebuild for mingw32-gcc 4.4
e8efd7
e8efd7
* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 0.17-8
e8efd7
- Use find_lang macro.
e8efd7
e8efd7
* Fri Jan 16 2009 Richard W.M. Jones <rjones@redhat.com> - 0.17-7
e8efd7
- Remove the manpages - already available in base Fedora gettext-devel.
e8efd7
- Use _smp_mflags for build.
e8efd7
- Added list of potential BRs.
e8efd7
- Added license file to doc section.
e8efd7
e8efd7
* Fri Oct 31 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-6
e8efd7
- Add fix for undefined Gnulib symbols (Farkas Levente).
e8efd7
- Rebuild against mingw32-termcap / libtermcap.
e8efd7
e8efd7
* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-5
e8efd7
- Rename mingw -> mingw32.
e8efd7
e8efd7
* Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.17-4
e8efd7
- Disable emacs lisp file install
e8efd7
e8efd7
* Thu Sep 11 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-3
e8efd7
- Remove static libraries.
e8efd7
e8efd7
* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-2
e8efd7
- Use RPM macros from mingw-filesystem.
e8efd7
e8efd7
* Tue Sep  2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.17-1
e8efd7
- Initial RPM release, largely based on earlier work from several sources.