]> git.pld-linux.org Git - SPECS.git/blob - gmtk.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / gmtk.spec
1 # TODO:
2 #  - fix unresolved symbols in post check
3 #
4 # Conditional build:
5 %bcond_without  gtk3            # build without GTK+3
6
7 Summary:        Gnome-mplayer toolkit
8 Name:           gmtk
9 Version:        1.0.8
10 Release:        1
11 License:        GPL
12 Group:          X11/Applications/Multimedia
13 Source0:        http://gmtk.googlecode.com/files/%{name}-%{version}.tar.gz
14 # Source0-md5:  ee8ab99f3ac2e0071c99a35e4847bba5
15 URL:            http://kdekorte.googlepages.com/gmtk
16 BuildRequires:  autoconf >= 2.57
17 BuildRequires:  automake
18 BuildRequires:  gettext
19 %if %{with gtk3}
20 BuildRequires:  gtk+3-devel
21 %else
22 BuildRequires:  gtk+2-devel
23 %endif
24 BuildRequires:  libtool
25 BuildRequires:  pulseaudio-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         skip_post_check_so      libgmlib.so.0.0.0 libgmtk.so.0.0.0
29
30 %description
31 Library for gnome-mplayer and gecko-mediaplayer.
32
33 %package devel
34 Summary:        Include files for the gmtk
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 This package provides the necessary include files to allow you to
40 develop programs using the gmtk.
41
42 %prep
43 %setup -q
44
45 %build
46 %{__libtoolize}
47 %{__aclocal}
48 %{__autoconf}
49 %{__automake}
50 %configure \
51         --disable-static \
52         %{!?with_gtk3:--disable-gtk3}
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %find_lang %{name}
61
62 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
63 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post   -p /sbin/ldconfig
69 %postun -p /sbin/ldconfig
70
71 %files -f %{name}.lang
72 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_libdir}/libgmlib.so.*.*.*
74 %ghost %{_libdir}/libgmlib.so.1
75 %attr(755,root,root) %{_libdir}/libgmtk.so.*.*.*
76 %ghost %{_libdir}/libgmtk.so.1
77
78 %files devel
79 %defattr(644,root,root,755)
80 %doc ChangeLog
81 %attr(755,root,root) %{_libdir}/libgmlib.so
82 %attr(755,root,root) %{_libdir}/libgmtk.so
83 %{_includedir}/gmtk
84 %{_pkgconfigdir}/gmlib.pc
85 %{_pkgconfigdir}/gmtk.pc
This page took 0.536453 seconds and 3 git commands to generate.