bootstrap
[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 Summary: Microsoft Windows platform filesystem access.
20 Name: @PACKAGE@
21 %define release 0
22 Version: @VERSION@
23 Release: %{release}
24 Group: Applications/System
25 Source: http://short.vellum.cz/sw/@PACKAGE@-@VERSION@.tar.gz
26 Copyright: GPL
27 BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
28
29 %description
30 Microsoft Windows platform filesystem access.
31 TODO
32
33 %package devel
34 Summary: Microsoft Windows platform filesystem access development support.
35 Group: Development/System
36 Requires: surprise = %{PACKAGE_VERSION}
37
38 %description devel
39 Development package containing libraries for static linking together with
40 header files needed for any linking.
41
42 Microsoft Windows platform filesystem access.
43 TODO
44
45 %prep
46 %setup
47
48 %build
49 # Never disable debug for captive, see FAQ
50 #       "How to check valid input arguments? Invalid processing state assumptions?"
51 %configure \
52                 --enable-shared --enable-static
53 make
54
55 %install
56 make DESTDIR=$RPM_BUILD_ROOT install-strip
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post
62 /sbin/ldconfig
63
64 %postun
65 /sbin/ldconfig
66
67 %files
68 %defattr(-,root,root)
69 %doc INSTALL
70 /sbin/@PACKAGE@cmdline
71 /usr/bin/@PACKAGE@server
72 /usr/share/@PACKAGE@
73 /usr/share/locale/*/LC_MESSAGES/@PACKAGE@.mo
74 #for version-info use: /lib/*.so.*
75 ###for --disable-shared/(--enable-static-link disable):
76 /usr/lib/*-*.so
77
78 %files devel
79 %defattr(-,root,root)
80 %doc ChangeLog
81 /usr/include/@PACKAGE@
82 /usr/share/aclocal/*
83 /usr/lib/*.a
84 /usr/lib/*.la
85 ###for --disable-shared/(--enable-static-link disable):
86 /usr/lib/*[a-z].so