summaryrefslogtreecommitdiff
path: root/libgtop.spec.in
diff options
context:
space:
mode:
authorJohn Gotts <jgotts@src.gnome.org>2001-04-05 00:10:16 +0000
committerJohn Gotts <jgotts@src.gnome.org>2001-04-05 00:10:16 +0000
commit1c64d5c7040ca921b3324a33a61aa8827bf47851 (patch)
tree8528a12a0410ea347e796a16e826bebcf6d5c775 /libgtop.spec.in
parent21ecc845141c410d818124cfb6385d506adc9b1d (diff)
downloadlibgtop-1c64d5c7040ca921b3324a33a61aa8827bf47851.tar.gz
Improved spec file as per feedback in gnome-devel-list.
Diffstat (limited to 'libgtop.spec.in')
-rw-r--r--libgtop.spec.in37
1 files changed, 26 insertions, 11 deletions
diff --git a/libgtop.spec.in b/libgtop.spec.in
index 66dfeb6c..0cf8b904 100644
--- a/libgtop.spec.in
+++ b/libgtop.spec.in
@@ -1,6 +1,6 @@
# Note that this is NOT a relocatable package
%define ver @VERSION@
-%define RELEASE SNAP
+%define RELEASE 1
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define prefix /usr
@@ -9,9 +9,9 @@ Name: libgtop
Version: %ver
Release: %rel
Copyright: LGPL
-Group: X11/Libraries
+Group: System Environment/Libraries
Source: ftp://ftp.gnome.org/pub/GNOME/sources/libgtop/libgtop-%{ver}.tar.gz
-BuildRoot: /tmp/libgtop-root
+BuildRoot: /var/tmp/%{name}-%{ver}-root
Packager: Martin Baulig <martin@home-of-linux.org>
URL: http://www.home-of-linux.org/gnome/libgtop/
Prereq: /sbin/install-info
@@ -28,12 +28,19 @@ information from /dev/kmem or whatever.
%package devel
Summary: Libraries, includes, etc to develop LibGTop applications
-Group: X11/libraries
+Group: Development/Libraries
Requires: libgtop
%description devel
Libraries, include files, etc you can use to develop GNOME applications.
+%package examples
+Summary: Examples for LibGTop
+Group: Development/Libraries
+Requires: libgtop
+
+%description examples
+Examples for LibGTop.
%changelog
@@ -51,12 +58,12 @@ Libraries, include files, etc you can use to develop GNOME applications.
%build
# Needed for snapshot releases.
if [ ! -f configure ]; then
- CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-guile --with-libgtop-smp
+ CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-examples --with-libgtop-guile --with-libgtop-smp
else
%ifarch alpha
- CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-guile --with-libgtop-smp
+ CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-examples --with-libgtop-guile --with-libgtop-smp
%else
- CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-guile --with-libgtop-smp
+ CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-examples --with-libgtop-guile --with-libgtop-smp
%endif
fi
@@ -99,17 +106,25 @@ rm -rf $RPM_BUILD_ROOT
%doc TODO NEWS.old copyright.txt
%doc src/inodedb/README.inodedb
+%{prefix}/bin/file_by_inode
+%{prefix}/bin/libgtop_daemon
+%{prefix}/bin/mkinodedb
%{prefix}/lib/lib*.so.*
-%{prefix}/share/*
-%{prefix}/bin/*
+%{prefix}/share/locale/*/LC_MESSAGES/*.mo
+%{prefix}/info/*
%files devel
%defattr(-, root, root)
+%{prefix}/bin/libgtop-config
%{prefix}/lib/lib*.so
%{prefix}/lib/*a
%{prefix}/lib/*.sh
%{prefix}/lib/*.def
-%{prefix}/include/*
-%{prefix}/lib/libgtop
+%{prefix}/include/glibtop/*
+%{prefix}/include/*.h
+%files examples
+%defattr(-,root,root)
+
+%{prefix}/libexec/libgtop/*