Fixed/updated to get it working for the first time
[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 %configure \
55                 --enable-shared --disable-static \
56                 --disable-debug
57 make
58
59 %install
60 make DESTDIR=$RPM_BUILD_ROOT install-strip
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %post
66 /sbin/ldconfig
67
68 %postun
69 /sbin/ldconfig
70
71 %files
72 %defattr(-,root,root)
73 %doc README NEWS AUTHORS ChangeLog
74 %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs-@VERSION@.so
75 %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.so
76 %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
77 %{_libdir}/libcaptive-@VERSION@.so
78 %{_sysconfdir}/gnome-vfs-2.0/modules/captive.conf
79 %{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo
80
81 # %files devel
82 # %defattr(-,root,root)
83 # #%doc ChangeLog
84 # /usr/include/@PACKAGE@
85 # /usr/share/aclocal/*
86 # /usr/lib/*.a
87 # /usr/lib/*.la
88 # ###for --disable-shared/(--enable-static-link disable):
89 # /usr/lib/*[a-z].so