1 | # |
---|
2 | # Note that this is NOT a relocatable package |
---|
3 | # $Id: medusa.spec.in,v 1.1.1.1 2001-01-16 15:30:50 ghudson Exp $ |
---|
4 | # |
---|
5 | %define name @PACKAGE@ |
---|
6 | %define ver @VERSION@ |
---|
7 | %define RELEASE 1 |
---|
8 | %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} |
---|
9 | %define prefix @prefix@ |
---|
10 | %define sysconfdir /etc |
---|
11 | |
---|
12 | Summary: Medusa, the search and indexing package for use with Eazel's Nautilus. |
---|
13 | Name: %name |
---|
14 | Version: %ver |
---|
15 | Release: %rel |
---|
16 | Copyright: LGPL |
---|
17 | Vendor: Eazel Inc. |
---|
18 | Distribution: Eazel PR2 |
---|
19 | Group: System Environment/Base |
---|
20 | Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/medusa/medusa-%{ver}.tar.gz |
---|
21 | BuildRoot: /var/tmp/medusa |
---|
22 | URL: http://www.gnome.org |
---|
23 | Prereq: /sbin/install-info |
---|
24 | Prefix: %{prefix} |
---|
25 | Docdir: %{prefix}/doc |
---|
26 | Requires: glib >= 1.2.0 |
---|
27 | Requires: gnome-vfs >= 0.1 |
---|
28 | |
---|
29 | %description |
---|
30 | Medusa, the GNOME search/indexing package. |
---|
31 | |
---|
32 | %package devel |
---|
33 | Summary: Libraries and include files for developing nautilus components |
---|
34 | Group: Development/Libraries |
---|
35 | Requires: %name = %{PACKAGE_VERSION} |
---|
36 | Obsoletes: %{name}-devel |
---|
37 | |
---|
38 | %description devel |
---|
39 | This package provides the necessary development libraries and include |
---|
40 | files to allow you to develop medusa components. |
---|
41 | |
---|
42 | %changelog |
---|
43 | * Sun Jun 11 2000 Eskil Heyn Olsen <deity@eazel.com> |
---|
44 | - Created the .spec file |
---|
45 | |
---|
46 | %prep |
---|
47 | %setup |
---|
48 | |
---|
49 | %build |
---|
50 | # Needed for snapshot releases. |
---|
51 | if [ ! -f configure ]; then |
---|
52 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --enable-more-warnings --prefix=%prefix --sysconfdir=$RPM_BUILD_ROOT/etc |
---|
53 | else |
---|
54 | CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-more-warnings --prefix=%prefix --sysconfdir=$RPM_BUILD_ROOT/etc |
---|
55 | fi |
---|
56 | make -k check |
---|
57 | |
---|
58 | %install |
---|
59 | rm -rf $RPM_BUILD_ROOT |
---|
60 | make -k prefix=$RPM_BUILD_ROOT%{prefix} install |
---|
61 | |
---|
62 | %clean |
---|
63 | rm -rf $RPM_BUILD_ROOT |
---|
64 | |
---|
65 | %post -p /sbin/ldconfig |
---|
66 | |
---|
67 | %postun -p /sbin/ldconfig |
---|
68 | |
---|
69 | %files |
---|
70 | %defattr (0755, bin, bin) |
---|
71 | %config %{sysconfdir}/cron.daily/medusa.cron |
---|
72 | |
---|
73 | %defattr(-, bin, bin) |
---|
74 | %config %{sysconfdir}/vfs/modules/*.conf |
---|
75 | %{prefix}/bin/medusa-config |
---|
76 | %{prefix}/bin/medusa-indexd |
---|
77 | %{prefix}/bin/medusa-searchd |
---|
78 | %{prefix}/bin/msearch |
---|
79 | %{prefix}/lib/*.0 |
---|
80 | %{prefix}/lib/*.so |
---|
81 | %{prefix}/lib/vfs/modules/*.so |
---|
82 | %{prefix}/share/medusa/file-index-stoplist |
---|
83 | |
---|
84 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
85 | |
---|
86 | %files devel |
---|
87 | %defattr(-, bin, bin) |
---|
88 | %{prefix}/include/libmedusa/*.h |
---|
89 | %{prefix}/lib/*.la |
---|
90 | %{prefix}/lib/vfs/modules/*.la |
---|