rpms/libwiimote/devel libwiimote-0.4-dso-symlinks.patch, NONE, 1.1 libwiimote-0.4-fpic.patch, NONE, 1.1 libwiimote-0.4-includedir.patch, NONE, 1.1 libwiimote.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Adam Jackson (ajax) fedora-extras-commits at redhat.com
Fri Dec 21 16:31:11 UTC 2007


Author: ajax

Update of /cvs/pkgs/rpms/libwiimote/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31681/devel

Modified Files:
	.cvsignore sources 
Added Files:
	libwiimote-0.4-dso-symlinks.patch libwiimote-0.4-fpic.patch 
	libwiimote-0.4-includedir.patch libwiimote.spec 
Log Message:
Initial import.


libwiimote-0.4-dso-symlinks.patch:

--- NEW FILE libwiimote-0.4-dso-symlinks.patch ---
diff -up libwiimote-0.4/Makefile.in.jx libwiimote-0.4/Makefile.in
--- libwiimote-0.4/Makefile.in.jx	2007-12-18 10:46:33.000000000 -0500
+++ libwiimote-0.4/Makefile.in	2007-12-18 10:47:39.000000000 -0500
@@ -25,6 +25,9 @@ subdirs:
 install:
 	mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(libwiimote_includedir)
 	$(INSTALL) -m 755 $(LIBDIR)/libcwiimote.so $(DESTDIR)$(libdir)/libcwiimote.so.$(PACKAGE_VERSION)
+	cd $(DESTDIR)$(libdir) && ln -s libcwiimote.so.$(PACKAGE_VERSION) libcwiimote.so.0
+	cd $(DESTDIR)$(libdir) && ln -s libcwiimote.so.0 libcwiimote.so
+
 	$(INSTALL) -m 755 $(LIBDIR)/libcwiimote.a $(DESTDIR)$(libdir)/libcwiimote.a
 	for i in $(SRCDIR)/*.h; do \
 		$(INSTALL) -m 644 $$i $(DESTDIR)$(libwiimote_includedir); \

libwiimote-0.4-fpic.patch:

--- NEW FILE libwiimote-0.4-fpic.patch ---
diff -up libwiimote-0.4/configure.in.BAD libwiimote-0.4/configure.in
--- libwiimote-0.4/configure.in.BAD	2007-12-18 10:19:06.000000000 -0500
+++ libwiimote-0.4/configure.in	2007-12-18 10:29:08.000000000 -0500
@@ -9,6 +9,29 @@ AC_CONFIG_SRCDIR([src])
 AC_PROG_CC
 AC_PROG_INSTALL
 
+if test "$GCC" = "yes"; then
+  case "${host_cpu}" in
+## Sparc has only an 8k global object table, 1024 entries on 64-bit.
+## PowerPC has 32k, not enough on ppc64 though.
+## The only other platform where this is said to matter is m68k, which
+## has 32k and so can use -fpic.
+## However, although the gcc docs do not mention it, it seems s390/s390x
+## also supports and needs -fPIC
+    sparc*|ppc64|powerpc64|s390*)
+      cpicflags="-fPIC"
+      ;;
+    *)
+      cpicflags="-fpic"
+      ;;
+  esac
+fi
+
+: ${CPICFLAGS="${cpicflags}"}
+
+AC_SUBST(CPICFLAGS)
+
+CFLAGS="${CFLAGS} ${CPICFLAGS}"
+
 # Checks for BlueZ.
 AC_CHECK_LIB([bluetooth], [hci_remote_name],
 	     [], [AC_MSG_ERROR([We require BlueZ])])

libwiimote-0.4-includedir.patch:

--- NEW FILE libwiimote-0.4-includedir.patch ---
diff -up libwiimote-0.4/Makefile.in.jx libwiimote-0.4/Makefile.in
--- libwiimote-0.4/Makefile.in.jx	2007-02-22 09:54:54.000000000 -0500
+++ libwiimote-0.4/Makefile.in	2007-12-18 10:45:00.000000000 -0500
@@ -6,7 +6,7 @@ prefix = @prefix@
 exec_prefix = @exec_prefix@
 libdir = @libdir@
 includedir = @includedir@
-libwiimote_includedir = $(includedir)/libcwiimote-$(PACKAGE_VERSION)/libcwiimote
+libwiimote_includedir = $(includedir)/libcwiimote
 
 INSTALL = @INSTALL@
 


--- NEW FILE libwiimote.spec ---
Name:           libwiimote
Version:        0.4
Release:        2%{?dist}
Summary:        Simple Wiimote Library for Linux

Group:          System Environment/Libraries
License:        GPLv2
URL:            http://libwiimote.sf.net/
Source0:        http://downloads.sf.net/%{name}/%{name}-%{version}.tgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Patch0:		libwiimote-0.4-fpic.patch
Patch1:		libwiimote-0.4-includedir.patch
Patch2:		libwiimote-0.4-dso-symlinks.patch

BuildRequires:  autoconf
BuildRequires:  bluez-libs-devel
#Requires:       

%description
Libwiimote is a C-library that provides a simple API for communicating with
the Nintendo Wii Remote (aka. wiimote) on a Linux system. The goal of this
library is to be a complete and easy to use framework for interfacing
applications with the wiimote.

%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -q
%patch0 -p1 -b .fpic
%patch1 -p1 -b .includedir
%patch2 -p1 -b .dso-symlinks

%build
autoconf
%configure --disable-static
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
# boo static libraries.  hooray beer!
rm $RPM_BUILD_ROOT%{_libdir}/*.a

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README TODO
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
#%doc
%{_includedir}/*
%{_libdir}/*.so

%changelog
* Tue Dec 18 2007 Adam Jackson <ajax at redhat.com> 0.4-2
- Build with -fPIC so DSOs actually work right. (Tom Callaway)
- Move the header files to someplace less insane.

* Tue Dec 18 2007 Adam Jackson <ajax at redhat.com> 0.4-1
- Initial revision.



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/libwiimote/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	19 Dec 2007 20:55:10 -0000	1.1
+++ .cvsignore	21 Dec 2007 16:30:38 -0000	1.2
@@ -0,0 +1 @@
+libwiimote-0.4.tgz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/libwiimote/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	19 Dec 2007 20:55:10 -0000	1.1
+++ sources	21 Dec 2007 16:30:38 -0000	1.2
@@ -0,0 +1 @@
+0d8d61dc989d8ad83e1005a26136d388  libwiimote-0.4.tgz




More information about the fedora-extras-commits mailing list