Autofoo cleanups. Make spec file name same as package name.

SVN revision: 31784
This commit is contained in:
Kim Woelders 2007-09-22 16:22:40 +00:00
parent 547d8a4782
commit 84edee6305
4 changed files with 38 additions and 24 deletions

View File

@ -1,8 +1,11 @@
autom4te.cache
.git
.gitignore
aclocal.m4
Makefile.in
configure
autom4te.cache
config.log
config.status
configure
Makefile
Makefile.in
e16-docs.spec
e16-docs*.tar.gz

View File

@ -1,5 +1,8 @@
AUTOMAKE_OPTIONS = foreign
MAINTAINERCLEANFILES = aclocal.m4 configure install-sh missing \
Makefile.in
SUBDIRS = E-docs
EXTRA_DIST = edox-data.spec
#EXTRA_DIST = e16-docs.spec.in

View File

@ -1,7 +1,21 @@
AC_INIT(configure.in)
AM_INIT_AUTOMAKE(e16-docs, 0.16.8-0.02)
AM_MAINTAINER_MODE
E_PKG_VERSION=0.16.8.0.1
E_PKG_REVISION=0.00
if test "x$E_PKG_REVISION" != "x"; then
E_PKG_VER_REV=$E_PKG_VERSION-$E_PKG_REVISION
E_RPM_REVISION=$E_PKG_REVISION
else
E_PKG_VER_REV=$E_PKG_VERSION
E_RPM_REVISION=1
fi
AM_INIT_AUTOMAKE(e16-docs, $E_PKG_VER_REV)
AC_DEFINE_UNQUOTED(E_PKG_VERSION, "$E_PKG_VERSION", [Version])
AC_DEFINE_UNQUOTED(E_PKG_VER_REV, "$E_PKG_VER_REV", [Version, Revision])
AC_SUBST(E_PKG_VERSION)
AC_SUBST(E_RPM_REVISION)
dnl reasonable guesses for where stuff is installed
if test "x$prefix" = "xNONE"; then
@ -11,6 +25,8 @@ if test "x$exec_prefix" = "xNONE"; then
exec_prefix=$prefix
fi
AM_MAINTAINER_MODE
AC_PROG_MAKE_SET
AC_PROG_INSTALL
@ -25,4 +41,5 @@ AC_SUBST(edocdata)
AC_OUTPUT([
Makefile
E-docs/Makefile
e16-docs.spec
])

View File

@ -1,13 +1,10 @@
%define revision 0.02
%define rev_name -%{revision}
Summary: Documentation for the Enlightenment window manager.
Name: e16-docs
Version: 0.16.8
Release: %{revision}%{?_vendorsuffix:.%{_vendorsuffix}}
Name: @PACKAGE@
Version: @E_PKG_VERSION@
Release: @E_RPM_REVISION@%%{?_vendorsuffix:.%{_vendorsuffix}}
License: BSD
Group: User Interface/Desktops
Source0: http://prdownloads.sourceforge.net/enlightenment/%{name}-%{version}%{rev_name}.tar.gz
Source: http://prdownloads.sourceforge.net/enlightenment/%{name}-@VERSION@.tar.gz
Prefix: %{_prefix}
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@ -23,28 +20,22 @@ DOX is a very very very simple document viewer for help docs for Enlightenment.
This is part of the Enlightenment distribution.
%prep
%setup -n %{name}-%{version}%{rev_name}
%setup -n %{name}-@VERSION@
%build
CFLAGS="${RPM_OPT_FLAGS}"
if [ ! -f configure ]; then
./autogen.sh --prefix=%{_prefix} --bindir=%{_bindir} --datadir=%{_datadir} --mandir=%{_mandir} --enable-fsstd
else
%{configure} --prefix=%{_prefix} --bindir=%{_bindir} --datadir=%{_datadir} --mandir=%{_mandir} --enable-fsstd
fi
make
%{configure} %{?acflags}
%{__make} %{?_smp_mflags} %{?mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING INSTALL README
%doc AUTHORS COPYING README
%{_datadir}/e16/*
%changelog