[CentOS-devel] mp3info: contributed RPM submission

Sun Apr 2 14:14:10 UTC 2006
Durval Menezes <durval at tmp.com.br>

Hello,

Here's my submission for a new package: fvwm, the (in)famous F* Virtual
Window Manager.

The URL to the SRPM is: 
    http://www.durval.com.br/RPMS/el4/fvwm/fvwm-2.4.19-1dm.el4.src.rpm

I've attached the .spec file.

Best Regards,
-- 
   Durval Menezes (durval AT tmp DOT com DOT br, http://www.tmp.com.br/)
-------------- next part --------------
#%define prefix %{_prefix}
%define prefix /usr

%define ver 2.4.19  %define old_ver 2.4.19
%define rel 1dm.el4  %define old_rel 1
%define c_p --without-gnome --without-rplay-library --sysconfdir=/etc  %define old_c_p --disable-multibyte --sysconfdir=/etc
%define m_p CFLAGS="-O2"  %define old_m_p CFLAGS="-O2"

# Different distributions expect sources to be in different places;
# the following solves this problem, but makes it harder to reuse .src.rpm
%define _sourcedir /usr/local/src/RPM-building/SOURCES

Summary:   F(?) Virtual Window Manager
Name:      fvwm
Version:   %{ver}
Release:   %{rel}
Copyright: GPL
Group:     X11/Window Managers
Source:    %{name}-%{version}.tar.gz
URL:       http://www.fvwm.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Packager:  Durval Menezes <durval AT tmp DOT com DOT br>, based on original SRPM from FVWM Workers <fvwm-workers at fvwm.org>
Autoreq:   1

Requires:  libXpm.so.4
#Requires:  xpm >= 3.4g
Requires:  perl >= 5.002

# GTK, Imlib, stroke

# RedHat should stop using name "fvwm" to refer to fvwm1 package.
Provides:  fvwm, fvwm2

Docdir:    %{prefix}/share/doc

%description
FVWM is a powerful ICCCM-compliant multiple virtual desktop window manager
for the X Window System.

This 2.4 version includes new features like colorsets, ICCCM2 and GNOME
compliance, session management, improvements in all modules, several
new modules, revised menu code, stroke support and much more.

%description -l fr
FVWM est un gestionnaire de fen?tres puissant et extr?mement configurable
pour le syst?me X Window.

La version 2.4 contient un grand nombre de nouvelles fonctionnalit?s.
Voici quelques exemples:
gestion des ensembles de couleurs (colorset),
respect de l'ICCCM2 et du protocole GNOME,
support pour les gestionnaires de sessions,
am?lioration des modules ainsi que de nouveaux modules,
le code pour les menus a ?t? enti?rement refondu, 
les mouvements de souris peuvent ?tre li?s ? des actions (stroke).

%description -l ru
FVWM ???????? ?????? ??????? ?????????? ??? X Window System, ???????????????
?????????? ICCCM, ? ?????????? ????????????? ?????????? ?????????.

?????? 2.4 ???????? ? ???? ????? ???????????, ????? ??? ???????? ?????????
(colorsets), ???????????? ICCCM2 ? ????????????? ? GNOME, ?????????? ??????,
????????? ?? ???? ???????, ????????? ????? ???????, ?????????????? ??? ????,
????????? stroke ? ?????? ??????.

%prep
%setup

%build
# gnome libs are only used in FvwmGtk, probably it is overhead to require it
# compiling without -g saves about 7Mb
./configure --prefix=%{prefix} %{c_p}
make %{m_p}

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)

%doc AUTHORS COPYING INSTALL INSTALL.fvwm NEWS README
%doc docs/ANNOUNCE docs/BUGS docs/DEVELOPERS docs/FAQ docs/TODO
%doc docs/color_combos docs/error_codes docs/fvwm.lsm docs/m4_hacks
%{prefix}/bin/*
%{prefix}/libexec/*
%{prefix}/man/*/*
%{prefix}/share/*

%changelog
* Wed Mar 1 2006 Durval Menezes <durval AT tmp DOT com DOT br> [2.4.19-1dm.el4]
- Adapted to TMPLinux4 (RHEL4-based).

## TODO: how to specify the current date in .spec? Or how to run a `command`?
#%changelog
#
#* Wed 12 May 2000 20:00:00 IDT  FVWM Workers  <fvwm-workers at fvwm.org>
#- Auto building %{PACKAGE_VERSION}
#
#* Wed 12 May 2000 20:00:00 IDT  Mikhael Goikhman  <migo at homemail.com>
#- First try at making the package