Improved spec file as per feedback in gnome-devel-list.

This commit is contained in:
John Gotts
2001-04-05 00:10:16 +00:00
parent 21ecc84514
commit 1c64d5c704
2 changed files with 31 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
2001-04-04 John Gotts <jgotts@linuxsavvy.com>
* libgtop.spec.in: Fixed categories. Also build examples. Improved
file lists.
2001-03-17 Marius Andreiana <mandreiana@yahoo.com>
* configure.in: Added ro (Romanian) to ALL_LINGUAS

View File

@@ -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/*