X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=blobdiff_plain;f=chimara.spec.in;h=28de91665585dc960d796826128c49093be4802e;hp=fbde4061811fcf5312e999cf36eb684d087642fa;hb=refs%2Fheads%2Fgtk3;hpb=71bb42dc75907bd2acf2706ecec69acf57177221 diff --git a/chimara.spec.in b/chimara.spec.in index fbde406..28de916 100644 --- a/chimara.spec.in +++ b/chimara.spec.in @@ -5,10 +5,8 @@ Name: @PACKAGE_TARNAME@ Version: @PACKAGE_VERSION@ -Release: @RPM_RELEASE@%{?dist} +Release: 1%{?dist} Summary: A GTK+ widget implementation of the Glk library - -Packager: P. F. Chimento URL: http://lassie.student.utwente.nl/chimara/ License: MIT @@ -19,6 +17,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: glib2 >= @GLIB_REQUIRED_VERSION@ Requires: gtk2 >= @GTK_REQUIRED_VERSION@ Requires: pango +Requires(post): info +Requires(preun): info BuildRequires: bison # byacc is allowed instead of bison, but stoopid RPM doesn't let you specify alternative pkgs BuildRequires: perl gettext libtool pkgconfig intltool @@ -42,54 +42,87 @@ developing applications that use %{name}. %package player Summary: The default IF player using %{name} -Group: Games +Group: Amusements/Games Requires: %{name} = %{version}-%{release} %description player -The %{name}-player package contains the default interactive fiction player using %{name}. -developing applications that use %{name}. +The %{name}-player package contains the default interactive fiction player +using %{name}. %prep %setup -q %build -%configure --disable-static +%configure --disable-static --disable-schemas-compile make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -%makeinstall +# not macro makeinstall, this breaks stoopid GSETTINGS_RULES +make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +rm -f $RPM_BUILD_ROOT/usr/share/info/dir %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +/sbin/install-info %{_infodir}/nitfol.info %{_infodir}/dir || : + +%post player +if [ $1 -eq 1 ] ; then + glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +fi + +%preun +if [ $1 = 0 ] ; then + /sbin/install-info --delete %{_infodir}/nitfol.info %{_infodir}/dir || : +fi %postun -p /sbin/ldconfig +%postun player +glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : + %files -%define docdir %{_prefix}/doc -%define pkgdocdir %{_datadir}/doc/chimara %defattr(-,root,root,-) -%doc %{docdir}/chimara/* -%doc %{_infodir}/* -%doc %{pkgdocdir}/* -%{_libdir}/libchimara.* +%doc %{_datadir}/doc/chimara/frotz/* +%doc %{_datadir}/doc/chimara/git/* +%doc %{_datadir}/doc/chimara/glulxe/* +%doc %{_datadir}/doc/chimara/nitfol/* +%doc %{_infodir}/*.info* +%{_libdir}/libchimara.so.* %{_libdir}/chimara/*.so -%{_datadir}/*.ui -%{_datadir}/*.menus +%{_libexecdir}/chimara/profile-analyze.py %files devel %defattr(-,root,root,-) %doc %{_datadir}/gtk-doc/html/* %{_includedir}/chimara/libchimara/*.h +%{_libdir}/libchimara.so %{_libdir}/pkgconfig/*.pc %files player +%defattr(-,root,root,-) +%doc %{_datadir}/doc/chimara/README +%doc %{_datadir}/doc/chimara/COPYING +%doc %{_datadir}/doc/chimara/AUTHORS +%doc %{_datadir}/doc/chimara/ChangeLog +%doc %{_datadir}/doc/chimara/NEWS %{_bindir}/chimara +%{_datadir}/chimara/chimara.ui +%{_datadir}/chimara/chimara.menus +%{_datadir}/chimara/style.css +%{_datadir}/glib-2.0/schemas/org.chimara-if.gschema.xml %changelog +* Mon Mar 7 2011 P. F. Chimento +- Added glib-compile-schemas invocations. +* Fri Dec 4 2009 P. F. Chimento +- 0.1-1 +- Mended rpmlint warnings and errors. +- Moved player data files to player package. * Mon Nov 30 2009 W. M. van Vliet - Added Chimara player to the package. * Wed Nov 25 2009 P. F. Chimento