Warning, /games/kmuddy/kmuddy.spec is written in an unsupported language. File is not indexed.

0001 # This is a generic spec-file for the OpenSuSE BuildService. It likely won't work for anything else without adjustments.
0002 
0003 %define _name kmuddy
0004 %define _version 1.0.1
0005 %define _release 1
0006 %define _prefix /usr
0007 
0008 Summary:   MUD client for KDE4
0009 BuildRequires: gcc-c++ cmake >= 2.6.0 libmxp-devel
0010 
0011 %if 0%{?suse_version}
0012 Requires: kdelibs4 >= 4.1 libqt4 >= 4.4.0 libkde4 >= 4.1
0013 BuildRequires: libqt4-devel >= 4.4.0 libkde4-devel >= 4.1
0014 %endif
0015 
0016 %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
0017 Requires: kdelibs4 >= 4.1 qt4 >= 4.4.0
0018 BuildRequires: qt4-devel >= 4.4.0 kdelibs4-devel >= 4.1
0019 %endif
0020 
0021 %if 0%{?mandriva_version}
0022 Requires: kdelibs4-core >= 4.1 libqt4 >= 4.4.0
0023 BuildRequires: libqt4-devel >= 4.4.0 kdelibs4-devel >= 4.1
0024 %endif
0025 
0026 Name:      %{_name}
0027 Version:   %{_version}
0028 Release:   %{_release}
0029 Vendor:    Tomas Mecir <kmuddy@kmuddy.com>
0030 Url:      http://www.kmuddy.com/
0031 Packager:  %{_packager}
0032 Group:     Amusement/Games/Other
0033 Source:    %{_name}-%{_version}.tar.gz
0034 License: GPL
0035 BuildRoot: %{_tmppath}/%{name}-%{version}-build
0036 
0037 %description
0038 KMuddy is an extensible MUD client for KDE4. It includes many features such as ANSI color output with split-screen functionality, aliases, triggers (including colorization, rewrite and gag triggers), timers, scripting, recursive grouping for all object types, session transcript, a mapper with auto-mapping support and much more. The MCCP, MSP and MXP protocols are supported. A plug-in interface is also available.
0039 
0040 %package devel
0041 Summary: Files needed to develop KMuddy plugins
0042 Group:   Amusement/Games/Other
0043 Requires: kmuddy libkde4-devel >= 4.1
0044 
0045 %description devel
0046 This package contains the header files needed to compile KMuddy plug-ins.
0047 
0048 %package mapper
0049 Summary: A mapper module for KMuddy
0050 Group:   Amusement/Games/Other
0051 Requires: kmuddy
0052 
0053 %description mapper
0054 This package contains the mapper plug-in for KMuddy.
0055 
0056 
0057 %prep
0058 %setup
0059 
0060 %ifarch x86_64
0061 %define _libdir lib64
0062 %else
0063 %define _libdir lib
0064 %endif
0065 
0066 KDEDIR=%{_prefix}
0067 cmake . -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=%{_prefix} $LOCALFLAGS
0068 %build
0069 
0070 # Setup for parallel builds
0071 numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
0072 if [ "$numprocs" = "0" ]; then
0073   numprocs=1
0074 fi
0075 
0076 # properly find Qt4 on Mandriva
0077 %if 0%{?mandriva_version}
0078 export PATH=/usr/lib/qt4/bin:$PATH  
0079 export QTDIR=%{_prefix}/lib/qt4/  
0080 %endif  
0081 
0082 make -j$numprocs
0083 
0084 %install
0085 make install DESTDIR=$RPM_BUILD_ROOT
0086 
0087 %clean
0088 rm -rf $RPM_BUILD_ROOT/*
0089 rm -rf $RPM_BUILD_DIR/%{_name}-%{version}
0090 
0091 %post
0092 /sbin/ldconfig
0093 
0094 %postun
0095 /sbin/ldconfig
0096 
0097 %files
0098 %defattr(-,root,root)
0099 %dir %{_prefix}/share/kde4/apps/kmuddy
0100 %{_prefix}/bin/kmuddy
0101 %{_prefix}/%{_libdir}/libkmuddycore.so.1.0.0
0102 %{_prefix}/%{_libdir}/libkmuddycore.so.1
0103 %{_prefix}/share/kde4/servicetypes/kmuddyplugin.desktop
0104 %{_prefix}/share/icons/hicolor/16x16/apps/kmuddy.png
0105 %{_prefix}/share/icons/hicolor/32x32/apps/kmuddy.png
0106 %{_prefix}/share/icons/locolor/16x16/apps/kmuddy.png
0107 %{_prefix}/share/icons/locolor/32x32/apps/kmuddy.png
0108 %{_prefix}/share/kde4/apps/kmuddy/muds.xml
0109 %{_prefix}/%{_libdir}/kde4/kmuddyconverterplugin.so
0110 %{_prefix}/%{_libdir}/kde4/kmuddystringsplugin.so
0111 %{_prefix}/%{_libdir}/kde4/kmuddyscriptingplugin.so
0112 %{_prefix}/%{_libdir}/kde4/kmuddyvartrigplugin.so
0113 %{_prefix}/%{_libdir}/kde4/kmuddyvarviewerplugin.so
0114 %{_prefix}/share/kde4/services/kmuddyconverterplugin.desktop
0115 %{_prefix}/share/kde4/services/kmuddystringsplugin.desktop
0116 %{_prefix}/share/kde4/services/kmuddyvartrigplugin.desktop
0117 %{_prefix}/share/kde4/services/kmuddyvarviewerplugin.desktop
0118 %{_prefix}/share/kde4/services/kmuddyscriptingplugin.desktop
0119 %{_prefix}/share/kde4/apps/kmuddy/kmuddy-usock-test.pl
0120 %{_prefix}/share/kde4/apps/kmuddy/pre.c
0121 %{_prefix}/share/kde4/apps/kmuddy/vartest.c
0122 %{_prefix}/share/kde4/apps/kmuddy/kmuddy-usock-client.pl
0123 %{_prefix}/share/kde4/apps/kmuddy/kmuddyvars.h
0124 %{_prefix}/share/kde4/apps/kmuddy/kmuddymapper_speedwalk.rc
0125 %{_prefix}/share/kde4/apps/kmuddy/kmuddymapper_standard.rc
0126 %{_prefix}/share/kde4/apps/kmuddy/tmpserver.pl
0127 %{_prefix}/share/kde4/apps/kmuddy/README
0128 %{_prefix}/share/kde4/apps/kmuddy/locktest.c
0129 %{_prefix}/share/kde4/apps/kmuddy/testserver.cpp
0130 
0131 
0132 %files devel
0133 %defattr(-,root,root)
0134 %{_prefix}/%{_libdir}/libkmuddycore.so
0135 %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
0136 %dir /usr/include/kde4/kmuddy
0137 %{_prefix}/include/kde4/kmuddy/*.h
0138 %else
0139 %dir /usr/include/kmuddy
0140 %{_prefix}/include/kmuddy/*.h
0141 %endif
0142 
0143 %files mapper
0144 %defattr(-,root,root)
0145 %dir %{_prefix}/share/kde4/apps/kmuddy/pics
0146 %dir %{_prefix}/share/kde4/apps/kmuddy/toolbar
0147 %{_prefix}/%{_libdir}/kde4/kmuddymapper.so
0148 %{_prefix}/%{_libdir}/kde4/libkmuddymapper_standard.so
0149 %{_prefix}/%{_libdir}/kde4/libkmuddymapper_speedwalk.so
0150 %{_prefix}/share/kde4/services/kmuddymapper.desktop
0151 %{_prefix}/share/kde4/services/kmuddymapper_standard.desktop
0152 %{_prefix}/share/kde4/services/kmuddymapper_speedwalk.desktop
0153 %{_prefix}/share/kde4/apps/kmuddy/kmuddymapperpart.rc
0154 %{_prefix}/share/kde4/servicetypes/kmuddymapperplugin.desktop
0155 %{_prefix}/share/kde4/apps/kmuddy/pics/kmud_follow.png
0156 %{_prefix}/share/kde4/apps/kmuddy/pics/kmud_properties.png
0157 %{_prefix}/share/kde4/apps/kmuddy/pics/kmud_inactive.png
0158 %{_prefix}/share/kde4/apps/kmuddy/pics/kmud_active.png
0159 %{_prefix}/share/kde4/apps/kmuddy/pics/kmud_delete.png
0160 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_eraser.png
0161 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_select.png
0162 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_grid.png
0163 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_text.png
0164 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_path.png
0165 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_room.png
0166 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_zone.png
0167 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_directions.png
0168 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_lvlup.png
0169 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_create.png
0170 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_zoneup.png
0171 %{_prefix}/share/kde4/apps/kmuddy/toolbar/kmud_lvldown.png
0172