File eina.spec of Package eina
#
# spec file for package eina-DR17 (svn Version _20100516_r48925)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#
# norootforbuild
Name: libeina0
Version: svn_20100516_r48925
Release: 1
License: BSD
Provides: eina libeina-ver-pre-svn-04-0
Obsoletes: eina libeina-ver-pre-svn-04-0
URL: http://enlightenment.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: eina_20100516_r48925.tar.bz2
Packager: sda00 <sda00@himki.net>
Group: System/Libraries
Summary: Core EFL (Enlightenment Foundation Library) to handle various data types
#%if %suse_version > 1100
#BuildRequires: -post-build-checks -brp-check-suse
#%endif
%if 0%{?suse_version} > 1030 || 0%{?sles_version} == 11
# core
BuildRequires: gcc-c++ gcc iputils subversion m4 autoconf automake libtool glibc-devel glibc zlib-devel zlib libjpeg-devel libjpeg doxygen gzip
# functional extensions
BuildRequires: gettext-devel gettext pkg-config zlib-devel zlib libjpeg-devel libjpeg libpng-devel libpng
%endif
%if 0%{?suse_version} == 1030
# core
BuildRequires: gcc-c++ gcc iputils subversion m4 autoconf automake libtool glibc-devel glibc zlib-devel zlib libjpeg-devel libjpeg doxygen gzip
# functional extensions
BuildRequires: gettext-devel gettext pkg-config zlib-devel zlib libjpeg-devel libjpeg libpng-devel libpng
%endif
%if 0%{?fedora_version}
BuildRequires: libjpeg-devel zlib-devel pkgconfig gnutls-devel subversion automake doxygen m4 autoconf gzip bzip2 tar
%endif
%if 0%{?mandriva_version}
%ifarch x86_64
BuildRequires: lib64jpeg62-devel zlib1-devel zlib1 pkgconfig lib64gnutls-devel subversion automake doxygen m4 autoconf gzip bzip2 tar
%else
BuildRequires: libjpeg62-devel zlib-devel pkgconfig libgnutls-devel subversion automake doxygen m4 autoconf gzip bzip2 tar
%endif
%endif
%description
Core EFL (Enlightenment Foundation Library) to handle various data types. Introduced in version DR17-0.16.999.050
The Enlightenment Team:
--------
The Rasterman (Carsten Haitzler)
Ibukun Olumuyiwa
Sebastian Dransfeld
HandyAndE (Andrew Williams)
CodeWarrior (Hisham Mardam Bey)
dj2 (Dan Sinclair)
Tilman Sauerbeck
Aleksej Struk
Brian Mattern
devilhorns (Chrostopher Michael)
/dev/urandom (Victor Kojouharov)
ilLogict
Stafford Horne
Cedric Mail
onefang (David Seikel)
Stephen Houston
Byron Hillis
Ravenlock (Eric Schuele)
ManoWarrior (Luchezar Petkov)
morlenxus (Brian Miculcy)
The full list of E-dev crew is here:
http://enlightenment.org/p.php?p=contact&l=en
You can always update your package to the current state just by rebuilding the .spec file:
> rpmbuild -bb *.spec
or by rebuilding the .src.rpm file itself:
> rpmbuild --rebuild *.src.rpm
The new compiled .rpm will be available in /usr/src/packages/RPM/_your_PC_type/
Prepared by SOAD project.
%package devel
Provides: eina-devel libeina-ver-pre-svn-04-0-devel
Obsoletes: eina-devel libeina-ver-pre-svn-04-0-devel
Summary: Eina headers, static libraries, documentation and test programs
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
Headers, static libraries, test programs and documentation for eina
%package doc
Provides: eina-doc libeina-ver-pre-svn-04-0-doc
Obsoletes: eina-doc libeina-ver-pre-svn-04-0-doc
Summary: Eina documentation, man pages and benchmarking
Group: Documentation/Other
%description doc
Eina documentation, man pages and benchmarking
##########################################
## insert here "debug-package" macro for a local builds
##########################################
%prep
rm -rf "$RPM_BUILD_ROOT"
#%setup -q
%if 0%{?suse_version} || 0%{?sles_version}
%{?suse_update_config:%{suse_update_config -f}}
%endif
%build
%install
if [ "`ping enlightenment.org -c 10 2>&1 | grep icmp_seq`" != "" ] ; then
svn co http://svn.enlightenment.org/svn/e/trunk/eina
cd eina
chmod +x ./autogen.sh
./autogen.sh
else
tar xfmjv $RPM_SOURCE_DIR/eina_20100516_r48925.tar.bz2
cd eina
chmod +x ./autogen.sh
./autogen.sh
fi
%configure --disable-static
make %{?_smp_mflags}
make doc
%makeinstall
mkdir -p -m 755 $RPM_BUILD_ROOT%{_mandir}/man3
mkdir -p -m 755 $RPM_BUILD_ROOT%{_docdir}/eina
find doc/man/man3 -size -100c -delete
rm -f doc/man/man3/todo.3 # remove todo
find doc/man/man3 -exec gzip {} \;
install -p -m 644 doc/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3
cp -r doc/benchmark $RPM_BUILD_ROOT%{_docdir}/eina/
cp -r doc/html $RPM_BUILD_ROOT%{_docdir}/eina/
cp -r doc/latex $RPM_BUILD_ROOT%{_docdir}/eina/
# optional removal of libtool archive along with stripping
find $RPM_BUILD_ROOT/ -type f -iname '*.la' -exec rm {} \;
find $RPM_BUILD_ROOT/ -type f -iname '*.a' -exec rm {} \;
%clean
rm -rf "$RPM_BUILD_ROOT"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
#%{_libdir}/eina
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root)
#%{_bindir}/*
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_libdir}/*.so
%files doc
%defattr(-, root, root)
%{_mandir}/man3/*
%{_docdir}/eina
%changelog
* Mon Apr 20 2009 version E-DR17-999-050 <sda00@himki.net>
- first "rev1" is packaged according to the Release Schedule - http://trac.enlightenment.org/e/wiki/ReleaseSchedule
* Sat Oct 25 2008 first build for version E-DR17-999-050 <sda00@himki.net>
- added online rebuild capability of .src.rpm or .spec files