completely automated package metadata building. all src tarballs will contain

all packaging data with the correct version etc. for rpm's, .deb's and
openembedded's .oe's and .bb's


SVN revision: 13571
This commit is contained in:
Carsten Haitzler 2005-03-03 01:34:03 +00:00
parent ffb72ed89b
commit 338c93a811
9 changed files with 43 additions and 101 deletions

View File

@ -5,13 +5,30 @@ SUBDIRS = src
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
config.h.in config.sub configure install-sh \
ltconfig ltmain.sh missing mkinstalldirs \
stamp-h.in eet_docs.tar eet_docs.tar.gz eet.c
stamp-h.in \
eet_docs.tar.gz eet.c \
eet.pc \
eet.spec \
eet.oe eet-native.oe \
eet.bb eetXnative.bb \
debian/changelog
bin_SCRIPTS = eet-config
EXTRA_DIST = README AUTHORS COPYING COPYING-PLAIN eet.spec eet.c.in \
gendoc Doxyfile doc eet.pc.in \
make_cross_compile_arm.sh
EXTRA_DIST = README AUTHORS COPYING COPYING-PLAIN eet.spec eet.c.in gendoc \
Doxyfile doc eet_docs.tar.gz \
eet.pc.in \
eet.spec.in eet.spec \
eet.oe.in eet.oe eet-native.oe.in eet-native.oe \
eet.bb.in eet.bb eetXnative.bb.in eetXnative.bb \
debian/changelog.in debian/changelog \
debian/control \
debian/copyright \
debian/eet-config.1 \
debian/eet.1 \
debian/libeet0-dev.files \
debian/libeet0.files \
debian/rules
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = eet.pc

View File

@ -116,6 +116,12 @@ src/Makefile
src/lib/Makefile
src/bin/Makefile
eet-config
eet.spec
eet.oe
eet-native.oe
eet.bb
eetXnative.bb
debian/changelog
],[
chmod +x eet-config
])

View File

@ -1,6 +0,0 @@
libeet (0.9.10-0cvs20050129) unstable; urgency=low
* a CVS release
-- Sytse Wielinga <s.b.wielinga@student.utwente.nl> Sat, 29 Jan 2005 18:41:25 +0100

View File

@ -7,7 +7,7 @@ MAINTAINER = "Carsten Haitzler (Rasterman) <raster@rasterman.com>"
SECTION = "e/libs"
PRIORITY = "optional"
DEPENDS = "zlib jpeg"
PV = "0.9.9"
PV = "@VERSION@"
PR = "1"
do_prepsources () {

View File

@ -7,7 +7,7 @@ MAINTAINER = "Carsten Haitzler (Rasterman) <raster@rasterman.com>"
SECTION = "e/libs"
PRIORITY = "optional"
DEPENDS = "zlib jpeg"
PV = "0.9.9"
PV = "@VERSION@"
PR = "1"
do_prepsources () {

View File

@ -1,12 +1,12 @@
%define _missing_doc_files_terminate_build 0
Summary: Library for speedy data storage, retrieval, and compression.
Name: eet
Version: 0.9.9
Release: 2.%(date '+%Y%m%d')
Name: @PACKAGE@
Version: @VERSION@
Release: 1
License: BSD
Group: System Environment/Libraries
Source: ftp://ftp.enlightenment.org/pub/eet/eet-%{version}.tar.gz
Source: %{name}-%{version}.tar.gz
Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
@ -40,9 +40,9 @@ Headers, static libraries, test programs and documentation for Eet
%setup -q
%build
%{configure} --prefix=%{_prefix}
#%{configure} --prefix=%{_prefix}
./configure --prefix=%{_prefix}
%{__make} %{?_smp_mflags} %{?mflags}
test -x `which doxygen` && sh gendoc || :
%install
%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
@ -58,18 +58,18 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING README
%{_libdir}/libeet.so.*
%{_libdir}/libeet.la
%doc AUTHORS COPYING COPYING-PLAIN README
%{_libdir}/*.so.*
%{_libdir}/*.la
%{_bindir}/eet
%files devel
%defattr(-, root, root)
%doc html
%{_libdir}/libeet.so
%{_libdir}/libeet.a
%doc eet_docs.tar.gz
%{_libdir}/*.so
%{_libdir}/*.a
%{_bindir}/eet-config
%{_libdir}/pkgconfig/eet.pc
%{_includedir}/Eet*
%{_libdir}/pkgconfig/*
%{_includedir}/*
%changelog

View File

@ -1,75 +0,0 @@
#!/bin/sh
PROJ="eet"
SKIFF="/skiff/local"
HOSTARCH="i686-pc-linux-gnu"
TARGETCPU="arm"
TARGETARCH=$TARGETCPU"-pc-linux-gnu"
make clean distclean
export CC=$SKIFF"/bin/"$TARGETCPU"-linux-gcc"
export CFLAGS=-O9
./configure \
--host=$HOSTARCH \
--build=$TARGETARCH \
--target=$TARGETARCH
INST="/tmp/"$PROJ"-instroot"
sudo rm -rf $INST
make
for I in find . -name "*.la" -print; do
sed s:"/usr/local":$INST:g < $I > "/tmp/.sed.tmp"
sudo cp "/tmp/.sed.tmp" $I
rm -f "/tmp/.sed.tmp"
done
sudo \
make \
prefix=$INST \
exec_prefix=$INST \
bindir=$INST"/bin" \
sbindir=$INST"/sbin" \
sysconfdir=$INST"/etc" \
datadir=$INST"/share" \
includedir=$INST"/include" \
libdir=$INST"/lib" \
libexecdir=$INST"/libexec" \
localstatedir=$INST"/var/run" \
mandir=$INST"/share/man" \
infodir=$INST"/share/info" \
install
## FIXUPS
for I in $INST"/bin/"* $INST"/sbin/"* $INST"/libexec/"*; do
J=`echo $I | sed s:$TARGETARCH"-"::g`
sudo mv $I $J
done
CF=$INST"/bin/"$PROJ"-config"
sed s:"/usr/local":$SKIFF"/"$TARGETCPU"-linux":g < $CF > "/tmp/.sed.tmp"
sudo cp "/tmp/.sed.tmp" $CF
rm -f "/tmp/.sed.tmp"
for I in $INST"/lib/"*.la; do
sed s:"/usr/local":$SKIFF"/"$TARGETCPU"-linux":g < $I > "/tmp/.sed.tmp"
sudo cp "/tmp/.sed.tmp" $I
rm -f "/tmp/.sed.tmp"
done
## package it all up
PACK=$PROJ"-"$TARGETCPU"-inst.tar.gz"
DIR=$PWD
cd $INST
sudo tar zcvf $DIR"/"$PACK *
sudo chown $USER $DIR"/"$PACK
cd $DIR
sudo rm -rf $INST
## install it in our skiff tree
cd $SKIFF"/"$TARGETCPU"-linux"
sudo tar zxvf $DIR"/"$PACK