- updated to 1.0.2
[packages/libgnome-games-support.git] / libgames-support.spec
CommitLineData
4c688f6c
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
6b42a81d 4
c8018e9e 5Summary: Support library for GNOME games
4c688f6c 6Summary(pl.UTF-8): Biblioteka wspierająca dla gier GNOME
c8018e9e 7Name: libgames-support
518bff25 8Version: 1.0.2
99ab61d7 9Release: 1
c8018e9e
MB
10License: LGPL v3+
11Group: X11/Libraries
518bff25
JB
12Source0: http://ftp.gnome.org/pub/GNOME/sources/libgames-support/1.0/%{name}-%{version}.tar.xz
13# Source0-md5: ffba5c102eeb9ae3d96294bccb02446e
c8018e9e
MB
14BuildRequires: autoconf >= 2.69
15BuildRequires: automake >= 1:1.11
16BuildRequires: glib2-devel >= 1:2.40.0
12402aae 17BuildRequires: gtk+3-devel >= 3.20.0
c8018e9e 18BuildRequires: intltool >= 0.50.2
4c688f6c 19BuildRequires: libgee-devel >= 0.8
c8018e9e
MB
20BuildRequires: libtool >= 2:2.2
21BuildRequires: pkgconfig
22BuildRequires: vala >= 2:0.24.0
23Requires: glib2 >= 1:2.40.0
12402aae 24Requires: gtk+3 >= 3.20.0
c8018e9e
MB
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28libgames-support is a small library intended for internal use by GNOME
29Games, but it may be used by others. The API will only break with the
30major version number. The ABI is unstable.
31
4c688f6c
JB
32%description -l pl.UTF-8
33libgames-support to mała biblioteka przeznaczona do użytku
34wewnętrznego gier ze środowiska GNOME, ale może być wykorzystywana
35także przez innych. API może się zmieniać tylko wraz z głównym numerem
36wersji; ABI nie jest stabilne.
37
c8018e9e
MB
38%package devel
39Summary: Header files for libgames-support library
40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgames-support
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
43Requires: glib2-devel >= 1:2.40.0
12402aae 44Requires: gtk+3-devel >= 3.20.0
c8018e9e
MB
45
46%description devel
47Header files for libgames-support library.
48
49%description devel -l pl.UTF-8
50Pliki nagłówkowe biblioteki libgames-support.
51
4c688f6c
JB
52%package static
53Summary: Static libgames-support library
54Summary(pl.UTF-8): Statyczna biblioteka libgames-support
55Group: Development/Libraries
56Requires: %{name}-devel = %{version}-%{release}
57
58%description static
59Static libgames-support library.
60
61%description static -l pl.UTF-8
62Statyczna biblioteka libgames-support.
63
64%package -n vala-libgames-support
65Summary: Vala API for libgames-support library
66Summary(pl.UTF-8): API języka Vala do bibliotek libgames-support
67Group: Development/Libraries
68Requires: %{name}-devel = %{version}-%{release}
6b42a81d
ER
69%if "%{_rpmversion}" >= "5"
70BuildArch: noarch
71%endif
4c688f6c
JB
72
73%description -n vala-libgames-support
74Vala API for libgames-support library.
75
76%description -n vala-libgames-support -l pl.UTF-8
77API języka Vala do bibliotek libgames-support.
78
c8018e9e
MB
79%prep
80%setup -q
81
82%build
83%{__intltoolize}
84%{__libtoolize}
4c688f6c 85%{__aclocal} -I m4
c8018e9e
MB
86%{__autoconf}
87%{__automake}
4c688f6c 88%configure \
f3499315 89 --disable-silent-rules \
4c688f6c 90 %{?with_static_libs:--enable-static}
c8018e9e
MB
91%{__make}
92
93%install
94rm -rf $RPM_BUILD_ROOT
95
96%{__make} install \
97 DESTDIR=$RPM_BUILD_ROOT
98
4c688f6c 99%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
c8018e9e
MB
100
101%find_lang %{name}
102
103%clean
104rm -rf $RPM_BUILD_ROOT
105
106%post -p /sbin/ldconfig
107%postun -p /sbin/ldconfig
108
109%files -f %{name}.lang
110%defattr(644,root,root,755)
111%doc NEWS README
112%attr(755,root,root) %{_libdir}/libgames-support.so.*.*.*
12402aae 113%attr(755,root,root) %ghost %{_libdir}/libgames-support.so.2
c8018e9e
MB
114
115%files devel
116%defattr(644,root,root,755)
117%attr(755,root,root) %{_libdir}/libgames-support.so
118%{_includedir}/gnome-games
119%{_pkgconfigdir}/libgames-support-1.0.pc
4c688f6c
JB
120
121%if %{with static_libs}
122%files static
123%defattr(644,root,root,755)
124%{_libdir}/libgames-support.a
125%endif
126
127%files -n vala-libgames-support
128%defattr(644,root,root,755)
c8018e9e 129%{_datadir}/vala/vapi/libgames-support-1.0.vapi
This page took 0.133724 seconds and 4 git commands to generate.