mingw-expat/mingw-expat.spec

147 lines
4.6 KiB
RPMSpec
Raw Normal View History

%{?mingw_package_header}
2009-03-10 22:45:32 +00:00
Name: mingw-expat
Version: 2.1.0
Release: 1%{?dist}
2009-03-10 22:45:32 +00:00
Summary: MinGW Windows port of expat XML parser library
License: MIT
Group: Development/Libraries
URL: http://www.libexpat.org/
2010-01-13 15:18:41 +00:00
Source0: http://downloads.sourceforge.net/expat/expat-%{version}.tar.gz
2009-03-10 22:45:32 +00:00
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 95
2009-03-10 22:45:32 +00:00
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-gcc
BuildRequires: mingw64-binutils
2009-03-10 22:45:32 +00:00
%description
This is expat, the C library for parsing XML, written by James Clark. Expat
is a stream oriented XML parser. This means that you register handlers with
the parser prior to starting the parse. These handlers are called when the
parser discovers the associated structures in the document being parsed. A
start tag is an example of the kind of structures for which you may
register handlers.
# Win32
%package -n mingw32-expat
Summary: MinGW Windows port of expat XML parser library
%description -n mingw32-expat
This is expat, the C library for parsing XML, written by James Clark. Expat
is a stream oriented XML parser. This means that you register handlers with
the parser prior to starting the parse. These handlers are called when the
parser discovers the associated structures in the document being parsed. A
start tag is an example of the kind of structures for which you may
register handlers.
# Win64
%package -n mingw64-expat
Summary: MinGW Windows port of expat XML parser library
%description -n mingw64-expat
This is expat, the C library for parsing XML, written by James Clark. Expat
is a stream oriented XML parser. This means that you register handlers with
the parser prior to starting the parse. These handlers are called when the
parser discovers the associated structures in the document being parsed. A
start tag is an example of the kind of structures for which you may
register handlers.
%?mingw_debug_package
2009-03-10 22:45:32 +00:00
%prep
%setup -q -n expat-%{version}
%build
%mingw_configure
%mingw_make %{?_smp_mflags}
2009-03-10 22:45:32 +00:00
%install
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
2009-03-10 22:45:32 +00:00
2012-03-09 15:50:25 +00:00
# Remove static libraries
rm $RPM_BUILD_ROOT%{mingw32_libdir}/libexpat.a
rm $RPM_BUILD_ROOT%{mingw64_libdir}/libexpat.a
2009-03-10 22:45:32 +00:00
2012-03-09 15:50:25 +00:00
# Remove .la files
find $RPM_BUILD_ROOT -name "*.la" -delete
2012-03-09 15:50:25 +00:00
2009-03-10 22:45:32 +00:00
# Remove documentation which duplicates that found in the native package.
rm -r $RPM_BUILD_ROOT%{mingw32_mandir}/man1
rm -r $RPM_BUILD_ROOT%{mingw64_mandir}/man1
2009-03-10 22:45:32 +00:00
%files -n mingw32-expat
2009-03-10 22:45:32 +00:00
%doc COPYING
%{mingw32_bindir}/libexpat-1.dll
%{mingw32_bindir}/xmlwf
%{mingw32_libdir}/libexpat.dll.a
%{mingw32_libdir}/pkgconfig/expat.pc
%{mingw32_includedir}/expat.h
%{mingw32_includedir}/expat_external.h
2009-03-10 22:45:32 +00:00
%files -n mingw64-expat
%doc COPYING
%{mingw64_bindir}/libexpat-1.dll
%{mingw64_bindir}/xmlwf
%{mingw64_libdir}/libexpat.dll.a
%{mingw64_libdir}/pkgconfig/expat.pc
%{mingw64_includedir}/expat.h
%{mingw64_includedir}/expat_external.h
2009-03-10 22:45:32 +00:00
%changelog
* Sun Jun 03 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.1.0-1
- Update to 2.1.0
- Dropped the autoconf/libtool regeneration pieces
* Sat Mar 10 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.0.1-12
- Added win64 support
- Dropped unneeded RPM tags
2012-03-09 15:50:25 +00:00
* Fri Mar 09 2012 Kalev Lember <kalevlember@gmail.com> - 2.0.1-11
- Remove .la files
* Tue Mar 06 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.0.1-10
- Renamed the source package to mingw-expat (RHBZ #800377)
- Use mingw macros without leading underscore
- Use the RPM magic to automatically generate provides/requires tags
- Automatically generate a debuginfo subpackage
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.0.1-9
- Rebuild against the mingw-w64 toolchain
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-01-13 15:18:41 +00:00
* Wed Jan 13 2010 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-6
- Fix Source0 URL.
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-03-10 22:45:32 +00:00
* Mon Mar 9 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-4
- Remove +x permissions on COPYING file.
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-3
- Rebuild for mingw32-gcc 4.4
* Fri Feb 6 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-2
- Include license.
* Fri Oct 31 2008 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-1
- Initial RPM release.