Merge git://pkgs.fedoraproject.org/mingw32-expat
This commit is contained in:
commit
1768a3bc05
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
expat-2.0.1.tar.gz
|
101
mingw32-expat.spec
Normal file
101
mingw32-expat.spec
Normal file
@ -0,0 +1,101 @@
|
||||
%define __strip %{_mingw32_strip}
|
||||
%define __objdump %{_mingw32_objdump}
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires %{_mingw32_findrequires}
|
||||
%define __find_provides %{_mingw32_findprovides}
|
||||
|
||||
Name: mingw32-expat
|
||||
Version: 2.0.1
|
||||
Release: 9%{?dist}
|
||||
Summary: MinGW Windows port of expat XML parser library
|
||||
|
||||
License: MIT
|
||||
Group: Development/Libraries
|
||||
URL: http://www.libexpat.org/
|
||||
Source0: http://downloads.sourceforge.net/expat/expat-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: mingw32-filesystem >= 33
|
||||
BuildRequires: mingw32-gcc
|
||||
BuildRequires: mingw32-binutils
|
||||
BuildRequires: autoconf, automake, libtool
|
||||
|
||||
|
||||
%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.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n expat-%{version}
|
||||
|
||||
rm -rf autom4te*.cache
|
||||
cp `aclocal --print-ac-dir`/libtool.m4 conftools || exit 1
|
||||
libtoolize --copy --force --automake && aclocal && autoheader && autoconf
|
||||
|
||||
chmod -x COPYING
|
||||
|
||||
|
||||
%build
|
||||
%{_mingw32_configure}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
# Remove static libraries but DON'T remove *.dll.a files.
|
||||
rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libexpat.a
|
||||
|
||||
# Remove documentation which duplicates that found in the native package.
|
||||
rm -r $RPM_BUILD_ROOT%{_mingw32_mandir}/man1
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING
|
||||
%{_mingw32_bindir}/libexpat-1.dll
|
||||
%{_mingw32_bindir}/xmlwf
|
||||
%{_mingw32_libdir}/libexpat.dll.a
|
||||
%{_mingw32_libdir}/libexpat.la
|
||||
%{_mingw32_includedir}/expat.h
|
||||
%{_mingw32_includedir}/expat_external.h
|
||||
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
* 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
|
||||
|
||||
* 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.
|
Loading…
Reference in New Issue
Block a user