use data macro fro release
[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
35 %description devel
36 Headers, static libraries, test programs and documentation for Eet
37
38 %package debug
39 Summary: Eet debug tools
40 Group: System Environment/Libraries
41 Requires: %{name} = %{version}
42
43 %description debug
44 Debug tools for Eet.
45
46 %prep
47 %setup -q
48
49 %build
50 %{configure} --prefix=%{_prefix}
51 ### use this if you have build problems
52 #./configure --prefix=%{_prefix}
53 %{__make} %{?_smp_mflags} %{?mflags}
54
55 %install
56 %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
57 rm -f $RPM_BUILD_ROOT/usr/bin/eet_bench
58
59 %clean
60 test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
61
62 %post
63 /sbin/ldconfig
64
65 %postun
66 /sbin/ldconfig
67
68 %files
69 %defattr(-, root, root)
70 %doc AUTHORS COPYING COPYING-PLAIN README
71 %{_libdir}/*.so.*
72
73 %files devel
74 %defattr(-, root, root)
75 %{_bindir}/eet-config
76 %{_libdir}/pkgconfig/*
77 %{_includedir}/*
78 %{_libdir}/*.a
79 %{_libdir}/*.so
80 %{_libdir}/*.la
81
82 %files debug
83 %defattr(-, root, root)
84 %{_bindir}/eet
85
86 %changelog