From e18fa5274d6340e9228a0fa4a0b3938886738d8a Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 3 Mar 2005 01:34:03 +0000 Subject: 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 --- Makefile.am | 25 +++++++++++++--- configure.in | 6 ++++ debian/changelog | 6 ---- eet-native.oe | 17 ----------- eet-native.oe.in | 17 +++++++++++ eet.bb | 29 ------------------ eet.bb.in | 29 ++++++++++++++++++ eet.oe | 29 ------------------ eet.oe.in | 29 ++++++++++++++++++ eet.spec | 75 ----------------------------------------------- eet.spec.in | 75 +++++++++++++++++++++++++++++++++++++++++++++++ eetXnative.bb | 17 ----------- eetXnative.bb.in | 17 +++++++++++ make_cross_compile_arm.sh | 75 ----------------------------------------------- 14 files changed, 194 insertions(+), 252 deletions(-) delete mode 100644 debian/changelog delete mode 100644 eet-native.oe create mode 100644 eet-native.oe.in delete mode 100644 eet.bb create mode 100644 eet.bb.in delete mode 100644 eet.oe create mode 100644 eet.oe.in delete mode 100644 eet.spec create mode 100644 eet.spec.in delete mode 100644 eetXnative.bb create mode 100644 eetXnative.bb.in delete mode 100755 make_cross_compile_arm.sh diff --git a/Makefile.am b/Makefile.am index fd92b50..5fdcd39 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/configure.in b/configure.in index 67c5362..e5ad71a 100644 --- a/configure.in +++ b/configure.in @@ -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 ]) diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index 43a9784..0000000 --- a/debian/changelog +++ /dev/null @@ -1,6 +0,0 @@ -libeet (0.9.10-0cvs20050129) unstable; urgency=low - - * a CVS release - - -- Sytse Wielinga Sat, 29 Jan 2005 18:41:25 +0100 - diff --git a/eet-native.oe b/eet-native.oe deleted file mode 100644 index bce9f86..0000000 --- a/eet-native.oe +++ /dev/null @@ -1,17 +0,0 @@ -DESCRIPTION = "EET is a tiny library designed to write an \ -arbitary set of chunks of data to a file and optionally compress \ -each chunk (very much like a zip file) and allow fast \ -random-access reading of the file later on." -HOMEPAGE = "http://www.enlightenment.org" -MAINTAINER = "Carsten Haitzler (Rasterman) " -SECTION = "e/libs" -PRIORITY = "optional" -include eet.oe -inherit native -DEPENDS = "zlib-native jpeg-native" - -do_stage () { - install -m 0755 src/bin/.libs/eet ${STAGING_BINDIR} - oe_libinstall -C src/lib libeet ${STAGING_LIBDIR}/ - install -m 0644 ${S}/src/lib/Eet.h ${STAGING_INCDIR}/ -} diff --git a/eet-native.oe.in b/eet-native.oe.in new file mode 100644 index 0000000..bce9f86 --- /dev/null +++ b/eet-native.oe.in @@ -0,0 +1,17 @@ +DESCRIPTION = "EET is a tiny library designed to write an \ +arbitary set of chunks of data to a file and optionally compress \ +each chunk (very much like a zip file) and allow fast \ +random-access reading of the file later on." +HOMEPAGE = "http://www.enlightenment.org" +MAINTAINER = "Carsten Haitzler (Rasterman) " +SECTION = "e/libs" +PRIORITY = "optional" +include eet.oe +inherit native +DEPENDS = "zlib-native jpeg-native" + +do_stage () { + install -m 0755 src/bin/.libs/eet ${STAGING_BINDIR} + oe_libinstall -C src/lib libeet ${STAGING_LIBDIR}/ + install -m 0644 ${S}/src/lib/Eet.h ${STAGING_INCDIR}/ +} diff --git a/eet.bb b/eet.bb deleted file mode 100644 index 9803f2f..0000000 --- a/eet.bb +++ /dev/null @@ -1,29 +0,0 @@ -DESCRIPTION = "EET is a tiny library designed to write an \ -arbitary set of chunks of data to a file and optionally compress \ -each chunk (very much like a zip file) and allow fast \ -random-access reading of the file later on." -HOMEPAGE = "http://www.enlightenment.org" -MAINTAINER = "Carsten Haitzler (Rasterman) " -SECTION = "e/libs" -PRIORITY = "optional" -DEPENDS = "zlib jpeg" -PV = "0.9.9" -PR = "1" - -do_prepsources () { - make clean distclean || true -} -addtask prepsources after do_fetch before do_unpack - -SRC_URI = "file://./" -S = "${WORKDIR}/eet" - -inherit autotools pkgconfig binconfig - -do_stage () { - bb_libinstall -C src/lib libeet ${STAGING_LIBDIR}/ - install -m 0644 ${S}/src/lib/Eet.h ${STAGING_INCDIR}/ -} - -FILES_${PN} = "${libdir}/libeet*.so*" -FILES_${PN}-dev += "${bindir} ${libdir}/pkgconfig" diff --git a/eet.bb.in b/eet.bb.in new file mode 100644 index 0000000..1001fbe --- /dev/null +++ b/eet.bb.in @@ -0,0 +1,29 @@ +DESCRIPTION = "EET is a tiny library designed to write an \ +arbitary set of chunks of data to a file and optionally compress \ +each chunk (very much like a zip file) and allow fast \ +random-access reading of the file later on." +HOMEPAGE = "http://www.enlightenment.org" +MAINTAINER = "Carsten Haitzler (Rasterman) " +SECTION = "e/libs" +PRIORITY = "optional" +DEPENDS = "zlib jpeg" +PV = "@VERSION@" +PR = "1" + +do_prepsources () { + make clean distclean || true +} +addtask prepsources after do_fetch before do_unpack + +SRC_URI = "file://./" +S = "${WORKDIR}/eet" + +inherit autotools pkgconfig binconfig + +do_stage () { + bb_libinstall -C src/lib libeet ${STAGING_LIBDIR}/ + install -m 0644 ${S}/src/lib/Eet.h ${STAGING_INCDIR}/ +} + +FILES_${PN} = "${libdir}/libeet*.so*" +FILES_${PN}-dev += "${bindir} ${libdir}/pkgconfig" diff --git a/eet.oe b/eet.oe deleted file mode 100644 index 4e84676..0000000 --- a/eet.oe +++ /dev/null @@ -1,29 +0,0 @@ -DESCRIPTION = "EET is a tiny library designed to write an \ -arbitary set of chunks of data to a file and optionally compress \ -each chunk (very much like a zip file) and allow fast \ -random-access reading of the file later on." -HOMEPAGE = "http://www.enlightenment.org" -MAINTAINER = "Carsten Haitzler (Rasterman) " -SECTION = "e/libs" -PRIORITY = "optional" -DEPENDS = "zlib jpeg" -PV = "0.9.9" -PR = "1" - -do_prepsources () { - make clean distclean || true -} -addtask prepsources after do_fetch before do_unpack - -SRC_URI = "file://./" -S = "${WORKDIR}/eet" - -inherit autotools pkgconfig binconfig - -do_stage () { - oe_libinstall -C src/lib libeet ${STAGING_LIBDIR}/ - install -m 0644 ${S}/src/lib/Eet.h ${STAGING_INCDIR}/ -} - -FILES_${PN} = "${libdir}/libeet*.so*" -FILES_${PN}-dev += "${bindir} ${libdir}/pkgconfig" diff --git a/eet.oe.in b/eet.oe.in new file mode 100644 index 0000000..defceb6 --- /dev/null +++ b/eet.oe.in @@ -0,0 +1,29 @@ +DESCRIPTION = "EET is a tiny library designed to write an \ +arbitary set of chunks of data to a file and optionally compress \ +each chunk (very much like a zip file) and allow fast \ +random-access reading of the file later on." +HOMEPAGE = "http://www.enlightenment.org" +MAINTAINER = "Carsten Haitzler (Rasterman) " +SECTION = "e/libs" +PRIORITY = "optional" +DEPENDS = "zlib jpeg" +PV = "@VERSION@" +PR = "1" + +do_prepsources () { + make clean distclean || true +} +addtask prepsources after do_fetch before do_unpack + +SRC_URI = "file://./" +S = "${WORKDIR}/eet" + +inherit autotools pkgconfig binconfig + +do_stage () { + oe_libinstall -C src/lib libeet ${STAGING_LIBDIR}/ + install -m 0644 ${S}/src/lib/Eet.h ${STAGING_INCDIR}/ +} + +FILES_${PN} = "${libdir}/libeet*.so*" +FILES_${PN}-dev += "${bindir} ${libdir}/pkgconfig" diff --git a/eet.spec b/eet.spec deleted file mode 100644 index b11baac..0000000 --- a/eet.spec +++ /dev/null @@ -1,75 +0,0 @@ -%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') -License: BSD -Group: System Environment/Libraries -Source: ftp://ftp.enlightenment.org/pub/eet/eet-%{version}.tar.gz -Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings } -Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)} -Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} -URL: http://www.enlightenment.org/ -#BuildSuggests: xorg-x11-devel doxygen -BuildRequires: libjpeg-devel XFree86-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-root - -%description -Eet is a tiny library designed to write an arbitary set of chunks of -data to a file and optionally compress each chunk (very much like a -zip file) and allow fast random-access reading of the file later -on. It does not do zip as a zip itself has more complexity than is -needed, and it was much simpler to implement this once here. - -It also can encode and decode data structures in memory, as well as -image data for saving to eet files or sending across the network to -other machines, or just writing to arbitary files on the system. All -data is encoded in a platform independant way and can be written and -read by any architecture. - -%package devel -Summary: Eet headers, static libraries, documentation and test programs -Group: System Environment/Libraries -Requires: %{name} = %{version} - -%description devel -Headers, static libraries, test programs and documentation for Eet - -%prep -%setup -q - -%build -%{configure} --prefix=%{_prefix} -%{__make} %{?_smp_mflags} %{?mflags} -test -x `which doxygen` && sh gendoc || : - -%install -%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install - -%clean -test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - -%files -%defattr(-, root, root) -%doc AUTHORS COPYING README -%{_libdir}/libeet.so.* -%{_libdir}/libeet.la -%{_bindir}/eet - -%files devel -%defattr(-, root, root) -%doc html -%{_libdir}/libeet.so -%{_libdir}/libeet.a -%{_bindir}/eet-config -%{_libdir}/pkgconfig/eet.pc -%{_includedir}/Eet* - -%changelog diff --git a/eet.spec.in b/eet.spec.in new file mode 100644 index 0000000..7eef26d --- /dev/null +++ b/eet.spec.in @@ -0,0 +1,75 @@ +%define _missing_doc_files_terminate_build 0 + +Summary: Library for speedy data storage, retrieval, and compression. +Name: @PACKAGE@ +Version: @VERSION@ +Release: 1 +License: BSD +Group: System Environment/Libraries +Source: %{name}-%{version}.tar.gz +Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings } +Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)} +Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} +URL: http://www.enlightenment.org/ +#BuildSuggests: xorg-x11-devel doxygen +BuildRequires: libjpeg-devel XFree86-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Eet is a tiny library designed to write an arbitary set of chunks of +data to a file and optionally compress each chunk (very much like a +zip file) and allow fast random-access reading of the file later +on. It does not do zip as a zip itself has more complexity than is +needed, and it was much simpler to implement this once here. + +It also can encode and decode data structures in memory, as well as +image data for saving to eet files or sending across the network to +other machines, or just writing to arbitary files on the system. All +data is encoded in a platform independant way and can be written and +read by any architecture. + +%package devel +Summary: Eet headers, static libraries, documentation and test programs +Group: System Environment/Libraries +Requires: %{name} = %{version} + +%description devel +Headers, static libraries, test programs and documentation for Eet + +%prep +%setup -q + +%build +#%{configure} --prefix=%{_prefix} +./configure --prefix=%{_prefix} +%{__make} %{?_smp_mflags} %{?mflags} + +%install +%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install + +%clean +test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%defattr(-, root, root) +%doc AUTHORS COPYING COPYING-PLAIN README +%{_libdir}/*.so.* +%{_libdir}/*.la +%{_bindir}/eet + +%files devel +%defattr(-, root, root) +%doc eet_docs.tar.gz +%{_libdir}/*.so +%{_libdir}/*.a +%{_bindir}/eet-config +%{_libdir}/pkgconfig/* +%{_includedir}/* + +%changelog diff --git a/eetXnative.bb b/eetXnative.bb deleted file mode 100644 index 0355e19..0000000 --- a/eetXnative.bb +++ /dev/null @@ -1,17 +0,0 @@ -DESCRIPTION = "EET is a tiny library designed to write an \ -arbitary set of chunks of data to a file and optionally compress \ -each chunk (very much like a zip file) and allow fast \ -random-access reading of the file later on." -HOMEPAGE = "http://www.enlightenment.org" -MAINTAINER = "Carsten Haitzler (Rasterman) " -SECTION = "e/libs" -PRIORITY = "optional" -include eet.bb -inherit native -DEPENDS = "zlib-native jpeg-native" - -do_stage () { - install -m 0755 src/bin/.libs/eet ${STAGING_BINDIR} - bb_libinstall -C src/lib libeet ${STAGING_LIBDIR}/ - install -m 0644 ${S}/src/lib/Eet.h ${STAGING_INCDIR}/ -} diff --git a/eetXnative.bb.in b/eetXnative.bb.in new file mode 100644 index 0000000..0355e19 --- /dev/null +++ b/eetXnative.bb.in @@ -0,0 +1,17 @@ +DESCRIPTION = "EET is a tiny library designed to write an \ +arbitary set of chunks of data to a file and optionally compress \ +each chunk (very much like a zip file) and allow fast \ +random-access reading of the file later on." +HOMEPAGE = "http://www.enlightenment.org" +MAINTAINER = "Carsten Haitzler (Rasterman) " +SECTION = "e/libs" +PRIORITY = "optional" +include eet.bb +inherit native +DEPENDS = "zlib-native jpeg-native" + +do_stage () { + install -m 0755 src/bin/.libs/eet ${STAGING_BINDIR} + bb_libinstall -C src/lib libeet ${STAGING_LIBDIR}/ + install -m 0644 ${S}/src/lib/Eet.h ${STAGING_INCDIR}/ +} diff --git a/make_cross_compile_arm.sh b/make_cross_compile_arm.sh deleted file mode 100755 index 0529da9..0000000 --- a/make_cross_compile_arm.sh +++ /dev/null @@ -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 - -- cgit v1.2.1