mingw-win-iconv/mingw-win-iconv.spec

179 lines
5.3 KiB
RPMSpec
Raw Normal View History

2012-03-10 14:36:05 +00:00
%?mingw_package_header
Name: mingw-win-iconv
2014-05-28 21:59:31 +00:00
Version: 0.0.6
Release: 3%{?dist}
2012-03-10 14:36:05 +00:00
Summary: Iconv implementation using Win32 API
License: Public Domain
Group: Development/Libraries
URL: http://code.google.com/p/win-iconv
Source0: http://win-iconv.googlecode.com/files/win-iconv-%{version}.tar.bz2
BuildArch: noarch
2011-07-06 16:04:13 +00:00
2012-03-10 14:36:05 +00:00
BuildRequires: mingw32-filesystem >= 95
2011-07-06 16:04:13 +00:00
BuildRequires: mingw32-gcc
BuildRequires: mingw32-gcc-c++
BuildRequires: mingw32-binutils
2012-03-10 14:36:05 +00:00
BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-gcc
BuildRequires: mingw64-gcc-c++
BuildRequires: mingw64-binutils
2011-07-06 16:04:13 +00:00
BuildRequires: cmake >= 2.8.0
BuildRequires: dos2unix
%description
MinGW Windows Iconv library
2012-03-10 14:36:05 +00:00
%?mingw_debug_package
2011-07-06 16:04:13 +00:00
2012-03-10 14:36:05 +00:00
# Win32
%package -n mingw32-win-iconv
Summary: MinGW Windows Iconv library
Obsoletes: mingw32-iconv < 1.12-14
Provides: mingw32-iconv = 1.12-14
%description -n mingw32-win-iconv
MinGW Windows cross compiled Iconv library.
2011-07-06 16:04:13 +00:00
2012-03-10 14:36:05 +00:00
%package -n mingw32-win-iconv-static
Summary: Static version of the MinGW Windows Iconv library
Requires: mingw32-win-iconv = %{version}-%{release}
Obsoletes: mingw32-iconv-static < 1.12-14
Provides: mingw32-iconv-static = 1.12-14
2011-07-06 16:04:13 +00:00
2012-03-10 14:36:05 +00:00
%description -n mingw32-win-iconv-static
2011-07-06 16:04:13 +00:00
Static version of the MinGW Windows Iconv library.
2012-03-10 14:36:05 +00:00
# Win64
%package -n mingw64-win-iconv
Summary: MinGW Windows Iconv library
Obsoletes: mingw64-iconv < 1.13.1-2%{?dist}
Provides: mingw64-iconv = 1.13.1-2%{?dist}
2011-07-06 16:04:13 +00:00
2012-03-10 14:36:05 +00:00
%description -n mingw64-win-iconv
MinGW Windows Iconv library
%package -n mingw64-win-iconv-static
Summary: Static version of the MinGW Windows Iconv library
Requires: mingw64-win-iconv = %{version}-%{release}
Obsoletes: mingw64-iconv-static < 1.13.1-2%{?dist}
Provides: mingw64-iconv-static = 1.13.1-2%{?dist}
%description -n mingw64-win-iconv-static
Static version of the MinGW Windows Iconv library.
2011-07-06 16:04:13 +00:00
%prep
%setup -q -n win-iconv-%{version}
dos2unix readme.txt
dos2unix ChangeLog
chmod -x readme.txt
chmod -x ChangeLog
%build
2012-03-10 14:36:05 +00:00
%mingw_cmake -DBUILD_STATIC=1
2011-07-06 16:04:13 +00:00
%install
2012-03-10 14:36:05 +00:00
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
2011-07-06 16:04:13 +00:00
2012-03-10 14:36:05 +00:00
rm -rf $RPM_BUILD_ROOT%{mingw32_bindir}/*.exe
rm -rf $RPM_BUILD_ROOT%{mingw64_bindir}/*.exe
2011-07-06 16:04:13 +00:00
2012-03-10 14:36:05 +00:00
%files -n mingw32-win-iconv
2011-07-06 16:04:13 +00:00
%doc ChangeLog readme.txt
%{mingw32_bindir}/iconv.dll
%{mingw32_includedir}/iconv.h
%{mingw32_libdir}/libiconv.dll.a
2011-07-06 16:04:13 +00:00
2012-03-10 14:36:05 +00:00
%files -n mingw32-win-iconv-static
%{mingw32_libdir}/libiconv.a
2011-07-06 16:04:13 +00:00
2012-03-10 14:36:05 +00:00
%files -n mingw64-win-iconv
%doc ChangeLog readme.txt
%{mingw64_bindir}/iconv.dll
%{mingw64_includedir}/iconv.h
%{mingw64_libdir}/libiconv.dll.a
%files -n mingw64-win-iconv-static
%{mingw64_libdir}/libiconv.a
2011-07-06 16:04:13 +00:00
%changelog
* Sat Apr 11 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0.6-3
- Stop using deprecated MinGW packaging macros
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-28 21:59:31 +00:00
* Wed May 28 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0.6-1
- Update to 0.0.6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Sep 21 2012 Kalev Lember <kalevlember@gmail.com> - 0.0.4-1
- Update to 0.0.4
- Drop upstreamed dllname patch
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-03-10 14:36:05 +00:00
* Sat Mar 10 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0-3-7
- Added win64 support
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0.3-6
- Rebuild against the mingw-w64 toolchain
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Jul 06 2011 Kalev Lember <kalevlember@gmail.com> - 0.0.3-4
- Rename the shared library to iconv.dll instead of hacking up the
import library
* Wed Jul 6 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0.3-3
- Make sure that the .dll.a import library refers to libiconv.dll
instead of iconv.dll
2011-07-06 16:04:13 +00:00
* Sun Jul 3 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0.3-2
- Add versioned BR for cmake >= 2.8.0
* Fri Jun 3 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0.3-1
- Update to 0.0.3
* Thu Jun 2 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0.2-3
- Moved the obsoletes/provides to the proper location
- Bumped the requirement for mingw32-filesystem to >= 68 because of RPM 4.9 support
- Dropped the %%defattr tags
- Dropped the %%{?dist} tag from the obsoletes/provides
* Thu Jun 2 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0.2-2
- Use the name mingw-win-iconv for the srpm to ease the transition to
the mingw-w64 based toolchain
- Use the RPM 4.9 dependency generator
- Dropped unnecessary tags
* Thu Feb 17 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0.2-1
- Update to version 0.0.2
- Dropped upstreamed patch
- Dropped the win_iconv.exe binary
- Bumped the mingw32-iconv obsoletes
* Thu Sep 30 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.0.1-1
- Initial release
- Obsoletes/provides mingw32-iconv and mingw32-iconv-static