mlview-hacking
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mlview-hacking] RPM .spec file


From: Pierre Sarrazin
Subject: [Mlview-hacking] RPM .spec file
Date: Sun, 13 Jan 2002 15:06:40 -0500
User-agent: Mutt/1.2.5.1i

I wrote an RPM .spec.in file for mlview.  Using it requires that the
following line be added to the top-level Makefile.am:

EXTRA_DIST = autogen.sh mlview.spec

The filename mlview.spec must also be added to the AC_OUTPUT()
clause in configure.in.

By the way, the configure script does not fail when the system
does not have the libxml2 library.

I worked with mlview-0.0.1.3.tar.gz on a RedHat 6.2 system.


----[ mlview.spec.in ]------------------------------------------------------
# RPM .spec file for afternoonstalker

Summary: XML Editor for GNOME
Name: @PACKAGE@
Version: @VERSION@
Release: 1
Copyright: GPL
Group: Applications/Editors
Source: %{name}-%{version}.tar.gz
URL: http://www.freesoftware.fsf.org/mlview/
Packager: ?
Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: libxml2 >= 2.4.3, gtk+ >= 1.2.10, gnome-libs >= 1.2.11

%description
MlView (Markup language Viewer) is a simple XML editor for GNOME.

%prep
%setup

%build
./configure --prefix=%{prefix} && make

%install
rm -fR $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

# Install an entry in the GNOME Applications menu:
mkdir -p $RPM_BUILD_ROOT/usr/share/gnome/apps/Applications
cat <<EOF >$RPM_BUILD_ROOT/usr/share/gnome/apps/Applications/mlview.desktop
[Desktop Entry]
Name=MlView
Comment=MlView - XML editor for GNOME
Comment[fr]=MlView - Éditeur XML pour GNOME
Exec=mlv
Terminal=0
Type=Application
EOF

%clean
rm -fR $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{prefix}/bin/mlv
%{prefix}/share/locale/fr/LC_MESSAGES/mlview.mo
/usr/share/gnome/apps/Applications/mlview.desktop



reply via email to

[Prev in Thread] Current Thread [Next in Thread]