%doc %{_infodir}/*.info*
%{_libdir}/libchimara.so.*
%{_libdir}/chimara/*.so
-%{_datadir}/*.ui
-%{_datadir}/*.menus
%files devel
%defattr(-,root,root,-)
%doc %{_datadir}/doc/chimara/ChangeLog
%doc %{_datadir}/doc/chimara/NEWS
%{_bindir}/chimara
+%{_pkgdatadir}/chimara.ui
+%{_pkgdatadir}/chimara.menus
%changelog
* Fri Dec 4 2009 P. F. Chimento <philip.chimento@gmail.com>
- 0.1-1
- Mended rpmlint warnings and errors.
+- Moved player data files to player package.
* Mon Nov 30 2009 W. M. van Vliet <w.m.vanvliet@student.utwente.nl>
- Added Chimara player to the package.
* Wed Nov 25 2009 P. F. Chimento <philip.chimento@gmail.com>
else
-dist_data_DATA = chimara.ui chimara.menus
+dist_pkgdata_DATA = chimara.ui chimara.menus
bin_PROGRAMS = chimara
chimara_SOURCES = main.c callbacks.c error.c error.h
chimara_CPPFLAGS = $(AM_CPPFLAGS) \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
- -DPACKAGE_DATA_DIR=\""$(datadir)"\"
+ -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\"
chimara_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS)
chimara_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la
AM_CFLAGS = -Wall
AM_CPPFLAGS = -I$(top_srcdir)
-PLUGIN_LIBTOOL_FLAGS=-module -avoid-version -export-symbols-regex "^glk_main$$"
+# The rpath is necessary because stoopid libtool won't build a shared library
+# if it's noinst_, because what POSSIBLE reason could you have to do that?
+TEST_PLUGIN_LIBTOOL_FLAGS = \
+ -module \
+ -shared \
+ -avoid-version \
+ -export-symbols-regex "^glk_main$$" \
+ -rpath $(abs_builddir)
-if TARGET_ILIAD
-
-iliad_SOURCES = iliad.c
-iliad_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS)
-iliad_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la
-
-noinst_PROGRAMS = iliad
-
-else
-
-dist_data_DATA = chimara.ui chimara.menus glulxercise.ui
-noinst_PROGRAMS = test-chimara test-multisession glulxercise plugin-loader
-
-test_chimara_SOURCES = main.c callbacks.c error.c error.h
-test_chimara_CPPFLAGS = $(AM_CPPFLAGS) \
- -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
- -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
- -DPACKAGE_DATA_DIR=\""$(datadir)"\"
-test_chimara_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS)
-test_chimara_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la
+noinst_PROGRAMS = test-multisession glulxercise plugin-loader
test_multisession_SOURCES = test-multisession.c
test_multisession_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS)
plugin_loader_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS)
plugin_loader_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la
-pkglib_LTLIBRARIES = first.la model.la gridtest.la splittest.la multiwin.la styletest.la
+noinst_LTLIBRARIES = first.la model.la gridtest.la splittest.la multiwin.la styletest.la
first_la_SOURCES = first.c
-first_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
+first_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
model_la_SOURCES = model.c
-model_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
+model_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
gridtest_la_SOURCES = gridtest.c
-gridtest_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
+gridtest_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
splittest_la_SOURCES = splittest.c
-splittest_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
+splittest_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
multiwin_la_SOURCES = multiwin.c
-multiwin_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
+multiwin_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
styletest_la_SOURCES = styletest.c
-styletest_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
-
-endif
+styletest_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)