SPECS: hydrogen.spec - 0.9.2, doc subpackage (with tons of install...
freetz
freetz at pld-linux.org
Sat Nov 12 23:23:46 CET 2005
Author: freetz Date: Sat Nov 12 22:23:46 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- 0.9.2, doc subpackage (with tons of install cleanups)
---- Files affected:
SPECS:
hydrogen.spec (1.18 -> 1.19)
---- Diffs:
================================================================
Index: SPECS/hydrogen.spec
diff -u SPECS/hydrogen.spec:1.18 SPECS/hydrogen.spec:1.19
--- SPECS/hydrogen.spec:1.18 Mon Mar 14 15:06:13 2005
+++ SPECS/hydrogen.spec Sat Nov 12 23:23:40 2005
@@ -2,12 +2,12 @@
Summary: Pattern based drum machine
Summary(pl): Automat perkusyjny
Name: hydrogen
-Version: 0.9.1
-Release: 2
+Version: 0.9.2
+Release: 1
License: GPL
Group: X11/Applications/Sound
Source0: http://dl.sourceforge.net/hydrogen/%{name}-%{version}.tar.gz
-# Source0-md5: 3c2b1db257f126f6d6f97e75a3d18ace
+# Source0-md5: b14b45e22c790413d77e21a93e62eb47
Source1: %{name}.desktop
Source2: %{name}.png
Patch0: %{name}-gcc34.patch
@@ -32,21 +32,39 @@
GNU/Linuksa. Celem programu jest umożliwienie w prosty i szybki sposób
tworzenia paternów rytmicznych.
+%package doc
+Summary: Hydrogen manual and tutorial
+Summary(pl): Podrecznik i tutorial Hydrogena
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+Hydrogen manual and tutorial.
+
+%description doc -l pl
+Podrecznik i tutorial Hydrogena.
+
%prep
%setup -q
%patch0 -p1
%build
+export QTDIR=%{_prefix}
cp -f /usr/share/automake/config.sub admin
-%configure \
- --disable-debug-messages
+# don't run update-menus (WTF is that?)
+sed -i -e 's|update-menus||' Makefile.in
+
+# clean up CVS trash
+find . -type d -name CVS -print | xargs rm -rf {} \;
+
+%configure
%{__make} \
CXXFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_pixmapsdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -54,34 +72,90 @@
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+# clean up documentation
+rm -f $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/doc/*.{docbook,sh}
+rm -f $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/doc/img/*.h2song
+rm -f $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/doc/infoSplash/*.html
+rm -f $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/i18n/*.{sh,ts}
+rm -rf $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/doc/man
+
+install data/doc/man/C/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install data/doc/img/Tutorial2.h2song \
+ $RPM_BUILD_ROOT%{_datadir}/hydrogen/data/demo_songs
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README TODO
+%doc AUTHORS ChangeLog README
%attr(755,root,root) %{_bindir}/*
+
%dir %{_datadir}/hydrogen
-%dir %{_datadir}/hydrogen/i18n
-%lang(fr) %{_datadir}/hydrogen/i18n/%{name}.fr.qm
-%lang(es) %{_datadir}/hydrogen/i18n/%{name}.es.qm
-%lang(it) %{_datadir}/hydrogen/i18n/%{name}.it.qm
-%lang(ru) %{_datadir}/hydrogen/i18n/%{name}.ru.qm
-%lang(hu) %{_datadir}/hydrogen/i18n/%{name}.hu_HU.qm
-%lang(pt) %{_datadir}/hydrogen/i18n/%{name}.pt_BR.qm
-%{_datadir}/hydrogen/data
-%{_datadir}/hydrogen/img
-%{_datadir}/hydrogen/manual
-%{_mandir}/man1/hydrogen*
+%dir %{_datadir}/hydrogen/data
+%dir %{_datadir}/hydrogen/data/demo_songs
+
+%{_datadir}/hydrogen/data/*.conf
+%{_datadir}/hydrogen/data/*.h2song
+%{_datadir}/hydrogen/data/*.wav
+%{_datadir}/hydrogen/data/drumkits
+%{_datadir}/hydrogen/data/img
%{_desktopdir}/*.desktop
%{_pixmapsdir}/*.png
+# demo songs
+%{_datadir}/hydrogen/data/demo_songs/GM_*.h2song
+%{_datadir}/hydrogen/data/demo_songs/TR808kit-demo.h2song
+%{_datadir}/hydrogen/data/demo_songs/tutorial_georgyporgy.h2song
+
+# translations
+%lang(de) %{_datadir}/hydrogen/data/i18n/%{name}.de.qm
+%lang(es) %{_datadir}/hydrogen/data/i18n/%{name}.es.qm
+%lang(fr) %{_datadir}/hydrogen/data/i18n/%{name}.fr.qm
+%lang(hu) %{_datadir}/hydrogen/data/i18n/%{name}.hu_HU.qm
+%lang(it) %{_datadir}/hydrogen/data/i18n/%{name}.it.qm
+%lang(ja) %{_datadir}/hydrogen/data/i18n/%{name}.ja.qm
+%lang(nl) %{_datadir}/hydrogen/data/i18n/%{name}.nl.qm
+%lang(pl) %{_datadir}/hydrogen/data/i18n/%{name}.pl.qm
+%lang(pt) %{_datadir}/hydrogen/data/i18n/%{name}.pt_BR.qm
+%lang(ru) %{_datadir}/hydrogen/data/i18n/%{name}.ru.qm
+%{_mandir}/man1/*.1*
+
+%files doc
+%defattr(644,root,root,755)
+%dir %{_datadir}/hydrogen/data/doc
+%dir %{_datadir}/hydrogen/data/doc/img
+
+# demo songs
+%{_datadir}/hydrogen/data/demo_songs/Tutorial2.h2song
+
+# images
+%lang(nl) %{_datadir}/hydrogen/data/doc/img/nl/*.png
+%{_datadir}/hydrogen/data/doc/img/*.png
+%{_datadir}/hydrogen/data/doc/img_tutorial
+%{_datadir}/hydrogen/data/doc/infoSplash
+
+# multilang manual & tutorial
+%lang(de) %{_datadir}/hydrogen/data/doc/manual_de.html
+%lang(es) %{_datadir}/hydrogen/data/doc/manual_es.html
+%lang(fr) %{_datadir}/hydrogen/data/doc/manual_fr.html
+%lang(fr) %{_datadir}/hydrogen/data/doc/tutorial_fr.html
+%lang(it) %{_datadir}/hydrogen/data/doc/manual_it.html
+%lang(it) %{_datadir}/hydrogen/data/doc/tutorial_it.html
+%lang(nl) %{_datadir}/hydrogen/data/doc/manual_nl.html
+%{_datadir}/hydrogen/data/doc/manual.html
+%{_datadir}/hydrogen/data/doc/manual_en.html
+%{_datadir}/hydrogen/data/doc/tutorial_en.html
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.19 2005/11/12 22:23:40 freetz
+- 0.9.2, doc subpackage (with tons of install cleanups)
+
Revision 1.18 2005/03/14 14:06:13 havner
- rel up for new flac
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/hydrogen.spec?r1=1.18&r2=1.19&f=u
More information about the pld-cvs-commit
mailing list