Refactor loading sound resource as GIO stream
[projects/chimara/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:        1%{?dist}
9 Summary:        A GTK+ widget implementation of the Glk library
10 URL:            http://lassie.student.utwente.nl/chimara/
11 License:        MIT
12
13 Group:          Development/Libraries
14 Source:         %{name}-%{version}.tar.gz
15 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16
17 Requires:       glib2 >= @GLIB_REQUIRED_VERSION@
18 Requires:       gtk2 >= @GTK_REQUIRED_VERSION@
19 Requires:       pango
20 Requires(post): info
21 Requires(preun): info
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 %package        player
44 Summary:        The default IF player using %{name}
45 Group:          Amusements/Games
46 Requires:       %{name} = %{version}-%{release}
47
48 %description    player
49 The %{name}-player package contains the default interactive fiction player 
50 using %{name}.
51
52 %prep
53 %setup -q
54
55 %build
56 %configure --disable-static --disable-schemas-compile
57 make %{?_smp_mflags}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 # not macro makeinstall, this breaks stoopid GSETTINGS_RULES
62 make install DESTDIR=$RPM_BUILD_ROOT
63 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
64 rm -f $RPM_BUILD_ROOT/usr/share/info/dir
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post 
70 /sbin/ldconfig
71 /sbin/install-info %{_infodir}/nitfol.info %{_infodir}/dir || :
72
73 %post player
74 if [ $1 -eq 1 ] ; then
75   glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
76 fi
77
78 %preun
79 if [ $1 = 0 ] ; then
80   /sbin/install-info --delete %{_infodir}/nitfol.info %{_infodir}/dir || :
81 fi
82
83 %postun -p /sbin/ldconfig
84
85 %postun player
86 glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
87
88 %files
89 %defattr(-,root,root,-)
90 %doc %{_datadir}/doc/chimara/frotz/*
91 %doc %{_datadir}/doc/chimara/git/*
92 %doc %{_datadir}/doc/chimara/glulxe/*
93 %doc %{_datadir}/doc/chimara/nitfol/*
94 %doc %{_infodir}/*.info*
95 %{_libdir}/libchimara.so.*
96 %{_libdir}/chimara/*.so
97 %{_libexecdir}/chimara/profile-analyze.py
98
99 %files devel
100 %defattr(-,root,root,-)
101 %doc %{_datadir}/gtk-doc/html/*
102 %{_includedir}/chimara/libchimara/*.h
103 %{_libdir}/libchimara.so
104 %{_libdir}/pkgconfig/*.pc
105
106 %files player
107 %defattr(-,root,root,-)
108 %doc %{_datadir}/doc/chimara/README 
109 %doc %{_datadir}/doc/chimara/COPYING 
110 %doc %{_datadir}/doc/chimara/AUTHORS 
111 %doc %{_datadir}/doc/chimara/ChangeLog 
112 %doc %{_datadir}/doc/chimara/NEWS
113 %{_bindir}/chimara
114 %{_datadir}/chimara/chimara.ui
115 %{_datadir}/chimara/chimara.menus
116 %{_datadir}/chimara/style.css
117 %{_datadir}/glib-2.0/schemas/org.chimara-if.gschema.xml
118
119 %changelog
120 * Mon Mar 7 2011 P. F. Chimento <philip.chimento@gmail.com>
121 - Added glib-compile-schemas invocations.
122 * Fri Dec 4 2009 P. F. Chimento <philip.chimento@gmail.com>
123 - 0.1-1
124 - Mended rpmlint warnings and errors.
125 - Moved player data files to player package.
126 * Mon Nov 30 2009 W. M. van Vliet <w.m.vanvliet@student.utwente.nl>
127 - Added Chimara player to the package.
128 * Wed Nov 25 2009 P. F. Chimento <philip.chimento@gmail.com>
129 - Created specfile.