Added RPM package building. Configure with --enable-gtk-doc --enable-rpm and then...
[rodin/chimara.git] / chimara.spec.in
1 # @configure_input@
2 #
3 # Spec file for chimara and chimara-devel
4 #
5
6 Name:           @PACKAGE_TARNAME@
7 Version:        @PACKAGE_VERSION@
8 Release:        @RPM_RELEASE@%{?dist}
9 Summary:        A GTK+ widget implementation of the Glk library
10
11 Packager:       P. F. Chimento <philip.chimento@gmail.com>
12 URL:            http://lassie.student.utwente.nl/chimara/
13 License:        MIT
14
15 Group:          Development/Libraries
16 Source:         %{name}-%{version}.tar.gz
17 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18
19 Requires:       glib2 >= @GLIB_REQUIRED_VERSION@
20 Requires:       gtk2 >= @GTK_REQUIRED_VERSION@
21 Requires:       pango
22 BuildRequires:  bison
23 # byacc is allowed instead of bison, but stoopid RPM doesn't let you specify alternative pkgs
24 BuildRequires:  perl gettext libtool pkgconfig intltool
25 BuildRequires:  gtk-doc >= @GTK_DOC_REQUIRED_VERSION@
26 BuildRequires:  glib2-devel >= @GLIB_REQUIRED_VERSION@
27 BuildRequires:  gtk2-devel >= @GTK_REQUIRED_VERSION@
28 BuildRequires:  pango-devel
29
30 %description
31 A GTK+ widget that loads and runs Glk programs as plugins. Glk is an
32 input/output specification specifically designed for interactive fiction.
33
34 %package        devel
35 Summary:        Development files for %{name}
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38
39 %description    devel
40 The %{name}-devel package contains libraries and header files for
41 developing applications that use %{name}.
42
43 %prep
44 %setup -q
45
46 %build
47 %configure --disable-static
48 make %{?_smp_mflags}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 %makeinstall
53 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post -p /sbin/ldconfig
59
60 %postun -p /sbin/ldconfig
61
62 %files
63 %define docdir %{_prefix}/doc
64 %define pkgdocdir %{_datadir}/doc/chimara
65 %defattr(-,root,root,-)
66 %doc %{docdir}/chimara/*
67 %doc %{_infodir}/*
68 %doc %{pkgdocdir}/*
69 %{_libdir}/libchimara.*
70 %{_libdir}/chimara/*.so
71 %{_datadir}/*.ui
72 %{_datadir}/*.menus
73
74 %files devel
75 %defattr(-,root,root,-)
76 %doc %{_datadir}/gtk-doc/html/*
77 %{_includedir}/chimara/libchimara/*.h
78 %{_libdir}/pkgconfig/*.pc
79
80 %changelog
81 * Wed Nov 25 2009 P. F. Chimento <philip.chimento@gmail.com>
82 - Created specfile.