packages: libkate/libkate.spec - verbose files - move check to test - ghost...
glen
glen at pld-linux.org
Tue Apr 13 09:24:57 CEST 2010
Author: glen Date: Tue Apr 13 07:24:57 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- verbose files
- move check to test
- ghost soname symlinks
- package only compiled python
---- Files affected:
packages/libkate:
libkate.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/libkate/libkate.spec
diff -u packages/libkate/libkate.spec:1.2 packages/libkate/libkate.spec:1.3
--- packages/libkate/libkate.spec:1.2 Tue Apr 13 07:34:41 2010
+++ packages/libkate/libkate.spec Tue Apr 13 09:24:52 2010
@@ -1,4 +1,11 @@
# $Revision$, $Date$
+# TODO
+# - static
+# - python package?
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
Summary: Libraries to handle the Kate bitstream format
Name: libkate
Version: 0.3.7
@@ -16,6 +23,7 @@
BuildRequires: liboggz
BuildRequires: libpng-devel
BuildRequires: python-devel
+BuildRequires: rpmbuild(macros) >= 1.219
BuildRequires: valgrind
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -59,7 +67,7 @@
%setup -q
%patch0 -p1
-# We regenerate theses files at built step
+# We regenerate these files at built step
rm tools/kate_parser.{c,h}
rm tools/kate_lexer.c
@@ -69,6 +77,8 @@
%{__make}
+%{?with_tests:%{__make} check}
+
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
@@ -78,8 +88,7 @@
# Fix for header timestramps
touch -r $RPM_BUILD_ROOT%{_includedir}/kate/kate_config.h $RPM_BUILD_ROOT%{_includedir}/kate/kate.h
-%check
-make check
+%py_postclean
%clean
rm -rf $RPM_BUILD_ROOT
@@ -89,18 +98,23 @@
%files
%defattr(644,root,root,755)
-%exclude %{_docdir}/libkate-%{version}/html
%doc %{_docdir}/libkate-%{version}
-# XXX files fix
-%attr(755,root,root) %{_libdir}/*.so.*
+%exclude %{_docdir}/libkate-%{version}/html
+%attr(755,root,root) %ghost %{_libdir}/libkate.so.1
+%attr(755,root,root) %{_libdir}/libkate.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liboggkate.so.1
+%attr(755,root,root) %{_libdir}/liboggkate.so.*.*.*
%files devel
%defattr(644,root,root,755)
%doc examples
%{_includedir}/kate
-# XXX files fix
-%attr(755,root,root) %{_libdir}/*.so
-%{_pkgconfigdir}/*.pc
+%{_libdir}/libkate.so
+%{_libdir}/libkate.la
+%{_libdir}/liboggkate.so
+%{_libdir}/liboggkate.la
+%{_pkgconfigdir}/kate.pc
+%{_pkgconfigdir}/oggkate.pc
%files utils
%defattr(644,root,root,755)
@@ -108,8 +122,8 @@
%attr(755,root,root) %{_bindir}/katalyzer
%attr(755,root,root) %{_bindir}/katedec
%attr(755,root,root) %{_bindir}/kateenc
-# XXX files fix
-%{py_sitescriptdir}/kdj
+%dir %{py_sitescriptdir}/kdj
+%{py_sitescriptdir}/kdj/*.py[co]
%{_mandir}/man1/KateDJ.1*
%{_mandir}/man1/katalyzer.1*
%{_mandir}/man1/katedec.1*
@@ -125,6 +139,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2010/04/13 07:24:52 glen
+- verbose files
+- move check to test
+- ghost soname symlinks
+- package only compiled python
+
Revision 1.2 2010/04/13 05:34:41 qboosh
- libpng patch
- don't disable static
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libkate/libkate.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list