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

(mgp-users 00162) spec-file for magicpoint (fwd)



here is my spec-file for magicpoint, it surely can be improved !

if you include it into your tarball, one can easily create rpm-packages by
typing: rpm -ta magicpoint*.tar.gz (which is a Good Thing ;p)

thanks in advance.

--
dag wieers, <dag@life.be>, http://dag.life.be/  _| _  _
people are strange,  when you're a stranger,   (_|(_|(_|
faces look ugly,  when you're alone.  the doors        |
%define name magicpoint
%define version 1.05a
%define release 1
%define builddir $RPM_BUILD_DIR/%{name}-%{version}
%define prefix /usr

Summary: MagicPoint is an X11 based presentation tool.
Name: %{name}
Version: %{version}
Release: %{release}
Group: X11/Office Applications
Copyright: BSD type
Url: http://www.Mew.org/mgp/
Packager: Dag Wieers <dag@life.be>
Distribution: N/A 
Source: %{name}-%{version}.tar.gz
Buildroot: /var/tmp/%{name}-%{version}-%{release}-root

%description
MagicPoint is an X11 based presentation tool. It is designed 
to make simple presentations easy while still making 
complicated presentations possible. Its presentation file is 
just text so that you can create presentation files quickly 
with your favorite editor (e.g. Emacs). 

%prep
%setup

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
xmkmf
make Makefiles
make

%install
#make prefix=$RPM_BUILD_ROOT%{prefix} install
install -d $RPM_BUILD_ROOT%{prefix}/X11R6/bin
install -c -s mgp                 $RPM_BUILD_ROOT%{prefix}/X11R6/bin/mgp
install -c -s mgp2ps              $RPM_BUILD_ROOT%{prefix}/X11R6/bin/mgp2ps
install -c -s contrib/xwintoppm/xwintoppm $RPM_BUILD_ROOT%{prefix}/X11R6/bin/xwintoppm
install -c -m 0755 mgpembed.pl    $RPM_BUILD_ROOT%{prefix}/X11R6/bin/mgpembed
install -c -m 0755 contrib/mgpnet $RPM_BUILD_ROOT%{prefix}/X11R6/bin/mgpnet
install -d $RPM_BUILD_ROOT%{prefix}/bin
#install -c -m 0755 contrib/eqn2eps.sh  $RPM_BUILD_ROOT%{prefix}/bin/eqn2eps
#install -c -m 0755 contrib/tex2eps.sh $RPM_BUILD_ROOT%{prefix}/bin/tex2eps
install -c -m 0755 contrib/mgp2html.pl $RPM_BUILD_ROOT%{prefix}/bin/mgp2html
install -c -m 0755 contrib/mgp2latex.pl $RPM_BUILD_ROOT%{prefix}/bin/mgp2latex
install -d $RPM_BUILD_ROOT%{prefix}/X11R6/lib/X11/mgp
install -c -m 0444 sample/default.mgp $RPM_BUILD_ROOT%{prefix}/X11R6/lib/X11/mgp/default.mgp
install -c -m 0444 sample/mgp1.gif    $RPM_BUILD_ROOT%{prefix}/X11R6/lib/X11/mgp/mgp1.gif
install -c -m 0444 sample/mgp2.gif    $RPM_BUILD_ROOT%{prefix}/X11R6/lib/X11/mgp/mgp2.gif
install -c -m 0444 sample/mgp3.gif    $RPM_BUILD_ROOT%{prefix}/X11R6/lib/X11/mgp/mgp3.gif


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root)
%doc COPYRIGHT COPYRIGHT.jp FAQ README README.fonts 
%doc README.fonts.jp README.lang SYNTAX TODO.jp USAGE 
%doc USAGE.jp sample/
%attr(755,root,root) %{prefix}/X11R6/bin/mgp 
%attr(755,root,root) %{prefix}/X11R6/bin/mgp2ps
%attr(755,root,root) %{prefix}/X11R6/bin/mgpembed
%attr(755,root,root) %{prefix}/X11R6/bin/mgpnet
%attr(755,root,root) %{prefix}/X11R6/bin/xwintoppm
#%attr(755,root,root) %{prefix}/bin/eqn2eps
#%attr(755,root,root) %{prefix}/bin/tex2eps
%attr(755,root,root) %{prefix}/bin/mgp2html
%attr(755,root,root) %{prefix}/bin/mgp2latex
%{prefix}/X11R6/lib/X11/mgp