Wed May 24 21:58:38 2006 Michael Jennings (mej)
[profile/ivi/eet.git] / eet.spec.in
1 %define _missing_doc_files_terminate_build 0
2
3 Summary: Library for speedy data storage, retrieval, and compression.
4 Name: @PACKAGE@
5 Version: @VERSION@
6 Release: 0.%(date '+%Y%m%d')
7 License: BSD
8 Group: System Environment/Libraries
9 Source: %{name}-%{version}.tar.gz
10 Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
11 Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
12 Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
13 URL: http://www.enlightenment.org/
14 BuildRequires: libjpeg-devel zlib-devel
15 BuildRoot: %{_tmppath}/%{name}-%{version}-root
16
17 %description
18 Eet is a tiny library designed to write an arbitary set of chunks of
19 data to a file and optionally compress each chunk (very much like a
20 zip file) and allow fast random-access reading of the file later
21 on. It does not do zip as a zip itself has more complexity than is
22 needed, and it was much simpler to implement this once here.
23
24 It also can encode and decode data structures in memory, as well as
25 image data for saving to eet files or sending across the network to
26 other machines, or just writing to arbitary files on the system. All
27 data is encoded in a platform independant way and can be written and
28 read by any architecture.
29
30 %package devel
31 Summary: Eet headers, static libraries, documentation and test programs
32 Group: System Environment/Libraries
33 Requires: %{name} = %{version}
34 Requires: libjpeg-devel, zlib-devel
35
36 %description devel
37 Headers, static libraries, test programs and documentation for Eet
38
39 %package debug
40 Summary: Eet debug tools
41 Group: System Environment/Libraries
42 Requires: %{name} = %{version}
43
44 %description debug
45 Debug tools for Eet.
46
47 %prep
48 %setup -q
49
50 %build
51 %{configure} --prefix=%{_prefix}
52 ### use this if you have build problems
53 #./configure --prefix=%{_prefix}
54 %{__make} %{?_smp_mflags} %{?mflags}
55
56 %install
57 %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
58 rm -f $RPM_BUILD_ROOT/usr/bin/eet_bench
59
60 %clean
61 test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
62
63 %post
64 /sbin/ldconfig
65
66 %postun
67 /sbin/ldconfig
68
69 %files
70 %defattr(-, root, root)
71 %doc AUTHORS COPYING COPYING-PLAIN README
72 %{_libdir}/*.so.*
73
74 %files devel
75 %defattr(-, root, root)
76 %{_bindir}/eet-config
77 %{_libdir}/pkgconfig/*
78 %{_includedir}/*
79 %{_libdir}/*.a
80 %{_libdir}/*.so
81 %{_libdir}/*.la
82
83 %files debug
84 %defattr(-, root, root)
85 %{_bindir}/eet
86
87 %changelog