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

0001 
0002 %define release 1
0003 
0004 Name: libmxp
0005 Version: 0.2.4
0006 Release: %{release}
0007 Summary: Library to parse MXP (MUD eXtension Protocol) streams
0008 License: LGPL
0009 BuildRequires: cmake gcc-c++
0010 Group: System/Libraries
0011 URL: http://www.kmuddy.org/libmxp/
0012 Packager: Tomas Mecir <kmuddy@kmuddy.com>
0013 Source: http://www.kmuddy.org/libmxp/files/libmxp-%{version}.tar.gz
0014 BuildRoot: %{_tmppath}/%{name}-%{version}-build
0015 
0016 %description
0017 This library can be used by MUD clients to parse MXP chunks coming from
0018 the MUD server.
0019 
0020 %package -n libmxp0
0021 Summary: Library to parse MXP (MUD eXtension Protocol) streams
0022 Group: System/Libraries
0023 
0024 %description -n libmxp0
0025 This library can be used by MUD clients to parse MXP chunks coming from
0026 the MUD server.
0027 
0028 # **************************************************************************
0029 
0030 %package -n libmxp-devel
0031 Summary: Development files for the libmxp library
0032 Group: Development/Libraries
0033 Requires: libmxp0 = %{version}-%{release}
0034 
0035 %description -n libmxp-devel
0036 This package contains development headers for the libmxp library.
0037 
0038 # **************************************************************************
0039 # [PREPARATION]
0040 %prep
0041 
0042 %ifarch x86_64
0043 %define _libdir lib64
0044 %define _script configure64
0045 %else
0046 %define _libdir lib
0047 %define _script configure
0048 %endif
0049 
0050 %setup -q -n libmxp-%{version}
0051 
0052 # **************************************************************************
0053 # [BUILD]
0054 %build
0055 
0056 %ifarch i386 i486 i586 i686
0057 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/-m\(.86\)/-mcpu=i\1/g'`
0058 %endif
0059 
0060 ./%{_script}
0061 
0062 make
0063 
0064 # **************************************************************************
0065 # [INSTALLATION]
0066 %install
0067 
0068 make install DESTDIR=$RPM_BUILD_ROOT
0069 
0070 %post -n libmxp0
0071 /sbin/ldconfig
0072 
0073 %postun -n libmxp0
0074 /sbin/ldconfig
0075 
0076 
0077 # **************************************************************************
0078 # [VERIFICATION]
0079 
0080 # **************************************************************************
0081 # [CLEAN]
0082 %clean
0083 
0084 rm -rf $RPM_BUILD_ROOT
0085 
0086 # **************************************************************************
0087 # [FILES]
0088 %files -n libmxp0
0089 
0090 %defattr(-, root, root)
0091 %doc AUTHORS COPYING COPYING.LIB ChangeLog* NEWS README* TODO
0092 %{_prefix}/%{_libdir}/libmxp.so.0*
0093 
0094 %files -n libmxp-devel
0095 %defattr(-, root, root)
0096 %dir %{_prefix}/include/libmxp
0097 %doc doc/USAGE
0098 %{_prefix}/include/libmxp/libmxp.h
0099 %{_prefix}/%{_libdir}/libmxp.so
0100