]>
Commit | Line | Data |
---|---|---|
c33601ea JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API docs | |
4 | %bcond_without static_libs # static library | |
5e242857 ER |
5 | |
6 | %define snap 20130813 | |
7 | %define rel 3 | |
c33601ea JB |
8 | Summary: Enlightenment location library |
9 | Summary(pl.UTF-8): Biblioteka lokalizacji dla środowiska Enlightenment | |
10 | Name: elocation | |
11 | Version: 0.1.0 | |
5e242857 | 12 | Release: 0.%{snap}.%{rel} |
c33601ea JB |
13 | License: unknown |
14 | Group: Libraries | |
15 | # git clone http://git.enlightenment.org/devs/stefan/elocation.git | |
16 | Source0: %{name}.tar.xz | |
17 | # Source0-md5: 1710301b6bc0f2e38e4b057a059380e3 | |
18 | URL: http://git.enlightenment.org/devs/stefan/elocation.git/ | |
19 | BuildRequires: autoconf >= 2.52 | |
20 | BuildRequires: automake >= 1.6 | |
5e242857 | 21 | %{?with_apidocs:BuildRequires: doxygen} |
c33601ea JB |
22 | BuildRequires: ecore-devel |
23 | BuildRequires: eldbus-devel | |
c33601ea JB |
24 | BuildRequires: libtool |
25 | BuildRequires: pkgconfig >= 1:0.22 | |
26 | BuildRequires: tar >= 1:1.22 | |
27 | BuildRequires: xz | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Elocation is a small library that allows application to get some basic | |
32 | location awareness if this is supported on the platform. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Elocation to mała biblioteka pozwalająca aplikacjom uzyskać pewne | |
36 | podstawoe informacje o położeniu, jeśli jest to obsługiwane przez | |
37 | platformę. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for Elocation library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Elocation | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: ecore-devel | |
45 | Requires: eldbus-devel | |
46 | ||
47 | %description devel | |
48 | Header files for Elocation library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki Elocation. | |
52 | ||
53 | %package static | |
54 | Summary: Static Elocation library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka Elocation | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static Elocation library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka Elocation. | |
64 | ||
65 | %package apidocs | |
66 | Summary: API documentation for Elocation library | |
67 | Summary(pl.UTF-8): Dokumentacja API biblioteki Elocation | |
68 | Group: Documentation | |
5e242857 | 69 | BuildArch: noarch |
c33601ea JB |
70 | |
71 | %description apidocs | |
72 | API documentation for Elocation library. | |
73 | ||
74 | %description apidocs -l pl.UTF-8 | |
75 | Dokumentacja API biblioteki Elocation. | |
76 | ||
77 | %prep | |
78 | %setup -q -n %{name} | |
79 | ||
80 | %build | |
81 | %{__libtoolize} | |
82 | %{__aclocal} | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
86 | %configure \ | |
87 | --disable-silent-rules | |
88 | %{!?with_static_libs:--disable-static} | |
89 | %{__make} | |
90 | ||
91 | %if %{with apidocs} | |
92 | %{__make} -C doc doc | |
93 | %endif | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | # obsoleted by pkg-config | |
102 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libelocation.la | |
103 | ||
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
112 | %doc AUTHORS README | |
113 | %attr(755,root,root) %{_bindir}/elocation-test | |
114 | %attr(755,root,root) %{_libdir}/libelocation.so.*.*.* | |
115 | %attr(755,root,root) %ghost %{_libdir}/libelocation.so.0 | |
116 | ||
117 | %files devel | |
118 | %defattr(644,root,root,755) | |
119 | %attr(755,root,root) %{_libdir}/libelocation.so | |
120 | %{_includedir}/elocation-0 | |
121 | %{_pkgconfigdir}/elocation.pc | |
122 | ||
123 | %if %{with static_libs} | |
124 | %files static | |
125 | %defattr(644,root,root,755) | |
126 | %{_libdir}/libelocation.a | |
127 | %endif | |
128 | ||
129 | %if %{with apidocs} | |
130 | %files apidocs | |
131 | %defattr(644,root,root,755) | |
132 | %doc doc/html/* | |
133 | %endif |