SPECS: python-4Suite.spec - Up to 1.0.2 - Extracted package 4Suite...
beorn
beorn at pld-linux.org
Mon Apr 16 13:33:36 CEST 2007
Author: beorn Date: Mon Apr 16 11:33:36 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- Up to 1.0.2
- Extracted package 4Suite-tools
- Cleanup
---- Files affected:
SPECS:
python-4Suite.spec (1.35 -> 1.36)
---- Diffs:
================================================================
Index: SPECS/python-4Suite.spec
diff -u SPECS/python-4Suite.spec:1.35 SPECS/python-4Suite.spec:1.36
--- SPECS/python-4Suite.spec:1.35 Mon Apr 16 10:56:39 2007
+++ SPECS/python-4Suite.spec Mon Apr 16 13:33:31 2007
@@ -1,18 +1,20 @@
# $Revision$, $Date$
# TODO:
# - external expat
+# - egg-info
+# - -devel package
+# - remove -root patch after full release
%define short_name 4Suite
-%define _rc b3
+#
Summary: XML processing tools
Summary(pl.UTF-8): Narzędzia przetwarzania XML-a
Name: python-%{short_name}
-Version: 1.0
-Release: 0.%{_rc}.1
+Version: 1.0.2
+Release: 0.1
License: Custom
Group: Libraries/Python
-Source0: ftp://ftp.4suite.org/pub/4Suite/%{short_name}-XML-%{version}%{_rc}.tar.bz2
-# Source0-md5: 9decb8b1032415ae155fe9a917fe8126
-Patch0: %{name}-root.patch
+Source0: ftp://ftp.4suite.org/pub/4Suite/%{short_name}-XML-%{version}.tar.bz2
+# Source0-md5: b3e976a666899113d58f333518205968
URL: http://4suite.org/
BuildRequires: pydoc
BuildRequires: python-devel >= 2.0
@@ -47,53 +49,60 @@
%description examples -l pl.UTF-8
Przykłady użycia 4Suite.
-%prep
-%setup -q -n %{short_name}-%{version}%{_rc}
-%patch0 -p1
+%package -n %{short_name}-tools
+Summary: 4Suite tools
+Summary(pl.UTF8): Narzędzia 4Suite
+Group: Applications
+%pyrequires_eq python
+Requires: %{name} = %{version}-%{release}
+
+%description -n %{short_name}-tools
+4Suite command-line tools:
-python -c 'from distutils.util import get_platform; import sys; print "[%s-%.3s]" % (get_platform(), sys.version)' > config.cache
-cat >> config.cache <<EOF
-docdir = %{_datadir}/doc/%{name}-%{version}
-mandir = %{_mandir}
-pythonlibdir = %{py_sitedir}
-sysconfdir = %{_sysconfdir}
-exec_prefix =
-libdir = %{_libdir}/%{short_name}
-datadir = %{_datadir}/%{short_name}
-localedir = %{_datadir}/locale
-localstatedir = %{_var}/lib/%{short_name}
-prefix =
-bindir = %{_bindir}
-EOF
+ * 4xml: XML document parsing and reserialization.
+ * 4xpath: XPath expression evaluation.
+ * 4xslt: XSLT processing engine.
+ * 4xupdate: XUpdate processing.
+
+%description -n %{short_name}-tools -l pl.UTF-8
+Narzędzia CLI 4Suite:
+
+ * 4xml: analiza i reserializacja dokumentów XML.
+ * 4xpath: rozwiązywanie wyrażeń XPath.
+ * 4xslt: silnik przetwarzania XSLT.
+ * 4xupdate: Przetwarzanie XUpdate.
+
+%prep
+%setup -q -n %{short_name}-XML-%{version}
%build
-CFLAGS="%{rpmcflags}" python setup.py build
-grep -q "/usr/local" config.cache && exit 1
+export CFLAGS="%{rpmcflags}"
+python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
python setup.py install \
--optimize=2 \
- --root=$RPM_BUILD_ROOT
+ --root=$RPM_BUILD_ROOT \
+ --install-docs=%{_datadir}/doc/%{name}-%{version} \
+ --install-headers=%{_includedir}/4Suite \
+ --system
+find $RPM_BUILD_ROOT/%{_bindir} -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
-%py_ocomp $RPM_BUILD_ROOT
-%py_comp $RPM_BUILD_ROOT
%py_postclean
-cp -a demos $RPM_BUILD_ROOT%{_examplesdir}/%{name}
-cp -a profile $RPM_BUILD_ROOT%{_examplesdir}/%{name}
-cp -a test $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+cp -a profile $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a test $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc docs/xml
+%doc %{_datadir}/doc/%{name}-%{version}
%{py_sitedir}/Ft
-%attr(755,root,root) %{_bindir}/*
#%{_sysconfdir}/4ss.conf
%{_libdir}/4Suite
%{_datadir}/4Suite
@@ -101,7 +110,11 @@
%files examples
%defattr(644,root,root,755)
-%{_examplesdir}/%{name}
+%{_examplesdir}/%{name}-%{version}
+
+%files -n %{short_name}-tools
+%defattr(755,root,root,755)
+%{_bindir}/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -109,6 +122,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.36 2007/04/16 11:33:31 beorn
+- Up to 1.0.2
+- Extracted package 4Suite-tools
+- Cleanup
+
Revision 1.35 2007/04/16 08:56:39 beorn
- pl beautify
- BR: rpmbuild(macros) >= 1.219
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/python-4Suite.spec?r1=1.35&r2=1.36&f=u
More information about the pld-cvs-commit
mailing list