From bcf9cd0149a4c923aa66910736a0b9771a2f59df Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Tue, 20 Nov 2012 13:37:32 -0800 Subject: [PATCH 1/1] Add Tizen 2.0 packaging --- packaging/eet.changes | 3 ++ packaging/eet.spec | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 packaging/eet.changes create mode 100644 packaging/eet.spec diff --git a/packaging/eet.changes b/packaging/eet.changes new file mode 100644 index 0000000..0db20d8 --- /dev/null +++ b/packaging/eet.changes @@ -0,0 +1,3 @@ +* Tue Nov 20 2012 Rusty Lynch 63a7f17 +- Initial packaging + diff --git a/packaging/eet.spec b/packaging/eet.spec new file mode 100644 index 0000000..c44e640 --- /dev/null +++ b/packaging/eet.spec @@ -0,0 +1,100 @@ +Name: eet +Summary: Library for speedy data storage, retrieval, and compression +Version: 1.7.1+svn.78689+build01 +Release: 1 +Group: System/Libraries +License: BSD +URL: http://www.enlightenment.org/ +Source0: %{name}-%{version}.tar.gz +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: eina-devel +BuildRequires: gnutls-devel +BuildRequires: zlib-devel +BuildRequires: libjpeg-devel + + +%description +Enlightenment DR17 file chunk reading/writing library development files 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 zip + itself has more complexity than we need, and it was much simpler to implement + this once here. + . + This package contains headers and static libraries for development with libeet. + + +%package devel +Summary: Library for speedy data storage, retrieval, and compression (devel) +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + + +%description devel +Enlightenment DR17 file chunk reading/writing library (devel) + + +%package tools +Summary: Library for speedy data storage, retrieval, and compression. (tools) +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Provides: %{name}-bin +Obsoletes: %{name}-bin + + +%description tools +Enlightenment DR17 file chunk reading/writing library (tools) + + +%prep +%setup -q + + +%build +export CFLAGS+=" -fvisibility=hidden -fPIC" +export LDFLAGS+=" -fvisibility=hidden -Wl,--hash-style=both -Wl,--as-needed" + +%autogen --disable-static +%configure --disable-static \ + --disable-openssl --disable-cypher --disable-signature --disable-gnutls + +make %{?jobs:-j%jobs} + + +%install +rm -rf %{buildroot} +%make_install +mkdir -p %{buildroot}/usr/share/license +cp %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/usr/share/license/%{name} + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%{_libdir}/libeet.so.* +/usr/share/license/%{name} + + +%files devel +%defattr(-,root,root,-) +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/eet.pc + + +%files tools +%defattr(-,root,root,-) +%{_bindir}/* +%{_datadir}/eet/examples/eet-basic.c +%{_datadir}/eet/examples/eet-data-cipher_decipher.c +%{_datadir}/eet/examples/eet-data-file_descriptor_01.c +%{_datadir}/eet/examples/eet-data-file_descriptor_02.c +%{_datadir}/eet/examples/eet-data-nested.c +%{_datadir}/eet/examples/eet-data-simple.c +%{_datadir}/eet/examples/eet-file.c + -- 2.7.4