crossmingw32-wxMSW.spec
Cezary Krzyżanowski
dhubleizh at o2.pl
Fri Jul 2 13:23:39 CEST 2004
Jakub Piotr Cłapa wrote:
> przed robieniem (a potem w %prep przed nakładaniem) łatki zrób na nich
> dos2unix.
>
Hm...rzeczywiscie sensowniejsze rozwiązanie...poprawiony spec z dos2unix
zamieszczam poniżej
Pozdrawiam i thx 4 help
Cz at rny
--
__________________________________________________
"Fear leads to anger, anger leads to hate, hate leads to The Dark Side"
- Yoda
-------------- next part --------------
# $Revision: 1.27 $, $Date: 2004/02/15 13:39:20 $
%bcond_without debug #disable debug feature
%bcond_without gdb #debuging programs with gdb
%bcond_with shared #compile with shared libraries
Summary: wxMSW port to mingw32
Summary(pl): skrosne biblioteki wxMSW dla mingw32
Name: crossmingw32-wxMSW
Version: 2.4.2
Release: 1
License: wxWindows License, GPL
Group: Development/Libraries
Source0: http://dl.sourceforge.net/wxwindows/wxMSW-%{version}.zip
# Source0-md5: 2b1594182175c3afe33c2c2f443d6000
URL: www.wxwindows.org
BuildRequires: crossmingw32-gcc-c++
BuildRequires: crossmingw32-binutils
BuildRequires: unzip
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define target i386-mingw32
%define target_platform i386-pc-mingw32
%define arch %{_prefix}/%{target}
%define __cc %{target}-gcc
%define __cxx %{target}-g++
%define __strip %{target}-strip
%description
wxWindows is a C++ library packed with classes used for easy
developement of multi platform programs and especially their GUI. It's
packed with own implementation of basic C++ types, to ensure proper
running on all platforms. wxWindows allows easy porting applications
by changing only one option
- the GUI used.
This paricular package contains wxWindows using native MS Windows
widgets.
%description -l pl
wxWindows to napisana w C++ biblioteka z klasami przeznaczonymi do
łatwego tworzenia wieloplatformowych programów, a szczególnie ich GUI.
Zawiera własną implementację podstawowych typów w C++, aby zapewnić
poprawną pracę na wszystkich platformach. wxWindows pozwala łatwo
przenosić aplikacje do innego środowiska przez zmianę tylko jednego
parametru - GUI
Ta konkretna paczka zawiera wxWindows korzystająca z natywnych
widgetów MS Windows.
%prep
%setup -q -n wxWindows-%{version}
dos2unix configure \
config.sub \
config.guess \
contrib/configure \
demos/configure \
samples/configure \
utils/configure
chmod +x configure config.sub config.guess
%build
CFLAGS=-O2
CXXFLAGS=-O2
./configure --with-msw \
%{?with_debug:--enable-debug} \
%{?with_gdb:--enable-debug_gdb} \
%{!?with_shared:--disable-shared} \
--build=%{_host} --host=i386-mingw32 \
--prefix=$RPM_BUILD_ROOT%{arch}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
# create directories if necessary
install -d $RPM_BUILD_ROOT
%{__make} install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%dir %{arch}/include/wx/*
%dir %{arch}/include/wx/generic/*
%dir %{arch}/include/wx/html/*
%dir %{arch}/include/wx/msw/*
%dir %{arch}/include/wx/msw/gnuwin32/*
%dir %{arch}/include/wx/msw/gnuwin32/gl/*
%dir %{arch}/include/wx/msw/ole/*
%dir %{arch}/include/wx/protocol/*
%dir %{arch}/include/wx/unix/*
%dir %{arch}/lib/*
%if %{!with debug}
%dir %{arch}/lib/wx/include/mswd-2.4/wx/*
%else
%dir %{arch}/lib/wx/include/msw-2.4/wx/*
%endif
%dir %{arch}/share/aclocal/*
%dir %{arch}/bin/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log:$
More information about the pld-devel-pl
mailing list