Author: qboosh                       Date: Fri Oct 21 22:26:41 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- libfo separation fixes, added libfo-{devel,static}
- more deps, added link patch

---- Files affected:
SPECS:
   xmlroff.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SPECS/xmlroff.spec
diff -u SPECS/xmlroff.spec:1.16 SPECS/xmlroff.spec:1.17
--- SPECS/xmlroff.spec:1.16     Fri Oct 21 13:05:46 2005
+++ SPECS/xmlroff.spec  Sat Oct 22 00:26:36 2005
@@ -1,20 +1,35 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without gnomeprint      # disable GNOME Print backend
+#
 Summary:       XSL formatter
 Summary(pl):   Program formatujący XSL
 Name:          xmlroff
 Version:       0.3.6
 Release:       1
-License:       distributable
+License:       BSD-like
 Group:         Applications/Publishing/XML
 Source0:       http://dl.sourceforge.net/xmlroff/%{name}-%{version}.tar.gz
 # Source0-md5: f0ced928fb248f068d99aa6a0dba4947
 Patch0:                %{name}-no_static.patch
+Patch1:                %{name}-link.patch
 URL:           http://xmlroff.sourceforge.net/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.53
 BuildRequires: automake
+BuildRequires: freetype-devel >= 2
+BuildRequires: glib2-devel >= 1:2.4.0
+BuildRequires: gtk-doc >= 0.10
+BuildRequires: gtk+2-devel >= 1:2.2.0
+%{?with_gnomeprint:BuildRequires:      libgnomeprint-devel >= 2.8}
 BuildRequires: libtool
-BuildRequires: pangopdf-devel
-BuildRequires: libxml2-devel
+BuildRequires: pangoxsl-devel >= 1.6
+BuildRequires: libxml2-devel >= 2.4.3
+BuildRequires: libxslt-devel >= 1.0.3
+BuildRequires: perl-base
+BuildRequires: pkgconfig >= 0.5
+BuildRequires: popt-devel
+Requires:      %{name}-libfo = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,21 +45,55 @@
 przetwarzania został zdefiniowany w dokumencie XSL Recommendation
 stworzonym przez W3C.
 
-
 %package libfo
-Summary:       libfo library
-Summary(pl):   biblioteka libfo
-Group:         Applications/Publishing/XML
+Summary:       libfo - XSL formatter library
+Summary(pl):   libfo - biblioteka formatowania XSL
+Group:         Libraries
+Requires:      glib2 >= 1:2.4.0
+Requires:      gtk+2 >= 1:2.2.0
+%{?with_gnomeprint:Requires:   libgnomeprint >= 2.8}
+Requires:      pangoxsl >= 1.6
+Requires:      libxml2 >= 2.4.3
 
 %description libfo
-libfo
+libfo - XSL formatter library.
 
 %description libfo -l pl
-libfo
+libfo - biblioteka formatowania XSL.
+
+%package libfo-devel
+Summary:       Header files for libfo library
+Summary(pl):   Pliki nagłówkowe biblioteki libfo
+Group:         Development/Libraries
+Requires:      %{name}-libfo = %{version}-%{release}
+Requires:      glib2-devel >= 1:2.4.0
+Requires:      gtk+2-devel >= 1:2.2.0
+%{?with_gnomeprint:Requires:   libgnomeprint-devel >= 2.8}
+Requires:      pangoxsl-devel >= 1.6
+Requires:      libxml2-devel >= 2.4.3
+
+%description libfo-devel
+Header files for libfo library.
+
+%description libfo-devel -l pl
+Pliki nagłówkowe biblioteki libfo.
+
+%package libfo-static
+Summary:       Static libfo library
+Summary(pl):   Statyczna biblioteka libfo
+Group:         Development/Libraries
+Requires:      %{name}-libfo-devel = %{version}-%{release}
+
+%description libfo-static
+Static libfo library.
+
+%description libfo-static -l pl
+Statyczna biblioteka libfo.
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -53,36 +102,54 @@
 %{__autoconf}
 %{__automake}
 %configure \
-       --with-html-dir=%{_gtkdocdir} \
-       --enable-gp
+       %{!?with_gnomeprint:--disable-gp} \
+       --with-html-dir=%{_gtkdocdir}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  libfo -p /sbin/ldconfig
+%postun        libfo -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README COPYING
+%doc AUTHORS COPYING ChangeLog NEWS README TODO
 %attr(755,root,root) %{_bindir}/*
 %{_gtkdocdir}/xmlroff
 
 %files libfo
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libfo-*.so.*.*.*
 %{_datadir}/xml/libfo-%{version}
-%attr(755,root,root) %{_libdir}/libfo-*.so.*
+
+%files libfo-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libfo-*.so
+%{_libdir}/libfo-*.la
+%{_includedir}/libfo-*
 %{_pkgconfigdir}/libfo-0.3.pc
 
+%files libfo-static
+%defattr(644,root,root,755)
+%{_libdir}/libfo-*.a
+
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[EMAIL PROTECTED]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2005/10/21 22:26:36  qboosh
+- libfo separation fixes, added libfo-{devel,static}
+- more deps, added link patch
+
 Revision 1.16  2005/10/21 11:05:46  luzik
  - updated to 0.3.6
  - added subpackage libfo
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/xmlroff.spec?r1=1.16&r2=1.17&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to