]>
Commit | Line | Data |
---|---|---|
40ef67ed | 1 | # TODO: |
0f19d9e7 | 2 | # - build GConf backend (?) |
40ef67ed MB |
3 | # |
4 | Summary: mcs - simple, abstractable configuration library | |
b2a25811 | 5 | Summary(pl.UTF-8): mcs - prosta, abstrakcyjna biblioteka konfiguracji |
8ed49b1c | 6 | Name: mcs |
0f19d9e7 | 7 | Version: 0.7.0 |
8 | Release: 1 | |
8ed49b1c SS |
9 | License: BSD |
10 | Group: Development/Tools | |
23c62fb8 | 11 | Source0: http://distfiles.atheme.org/lib%{name}-%{version}.tgz |
0f19d9e7 | 12 | # Source0-md5: 0f0c779609b3481a79937c2e86660a99 |
23c62fb8 | 13 | URL: http://www.atheme.org/projects/mcs.shtml |
ef935fa8 MB |
14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
cd1a0906 | 16 | BuildRequires: libmowgli-devel >= 0.4.0 |
0f19d9e7 | 17 | BuildRequires: qt-devel |
8ed49b1c SS |
18 | Requires: %{name}-libs = %{version}-%{release} |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
40ef67ed MB |
22 | mcs is a library and set of userland tools which abstract the storage |
23 | of configuration settings away from userland applications. It is hoped | |
24 | that by using mcs, that the applications which use it will generally | |
25 | have a more congruent feeling in regards to settings. There have been | |
26 | other projects like this before (such as GConf), but unlike those | |
27 | projects, mcs strictly handles abstraction. It doesn't impose any | |
28 | specific data storage requirement, nor is it tied to any desktop | |
29 | environment or software suite. | |
8ed49b1c | 30 | |
b2a25811 JB |
31 | %description -l pl.UTF-8 |
32 | mcs to biblioteka i zbiór narzędzi tworzących abstrakcję | |
33 | przechowywania ustawień konfiguracyjnych dla aplikacji użytkownika. | |
34 | Przy użyciu mcs aplikacje mają mieć bardziej zgodne odczucia odnośnie | |
35 | ustawień. Wcześniej istniały już podobne projekty (jak GConf), ale w | |
36 | przeciwieństwie do nich mcs ściśle obsługuje abstrakcję. Nie nakłada | |
37 | żadnych konkretnych wymagań co do przechowywania danych ani nie jest | |
38 | związana z żadnym środowiskiem graficznym czy pakietem oprogramowania. | |
39 | ||
8ed49b1c SS |
40 | %package libs |
41 | Summary: mcs library | |
42 | Summary(pl.UTF-8): Biblioteka mcs | |
43 | Group: Libraries | |
44 | ||
45 | %description libs | |
46 | mcs library. | |
47 | ||
48 | %description libs -l pl.UTF-8 | |
49 | Biblioteka mcs. | |
50 | ||
51 | %package devel | |
20942db3 SS |
52 | Summary: Header files for mcs |
53 | Summary(pl.UTF-8): Pliki nagłówkowe mcs | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-libs = %{version}-%{release} | |
8ed49b1c SS |
56 | |
57 | %description devel | |
58 | Header files for mcs. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe mcs. | |
62 | ||
63 | %prep | |
23c62fb8 | 64 | %setup -q -n lib%{name}-%{version} |
8ed49b1c SS |
65 | |
66 | %build | |
0f19d9e7 | 67 | QTDIR=%{_prefix} |
68 | CFLAGS="$CFLAGS -I%{_includedir}/qt" | |
69 | CPPFLAGS="$CPPFLAGS -I%{_includedir}/qt" | |
70 | export CFLAGS CPPFLAGS QTDIR | |
ef935fa8 MB |
71 | %{__aclocal} -I m4 |
72 | %{__autoconf} | |
d0d1e4fb | 73 | %configure \ |
d0d1e4fb | 74 | --disable-gconf |
8ed49b1c SS |
75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post libs -p /sbin/ldconfig | |
87 | %postun libs -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %doc AUTHORS README | |
92 | %attr(755,root,root) %{_bindir}/%{name}-getconfval | |
93 | %attr(755,root,root) %{_bindir}/%{name}-info | |
94 | %attr(755,root,root) %{_bindir}/%{name}-query-backends | |
95 | %attr(755,root,root) %{_bindir}/%{name}-setconfval | |
23c62fb8 | 96 | %attr(755,root,root) %{_bindir}/%{name}-walk-config |
8ed49b1c SS |
97 | |
98 | %files libs | |
99 | %defattr(644,root,root,755) | |
40ef67ed | 100 | %attr(755,root,root) %{_libdir}/libmcs.so.*.*.* |
864e75d8 | 101 | %ghost %attr(755,root,root) %{_libdir}/libmcs.so.? |
8ed49b1c | 102 | %dir %{_libdir}/%{name} |
d0d1e4fb | 103 | %attr(755,root,root) %{_libdir}/%{name}/keyfile.so |
0f19d9e7 | 104 | %attr(755,root,root) %{_libdir}/%{name}/kconfig.so |
8ed49b1c SS |
105 | |
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
108 | %attr(755,root,root) %{_libdir}/libmcs.so | |
109 | %{_includedir}/libmcs | |
110 | %{_pkgconfigdir}/libmcs.pc |