rpms/mingw32-libsoup/F-10 mingw32-libsoup.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Erik van Pienbroek epienbro at fedoraproject.org
Sun May 24 12:35:49 UTC 2009


Author: epienbro

Update of /cvs/pkgs/rpms/mingw32-libsoup/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15083/F-10

Modified Files:
	.cvsignore sources 
Added Files:
	mingw32-libsoup.spec 
Log Message:
Initial import



--- NEW FILE mingw32-libsoup.spec ---
%global __strip %{_mingw32_strip}
%global __objdump %{_mingw32_objdump}
%global _use_internal_dependency_generator 0
%global __find_requires %{_mingw32_findrequires}
%global __find_provides %{_mingw32_findprovides}

Name:		mingw32-libsoup
Version:	2.26.1
Release:	2%{?dist}
Summary:	MinGW library for HTTP and XML-RPC functionality

License:	LGPLv2
Group:		Development/Libraries
URL:		http://live.gnome.org/LibSoup
Source		http://download.gnome.org/sources/libsoup/2.26/libsoup-%{version}.tar.bz2
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:	noarch

BuildRequires:	mingw32-filesystem
BuildRequires:	mingw32-gcc
BuildRequires:	mingw32-binutils
BuildRequires:	mingw32-glib2
BuildRequires:	mingw32-libxml2

Requires:	pkgconfig

%description
Libsoup is an HTTP library implementation in C. It was originally part
of a SOAP (Simple Object Access Protocol) implementation called Soup, but
the SOAP and non-SOAP parts have now been split into separate packages.
 
libsoup uses the Glib main loop and is designed to work well with GTK
applications. This enables GNOME applications to access HTTP servers
on the network in a completely asynchronous fashion, very similar to
the Gtk+ programming model (a synchronous operation mode is also
supported for those who want it).

This is the MinGW build of Libsoup


%package static
Summary:	Static version of the MinGW Windows Libsoup library
Requires:	%{name} = %{version}-%{release}
Group:		Development/Libraries

%description static
Static version of the MinGW Windows Libsoup library.


%prep
%setup -q -n libsoup-%{version}

%build
# Libsoup can't build static and shared libraries in one go, so we build the package twice here
mkdir build_static
pushd build_static
	%{_mingw32_configure}		\
		--without-apache-httpd	\
		--enable-static		\
		--disable-shared	\
		CFLAGS="$CFLAGS -DGLIB_STATIC_COMPILATION -DGOBJECT_STATIC_COMPILATION -DLIBXML_STATIC"
	make %{?_smp_mflags}
popd

mkdir build_shared
pushd build_shared
	%{_mingw32_configure}		\
		--without-apache-httpd	\
		--disable-static	\
		--enable-shared
	make %{?_smp_mflags}
popd


%install
rm -rf $RPM_BUILD_ROOT

# First install all the files belonging to the shared build
make -C build_shared DESTDIR=$RPM_BUILD_ROOT install

# Install all the files from the static build in a seperate folder
# and move the static libraries to the right location
make -C build_static DESTDIR=$RPM_BUILD_ROOT/build_static install
mv $RPM_BUILD_ROOT/build_static%{_mingw32_libdir}/*.a $RPM_BUILD_ROOT%{_mingw32_libdir}

# Manually merge the libtool files
sed -i s/"old_library=''"/"old_library='libsoup-2.4.a'"/ $RPM_BUILD_ROOT%{_mingw32_libdir}/libsoup-2.4.la

# Drop the folder which was temporary used for installing the static bits
rm -rf $RPM_BUILD_ROOT/build_static

# Strip all the GTK-Doc
rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc

%clean
rm -rf $RPM_BUILD_ROOT


%files 
%defattr(-,root,root,-)
%doc COPYING
%{_mingw32_bindir}/libsoup-2.4-1.dll
%{_mingw32_includedir}/libsoup-2.4
%{_mingw32_libdir}/libsoup-2.4.dll.a
%{_mingw32_libdir}/libsoup-2.4.la
%{_mingw32_libdir}/pkgconfig/libsoup-2.4.pc


%files static
%defattr(-,root,root,-)
%{_mingw32_libdir}/libsoup-2.4.a

%changelog
* Fri May 22 2009 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.26.1-2
- Fixed license typo
- Use %%global instead of %%define
- Fixed mixed-use-of-spaces-and-tabs rpmlint warning

* Sat May  9 2009 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.26.1-1
- Update to 2.26.1

* Fri Apr  3 2009 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.26.0-2
- Added -static subpackage

* Fri Mar 20 2009 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.26.0-1
- Update to 2.26.0

* Sat Feb 13 2009 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.25.5-1
- Initial release



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libsoup/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	23 May 2009 05:38:11 -0000	1.1
+++ .cvsignore	24 May 2009 12:35:18 -0000	1.2
@@ -0,0 +1 @@
+libsoup-2.26.1.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libsoup/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	23 May 2009 05:38:11 -0000	1.1
+++ sources	24 May 2009 12:35:19 -0000	1.2
@@ -0,0 +1 @@
+94c0495dc8bf213709bdb175ab224c7e  libsoup-2.26.1.tar.bz2




More information about the fedora-extras-commits mailing list