]> git.pld-linux.org Git - packages/libgee.git/blob - libgee.spec
- unconditional noarch subpackages
[packages/libgee.git] / libgee.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation (valadoc)
4 %bcond_without  static_libs     # static library
5 %bcond_with     bootstrap       # bootstrap without apidocs subpackage (alias for without_apidocs)
6
7 %if %{with bootstrap}
8 %undefine       with_apidocs
9 %endif
10 Summary:        libgee - GObject collection library
11 Summary(pl.UTF-8):      libgee - biblioteka kolekcji oparta na GObject
12 Name:           libgee
13 Version:        0.20.3
14 Release:        1
15 License:        LGPL v2+
16 Group:          Libraries
17 Source0:        http://ftp.gnome.org/pub/GNOME/sources/libgee/0.20/%{name}-%{version}.tar.xz
18 # Source0-md5:  e574b3952b93d219b5ec7c74c5892c33
19 Patch0:         %{name}-doc.patch
20 URL:            https://wiki.gnome.org/Projects/Libgee
21 BuildRequires:  autoconf >= 2.50
22 BuildRequires:  automake >= 1:1.11
23 BuildRequires:  glib2-devel >= 1:2.36.0
24 BuildRequires:  gobject-introspection-devel >= 0.9.0
25 BuildRequires:  libtool
26 BuildRequires:  pkgconfig
27 BuildRequires:  tar >= 1:1.22
28 %{?with_apidocs:BuildRequires:  valadoc}
29 BuildRequires:  xz
30 # not required for stable releases (all generated files are included)
31 #BuildRequires: vala >= 2:0.25.1
32 Requires:       glib2 >= 1:2.36.0
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 libgee is a collection library providing GObject-based interfaces and
37 classes for commonly used data structures.
38
39 %description -l pl.UTF-8
40 libgee jest biblioteką udostępniajacą oparte na bibliotece GObject
41 interfejsy oraz klasy powszechnie używanych struktur danych.
42
43 %package devel
44 Summary:        Header files for libgee library
45 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgee
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       glib2-devel >= 1:2.36.0
49
50 %description devel
51 Header files for libgee library.
52
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki libgee.
55
56 %package static
57 Summary:        Static libgee library
58 Summary(pl.UTF-8):      Statyczna biblioteka libgee
59 Group:          Development/Libraries
60 Requires:       %{name}-devel = %{version}-%{release}
61
62 %description static
63 Static libgee library.
64
65 %description static -l pl.UTF-8
66 Statyczna biblioteka libgee.
67
68 %package -n vala-libgee
69 Summary:        libgee API for Vala language
70 Summary(pl.UTF-8):      API libgee dla języka Vala
71 Group:          Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73 Requires:       vala >= 2:0.25.1
74 BuildArch:      noarch
75
76 %description -n vala-libgee
77 libgee API for Vala language.
78
79 %description -n vala-libgee -l pl.UTF-8
80 API libgee dla języka Vala.
81
82 %package apidocs
83 Summary:        API documentation for libgee library
84 Summary(pl.UTF-8):      Dokumentacja API biblioteki libgee
85 Group:          Documentation
86 BuildArch:      noarch
87
88 %description apidocs
89 API documentation for libgee library.
90
91 %description apidocs -l pl.UTF-8
92 Dokumentacja API biblioteki libgee.
93
94 %prep
95 %setup -q
96 %patch0 -p1
97
98 %build
99 %{__libtoolize}
100 %{__aclocal}
101 %{__autoconf}
102 %{__autoheader}
103 %{__automake}
104 %configure \
105         %{?with_apidocs:--enable-doc} \
106         --disable-silent-rules \
107         %{?with_static_libs:--enable-static}
108 %{__make}
109
110 %install
111 rm -rf $RPM_BUILD_ROOT
112
113 %{__make} install \
114         DESTDIR=$RPM_BUILD_ROOT
115
116 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgee-0.8.la
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %post   -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
123
124 %files
125 %defattr(644,root,root,755)
126 %doc AUTHORS ChangeLog MAINTAINERS NEWS README
127 %attr(755,root,root) %{_libdir}/libgee-0.8.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libgee-0.8.so.2
129 %{_libdir}/girepository-1.0/Gee-0.8.typelib
130
131 %files devel
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libgee-0.8.so
134 %{_pkgconfigdir}/gee-0.8.pc
135 %{_includedir}/gee-0.8
136 %{_datadir}/gir-1.0/Gee-0.8.gir
137
138 %if %{with static_libs}
139 %files static
140 %defattr(644,root,root,755)
141 %{_libdir}/libgee-0.8.a
142 %endif
143
144 %files -n vala-libgee
145 %defattr(644,root,root,755)
146 %{_datadir}/vala/vapi/gee-0.8.vapi
147
148 %if %{with apidocs}
149 %files apidocs
150 %defattr(644,root,root,755)
151 %{_datadir}/devhelp/references/gee-0.8
152 %endif
This page took 0.071361 seconds and 3 git commands to generate.