+workaround gcc __stdcall__ bug by reducing CFLAGS optimizations
[captive.git] / captive.spec.in
1 # $Id$
2 # rpm package description file for building
3 # Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 # Temporary cludge before full 'devel' package gets deployed
20 %define _unpackaged_files_terminate_build 0
21
22 Summary: Microsoft Windows platform filesystem access.
23 Name: @PACKAGE@
24 %define release 0
25 Version: @VERSION@
26 Release: %{release}
27 Group: Applications/System
28 Source: http://www.jankratochvil.net/sw/@PACKAGE@-@VERSION@.tar.gz
29 Copyright: GPL
30 BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
31
32 %description
33 Microsoft Windows platform filesystem access.
34 TODO
35
36 #% %package devel
37 #% Summary: Microsoft Windows platform filesystem access development support.
38 #% Group: Development/System
39 #% Requires: surprise = %{PACKAGE_VERSION}
40 #% 
41 #% %description devel
42 #% Development package containing libraries for static linking together with
43 #% header files needed for any linking.
44 #% 
45 #% Microsoft Windows platform filesystem access.
46 #% TODO
47
48 %prep
49 %setup
50
51 %build
52 # Never disable debug for captive, see FAQ
53 #       "How to check valid input arguments? Invalid processing state assumptions?"
54 # FIXME: Use our own CFLAGS to prevent '-mcpu=i686' which up to gcc-20030214 gcc
55 # will ignore stack freeing of attribute((stdcall)) callees in caller functions code.
56 # Check at the final call of src/libcaptive/reactos/ntoskrnl/io/irp.c/IofCallDriver().
57 CFLAGS="-O2"
58 %configure \
59                 --enable-shared --disable-static
60 make
61
62 %install
63 make DESTDIR=$RPM_BUILD_ROOT install-strip
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post
69 /sbin/ldconfig
70
71 %postun
72 /sbin/ldconfig
73
74 %files
75 %defattr(-,root,root)
76 %doc README NEWS AUTHORS ChangeLog
77 %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs-@VERSION@.so
78 %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.so
79 %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
80 %{_libdir}/libcaptive-@VERSION@.so
81 %{_sysconfdir}/gnome-vfs-2.0/modules/captive.conf
82 %{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo
83
84 # %files devel
85 # %defattr(-,root,root)
86 # #%doc ChangeLog
87 # /usr/include/@PACKAGE@
88 # /usr/share/aclocal/*
89 # /usr/lib/*.a
90 # /usr/lib/*.la
91 # ###for --disable-shared/(--enable-static-link disable):
92 # /usr/lib/*[a-z].so