]> git.pld-linux.org Git - packages/elocation.git/blame - elocation.spec
- unconditional noarch subpackages
[packages/elocation.git] / elocation.spec
CommitLineData
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
8Summary: Enlightenment location library
9Summary(pl.UTF-8): Biblioteka lokalizacji dla środowiska Enlightenment
10Name: elocation
11Version: 0.1.0
5e242857 12Release: 0.%{snap}.%{rel}
c33601ea
JB
13License: unknown
14Group: Libraries
15# git clone http://git.enlightenment.org/devs/stefan/elocation.git
16Source0: %{name}.tar.xz
17# Source0-md5: 1710301b6bc0f2e38e4b057a059380e3
18URL: http://git.enlightenment.org/devs/stefan/elocation.git/
19BuildRequires: autoconf >= 2.52
20BuildRequires: automake >= 1.6
5e242857 21%{?with_apidocs:BuildRequires: doxygen}
c33601ea
JB
22BuildRequires: ecore-devel
23BuildRequires: eldbus-devel
c33601ea
JB
24BuildRequires: libtool
25BuildRequires: pkgconfig >= 1:0.22
26BuildRequires: tar >= 1:1.22
27BuildRequires: xz
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Elocation is a small library that allows application to get some basic
32location awareness if this is supported on the platform.
33
34%description -l pl.UTF-8
35Elocation to mała biblioteka pozwalająca aplikacjom uzyskać pewne
36podstawoe informacje o położeniu, jeśli jest to obsługiwane przez
37platformę.
38
39%package devel
40Summary: Header files for Elocation library
41Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Elocation
42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
44Requires: ecore-devel
45Requires: eldbus-devel
46
47%description devel
48Header files for Elocation library.
49
50%description devel -l pl.UTF-8
51Pliki nagłówkowe biblioteki Elocation.
52
53%package static
54Summary: Static Elocation library
55Summary(pl.UTF-8): Statyczna biblioteka Elocation
56Group: Development/Libraries
57Requires: %{name}-devel = %{version}-%{release}
58
59%description static
60Static Elocation library.
61
62%description static -l pl.UTF-8
63Statyczna biblioteka Elocation.
64
65%package apidocs
66Summary: API documentation for Elocation library
67Summary(pl.UTF-8): Dokumentacja API biblioteki Elocation
68Group: Documentation
5e242857 69BuildArch: noarch
c33601ea
JB
70
71%description apidocs
72API documentation for Elocation library.
73
74%description apidocs -l pl.UTF-8
75Dokumentacja 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
96rm -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
105rm -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
This page took 0.075441 seconds and 4 git commands to generate.