]>
Commit | Line | Data |
---|---|---|
b511c548 | 1 | Summary: A key/value pair database to store software configurations |
2 | #Summary(pl): | |
08a1423c SP |
3 | Name: elektra |
4 | Version: 0.4.6 | |
b511c548 | 5 | Release: 0.1 |
6 | Epoch: 0 | |
08a1423c | 7 | License: BSD |
b511c548 | 8 | Group: Applications/System |
b0fec8fa | 9 | Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
08a1423c | 10 | # Source0-md5: f032ec83ffe91f2e7c2a0d70f67749eb |
b511c548 | 11 | Patch0: %{name}-Makefile_CFLAGS.patch |
08a1423c | 12 | URL: http://elektra.sf.net |
b0fec8fa | 13 | BuildRequires: libxslt-progs |
08a1423c | 14 | Obsoletes: registry |
a1ae6c6c | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
b511c548 | 18 | The Elektra Project provides a framework to store generic |
19 | configuration data in an hierarchical key-value pair database, instead | |
20 | of a human-readable only text file. | |
a1ae6c6c | 21 | |
22 | This way any software can read/save his configuration using a | |
23 | consistent API. Also, applications can be aware of other applications | |
24 | configurations, leveraging easy application integration. | |
25 | ||
b511c548 | 26 | #%%description -l pl |
a1ae6c6c | 27 | |
28 | %package devel | |
b511c548 | 29 | Summary: Include files and API documentation for Elektra Project |
30 | #Summary(pl): | |
a1ae6c6c | 31 | Group: Development/Libraries |
b511c548 | 32 | Requires: elektra = %{epoch}:%{version}-%{release} |
a1ae6c6c | 33 | |
34 | %description devel | |
b511c548 | 35 | The Elektra Project provides a framework to store generic |
36 | configuration data in an hierarchical key-value pair database, instead | |
37 | of a human-readable only text file. | |
a1ae6c6c | 38 | |
39 | This way any software can read/save his configuration using a | |
40 | consistent API. Also, applications can be aware of other applications | |
41 | configurations, leveraging easy application integration. | |
42 | ||
43 | This package contains the include files and API manual pages to use | |
b511c548 | 44 | the Elektra API in C. |
a1ae6c6c | 45 | |
b511c548 | 46 | #%%description devel -l pl |
a1ae6c6c | 47 | |
b511c548 | 48 | %package static |
49 | Summary: Static library for Elektra Project | |
50 | #Summary(pl): | |
51 | Group: Libraries | |
52 | Requires: elektra-devel = %{epoch}:%{version}-%{release} | |
a1ae6c6c | 53 | |
b511c548 | 54 | %description static |
55 | The Elektra Project provides a framework to store generic | |
56 | configuration data in an hierarchical key-value pair database, instead | |
57 | of a human-readable only text file. | |
a1ae6c6c | 58 | |
59 | This way any software can read/save his configuration using a | |
60 | consistent API. Also, applications can be aware of other applications | |
61 | configurations, leveraging easy application integration. | |
62 | ||
b511c548 | 63 | This package contains static library for Elektra Project. |
a1ae6c6c | 64 | |
b511c548 | 65 | #%%description static -l pl |
a1ae6c6c | 66 | |
67 | %prep | |
b511c548 | 68 | %setup -q -n elektra |
69 | %patch0 -p1 | |
a1ae6c6c | 70 | |
71 | %build | |
b511c548 | 72 | %{__make} all CC="%{__cc}" CFLAGS="%{rpmcflags}" |
a1ae6c6c | 73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
b511c548 | 77 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
a1ae6c6c | 78 | |
b511c548 | 79 | cp -a $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-devel elektra-api |
a1ae6c6c | 80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post | |
b511c548 | 85 | /sbin/ldconfig |
86 | # Create basic key structure for apps | |
87 | kdb set -t dir system/sw | |
a1ae6c6c | 88 | |
b511c548 | 89 | %postun -p /sbin/ldconfig |
a1ae6c6c | 90 | |
91 | %files | |
92 | %defattr(644,root,root,755) | |
b511c548 | 93 | %doc articles doc/standards example scripts AUTHORS ChangeLog README TODO |
782b015e | 94 | %attr(755,root,root) /bin/* |
b511c548 | 95 | %attr(755,root,root) /lib/lib*.so |
96 | %attr(755,root,root) /etc/profile.d/* | |
97 | %{_includedir}/* | |
98 | %{_datadir}/sgml | |
99 | %{_mandir}/man[157]/* | |
a1ae6c6c | 100 | |
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
b511c548 | 103 | %doc bindings elektra-api |
a1ae6c6c | 104 | %{_includedir}/* |
105 | %{_mandir}/man3/* | |
106 | ||
b511c548 | 107 | %files static |
108 | %{_libdir}/lib*.a |