Sat May 22 00:13:33 2004 Michael Jennings (mej)

Those wishing to write clean, well-organized spec files should use
this one as a guide.


SVN revision: 10311
This commit is contained in:
Michael Jennings 2004-05-22 04:14:26 +00:00
parent 524c4d7cce
commit 320aaae640
1 changed files with 27 additions and 49 deletions

View File

@ -1,31 +1,17 @@
# Note that this is NOT a relocatable package
%define ver 0.5.0
%define rel 1
%define prefix /usr
Summary: edje
Name: edje
Version: %ver
Release: %rel
Version: 0.5.0
Release: 1
Copyright: BSD
Group: System Environment/Libraries
Source: ftp://ftp.enlightenment.org/pub/evoak/edje-%{ver}.tar.gz
BuildRoot: /var/tmp/edje-root
Source: ftp://ftp.enlightenment.org/pub/evoak/%{name}-%{version}.tar.gz
Packager: The Rasterman <raster@rasterman.com>
URL: http://www.enlightenment.org/
BuildRequires: libjpeg-devel
BuildRequires: zlib-devel
Requires: libjpeg
Requires: zlib
Requires: ecore
Requires: evas
Requires: eet
Requires: imlib2
Docdir: %{prefix}/doc
BuildRequires: libjpeg-devel zlib-devel
Requires: libjpeg zlib ecore evas eet imlib2
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Edje is a Graphical Design Library
%package devel
@ -37,56 +23,48 @@ Requires: %{name} = %{version}
Headers, static libraries, test programs and documentation for Eet
%prep
rm -rf $RPM_BUILD_ROOT
%setup -q
%build
./configure --prefix=%prefix
%{configure}
if [ "$SMP" != "" ]; then
(make "MAKE=make -k -j $SMP"; exit 0)
make
(%{__make} "MAKE=make -k -j $SMP"; exit 0)
%{__make}
else
make
%{__make}
fi
###########################################################################
%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__make} DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
/sbin/ldconfig || :
%postun
/sbin/ldconfig
/sbin/ldconfig || :
%files
%defattr(-,root,root)
%attr(755,root,root) %{prefix}/lib/libedje.so.*
%attr(755,root,root) %{prefix}/lib/libedje.la
%attr(755,root,root) %{prefix}/lib/libedje_edit.so.*
%attr(755,root,root) %{prefix}/lib/libedje_edit.la
%attr(755,root,root) %{prefix}/bin/edje
%attr(755,root,root) %{prefix}/bin/edje_cc
%attr(755,root,root) %{prefix}/bin/edje_ls
%attr(755,root,root) %{prefix}/share/edje
%defattr(-, root, root)
%doc AUTHORS COPYING README
%{_libdir}/libedje.so*
%{_libdir}/libedje_edit.so*
%{_bindir}/edje
%{_bindir}/edje_cc
%{_bindir}/edje_ls
%{_datadir}/edje
%files devel
%attr(755,root,root) %{prefix}/lib/libedje.a
%attr(755,root,root) %{prefix}/lib/libedje.so
%attr(755,root,root) %{prefix}/lib/libedje_edit.a
%attr(755,root,root) %{prefix}/lib/libedje_edit.so
%attr(755,root,root) %{prefix}/bin/edje-config
%{prefix}/include/Edje*
%doc AUTHORS
%doc COPYING
%doc README
%doc edje_docs.tar.gz
%{_libdir}/libedje.a
%{_libdir}/libedje.la
%{_libdir}/libedje_edit.a
%{_libdir}/libedje_edit.la
%{_bindir}/edje-config
%{_includedir}/Edje*
%changelog
* Sat Jun 23 2001 The Rasterman <raster@rasterman.com>