/[packages]/cauldron/t4k_common/current/SPECS/t4k_common.spec
ViewVC logotype

Contents of /cauldron/t4k_common/current/SPECS/t4k_common.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1242784 - (show annotations) (download)
Mon Jul 9 14:03:21 2018 UTC (5 years, 7 months ago) by wally
File size: 2121 byte(s)
- fix build on aarch64
  - run autoreconf (SILENT)
  - BR gettext-devel (SILENT)
1 %define major 0
2 %define libname %mklibname %{name} %{major}
3 %define devname %mklibname -d %{name}
4
5 Name: t4k_common
6 Version: 0.1.1
7 Release: %mkrel 8
8 Summary: Tux4Kids common files
9 Group: Games/Other
10 License: GPLv3+
11 URL: http://tux4kids.alioth.debian.org
12 # have to change with each new release as the number after download.php changes :(
13 Source0: http://alioth.debian.org/frs/download.php/3439/%{name}-%{version}.tar.gz
14 Patch0: t4k_common-0.1.1-libpng15.patch
15 BuildRequires: gettext-devel
16 BuildRequires: SDL-devel
17 BuildRequires: SDL_mixer-devel
18 BuildRequires: SDL_image-devel
19 BuildRequires: SDL_Pango-devel
20 BuildRequires: SDL_net-devel
21 BuildRequires: librsvg2-devel
22 BuildRequires: libxml2-devel
23 BuildRequires: cairo-devel
24 BuildRequires: png-devel
25
26 %description
27 Files shared by tuxmath, tuxtype, and possibly other Tux4Kids
28 apps in the future.
29
30 %package -n %{libname}
31 Summary: Library of code shared between Tux4Kids apps
32 Group: System/Libraries
33
34 %description -n %{libname}
35 Library of code shared by tuxmath, tuxtype, and possibly other tux4kids
36 apps in the future.
37
38 %package -n %{devname}
39 Summary: Development files for %{name}
40 Group: Development/Other
41 Requires: %{libname} = %{version}-%{release}
42 Provides: lib%{name}-devel = %{version}-%{release}
43 Provides: %{name}-devel = %{version}-%{release}
44
45 %description -n %{devname}
46 This package contains libraries and header files for developing applications
47 that use %{libname}.
48
49 %prep
50 %setup -q -n %{name}-%{version}
51 %patch0 -p0
52
53 #make autoreconf more happy
54 sed -i -e 's,AM_INIT_AUTOMAKE(\(.*\)),AM_INIT_AUTOMAKE(\[\1 subdir-objects\]),' configure.ac
55
56 %build
57 # fix build on aarch64
58 autoreconf -vfi
59
60 %configure2_5x \
61 --disable-static \
62 --disable-rpath \
63 --disable-doxygen-doc
64 %make_build
65
66 %install
67 %make_install
68
69 # we don't want these
70 find %{buildroot} -name '*.la' -delete
71
72 %files
73 %{_datadir}/%{name}/
74
75 %files -n %{libname}
76 %doc README
77 %{_libdir}/lib%{name}.so.%{major}*
78
79 %files -n %{devname}
80 %{_includedir}/*.h
81 %{_libdir}/lib%{name}.so
82 %{_libdir}/pkgconfig/%{name}.pc

  ViewVC Help
Powered by ViewVC 1.1.30