Compare commits
6 Commits
Author | SHA1 | Date |
---|---|---|
Kalev Lember | ab73d429fa | |
Kalev Lember | f697af39fe | |
Fedora Release Engineering | b9a0bd74f6 | |
Kalev Lember | 762dfda5bb | |
Kalev Lember | b27236f58e | |
Jesse Keating | 540b97846c |
|
@ -1 +1,2 @@
|
|||
mmapper-2.0.4-final2-source.tar.gz
|
||||
/mmapper-2.1.0-source.tar.gz
|
21
Makefile
21
Makefile
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: mmapper
|
||||
# $Id: Makefile,v 1.1 2009/08/13 00:01:03 kevin Exp $
|
||||
NAME := mmapper
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
|
@ -1 +0,0 @@
|
|||
mmapper-2_0_4-2_final2_fc12:HEAD:mmapper-2.0.4-2.final2.fc12.src.rpm:1250150670
|
|
@ -0,0 +1,82 @@
|
|||
diff -up mmapper-2.1.0-source/CMakeLists.txt.system_qtiocompressor mmapper-2.1.0-source/CMakeLists.txt
|
||||
--- mmapper-2.1.0-source/CMakeLists.txt.system_qtiocompressor 2010-08-22 23:25:23.000000000 +0300
|
||||
+++ mmapper-2.1.0-source/CMakeLists.txt 2010-08-23 10:20:30.369359972 +0300
|
||||
@@ -9,6 +9,18 @@ include(${QT_USE_FILE})
|
||||
|
||||
find_package(OpenGL REQUIRED)
|
||||
|
||||
+# try to find system copy of qtiocompressor
|
||||
+find_path(QTIOCOMPRESSOR_INCLUDE_DIRS qtiocompressor.h PATH_SUFFIXES QtSolutions)
|
||||
+find_library(QTIOCOMPRESSOR_LIBRARIES QtSolutions_IOCompressor-2.3)
|
||||
+if (QTIOCOMPRESSOR_INCLUDE_DIRS AND QTIOCOMPRESSOR_LIBRARIES)
|
||||
+ message(STATUS "Found QtIOCompressor: ${QTIOCOMPRESSOR_LIBRARIES}")
|
||||
+else()
|
||||
+ message(STATUS "QtIOCompressor not found; using bundled copy.")
|
||||
+ add_subdirectory(src/3rdparty)
|
||||
+ set(QTIOCOMPRESSOR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/3rdparty)
|
||||
+ set(QTIOCOMPRESSOR_LIBRARIES qtiocompressor)
|
||||
+endif()
|
||||
+
|
||||
if (NOT MINGW)
|
||||
find_package(ZLIB REQUIRED)
|
||||
else (NOT MINGW)
|
||||
diff -up mmapper-2.1.0-source/src/3rdparty/CMakeLists.txt.system_qtiocompressor mmapper-2.1.0-source/src/3rdparty/CMakeLists.txt
|
||||
--- mmapper-2.1.0-source/src/3rdparty/CMakeLists.txt.system_qtiocompressor 2010-08-23 10:19:54.542587698 +0300
|
||||
+++ mmapper-2.1.0-source/src/3rdparty/CMakeLists.txt 2010-08-23 10:19:54.542587698 +0300
|
||||
@@ -0,0 +1,14 @@
|
||||
+set(qtiocompressor_SRCS
|
||||
+ qtiocompressor.cpp
|
||||
+)
|
||||
+
|
||||
+set(qtiocompressor_MOC_HDRS
|
||||
+ qtiocompressor.h
|
||||
+)
|
||||
+
|
||||
+QT4_WRAP_CPP(qtiocompressor_MOC_SRCS ${qtiocompressor_MOC_HDRS})
|
||||
+
|
||||
+ADD_LIBRARY(qtiocompressor STATIC
|
||||
+ ${qtiocompressor_SRCS}
|
||||
+ ${qtiocompressor_MOC_SRCS}
|
||||
+)
|
||||
diff -up mmapper-2.1.0-source/src/CMakeLists.txt.system_qtiocompressor mmapper-2.1.0-source/src/CMakeLists.txt
|
||||
--- mmapper-2.1.0-source/src/CMakeLists.txt.system_qtiocompressor 2010-08-22 23:25:23.000000000 +0300
|
||||
+++ mmapper-2.1.0-source/src/CMakeLists.txt 2010-08-23 10:19:54.542587698 +0300
|
||||
@@ -1,6 +1,5 @@
|
||||
set(mmapper_SRCS
|
||||
main.cpp
|
||||
- 3rdparty/qtiocompressor.cpp
|
||||
configuration/configuration.cpp
|
||||
display/connectionselection.cpp
|
||||
display/mapcanvas.cpp
|
||||
@@ -95,7 +94,6 @@ if (APPLE)
|
||||
endif (APPLE)
|
||||
|
||||
set(mmapper_MOC_HDRS
|
||||
- 3rdparty/qtiocompressor.h
|
||||
display/connectionselection.h
|
||||
display/mapcanvas.h
|
||||
display/mapwindow.h
|
||||
@@ -147,7 +145,6 @@ set(mmapper_UIS
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/configuration
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/display
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/expandoracommon
|
||||
@@ -163,6 +160,7 @@ include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/proxy
|
||||
${OPENGL_INCLUDE_DIR}
|
||||
${ZLIB_INCLUDE_DIR}
|
||||
+ ${QTIOCOMPRESSOR_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
QT4_WRAP_CPP(mmapper_MOC_SRCS ${mmapper_MOC_HDRS})
|
||||
@@ -187,6 +185,7 @@ target_link_libraries(mmapper
|
||||
${QT_LIBRARIES}
|
||||
${OPENGL_gl_LIBRARY}
|
||||
${ZLIB_LIBRARIES}
|
||||
+ ${QTIOCOMPRESSOR_LIBRARIES}
|
||||
)
|
||||
|
||||
# Begin CPack Settings
|
45
mmapper.spec
45
mmapper.spec
|
@ -1,31 +1,20 @@
|
|||
%global extraversion final2
|
||||
|
||||
Name: mmapper
|
||||
Version: 2.0.4
|
||||
Release: 3.%{extraversion}%{?dist}
|
||||
Version: 2.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Graphical MUME mapper
|
||||
|
||||
Group: Amusements/Games
|
||||
# The following files are dual licensed under
|
||||
# LGPLv2 with exceptions or GPLv3 with exceptions:
|
||||
# - src/3rdparty/qtiocompressor.cpp
|
||||
# - src/3rdparty/qtiocompressor.h
|
||||
# The following files are GPLv2:
|
||||
# - src/mapstorage/basemapsavefilter.cpp
|
||||
# - src/mapstorage/basemapsavefilter.h
|
||||
# - src/mapstorage/filesaver.cpp
|
||||
# - src/mapstorage/filesaver.h
|
||||
# - src/mapstorage/progresscounter.cpp
|
||||
# - src/mapstorage/progresscounter.h
|
||||
# The rest of the source files are GPLv2+
|
||||
License: GPLv2
|
||||
License: GPLv2+
|
||||
URL: http://sourceforge.net/projects/mmapper
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-%{extraversion}-source.tar.gz
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.tar.gz
|
||||
# Backported patch from upstream svn
|
||||
Patch0: mmapper-2.1.0-system_qtiocompressor.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: qt4-devel
|
||||
BuildRequires: qtiocompressor-devel
|
||||
Requires: hicolor-icon-theme
|
||||
|
||||
%description
|
||||
|
@ -37,7 +26,11 @@ data in real time and show player's position in a map.
|
|||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}-%{extraversion}-source
|
||||
%setup -q -n %{name}-%{version}-source
|
||||
%patch0 -p1 -b .system_qtiocompressor
|
||||
|
||||
# remove bundled copy of qtiocompressor
|
||||
rm -rf src/3rdparty
|
||||
|
||||
|
||||
%build
|
||||
|
@ -78,14 +71,24 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS.txt ChangeLog.txt COPYING.txt doc/*.txt
|
||||
%doc src/3rdparty/LGPL_EXCEPTION.txt src/3rdparty/LICENSE.LGPL
|
||||
%doc ChangeLog.txt COPYING.txt doc/*.txt
|
||||
%{_bindir}/mmapper
|
||||
%{_datadir}/applications/mmapper.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/mmapper.png
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 23 2010 Kalev Lember <kalev@smartlink.ee> - 2.1.0-1
|
||||
- Update to 2.1.0
|
||||
- Dropped upstreamed patches
|
||||
- Use system copy of qtiocompressor
|
||||
|
||||
* Thu Feb 25 2010 Kalev Lember <kalev@smartlink.ee> - 2.0.4-5.final2
|
||||
- Added patch to fix renderer crash with Qt 4.6
|
||||
|
||||
* Thu Feb 25 2010 Kalev Lember <kalev@smartlink.ee> - 2.0.4-4.final2
|
||||
- Rebuilt with Qt 4.6
|
||||
|
||||
* Mon Nov 23 2009 Kalev Lember <kalev@smartlink.ee> - 2.0.4-3.final2
|
||||
- Updated source URL.
|
||||
|
||||
|
|
Loading…
Reference in New Issue