'Changelog' moved: base RPM package -> '-devel' RPM package
[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                 --with-readline
61 make
62
63 %install
64 make DESTDIR=$RPM_BUILD_ROOT install-strip
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post
70 /sbin/ldconfig
71
72 %postun
73 /sbin/ldconfig
74
75 %files
76 %defattr(-,root,root)
77 %doc README NEWS AUTHORS
78 %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs-@VERSION@.so
79 %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.so
80 %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
81 %{_libdir}/libcaptive-@VERSION@.so
82 %{_bindir}/captive-cmdline
83 %{_sysconfdir}/gnome-vfs-2.0/modules/captive.conf
84 %{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo
85
86 # %files devel
87 # %defattr(-,root,root)
88 # %doc ChangeLog
89 # /usr/include/@PACKAGE@
90 # /usr/share/aclocal/*
91 # /usr/lib/*.a
92 # /usr/lib/*.la
93 # ###for --disable-shared/(--enable-static-link disable):
94 # /usr/lib/*[a-z].so