SPECS: libbeagle.spec (NEW) - new
megabajt
megabajt at pld-linux.org
Mon Dec 31 20:46:19 CET 2007
Author: megabajt Date: Mon Dec 31 19:46:19 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
libbeagle.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/libbeagle.spec
diff -u /dev/null SPECS/libbeagle.spec:1.1
--- /dev/null Mon Dec 31 20:46:19 2007
+++ SPECS/libbeagle.spec Mon Dec 31 20:46:14 2007
@@ -0,0 +1,173 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without apidocs # don't build API documentation
+%bcond_without python # don't build python libraries
+#
+Summary: Beagle C interface
+Summary(pl.UTF-8): Interfejs w C do Beagle
+Name: libbeagle
+Version: 0.3.0
+Release: 1
+License: MIT
+Group: Libraries
+Source0: http://ftp.gnome.org/pub/GNOME/sources/libbeagle/0.3/%{name}-%{version}.tar.bz2
+# Source0-md5: af21c1e0c704890506893408a569e9a1
+URL: http://beagle-project.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: glib2-devel >= 1:2.6.0
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
+BuildRequires: libtool
+BuildRequires: libxml2-devel >= 1:2.6.19
+BuildRequires: pkgconfig
+%if %{with python}
+BuildRequires: python-devel
+BuildRequires: python-pygobject-devel >= 2.6.0
+BuildRequires: python-pygtk-devel >= 2:2.6.0
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Beagle C interface.
+
+%description -l pl.UTF-8
+Interfejs w C do Beagle.
+
+%package devel
+Summary: Header files for libbeagle library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libbeagle
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: glib2-devel >= 1:2.6.0
+Requires: libxml2-devel >= 1:2.6.19
+
+%description devel
+Header files for libbeagle library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libbeagle.
+
+%package static
+Summary: Static libbeagle library
+Summary(pl.UTF-8): Statyczna biblioteka libbeagle
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libbeagle library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libbeagle.
+
+%package apidocs
+Summary: libbeagle API documentation
+Summary(pl.UTF-8): Dokumentacja API biblioteki libbeagle
+Group: Documentation
+Requires: gtk-doc-common
+
+%description apidocs
+libbeagle API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libbeagle.
+
+%package examples
+Summary: libbeagle - example programs
+Summary(pl.UTF-8): libbeagle - przykładowe programy
+Group: Libraries
+
+%description examples
+libbeagle - example programs.
+
+%description examples -l pl.UTF-8
+libbeagle - przykładowe programy.
+
+%package -n python-beagle
+Summary: Beagle Python bindings
+Summary(pl.UTF-8): Wiązania języka Python dla Beagle
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+%pyrequires_eq python-libs
+
+%description -n python-beagle
+Beagle Python bindings.
+
+%description -n python-beagle -l pl.UTF-8
+Wiązania języka Python dla Beagle.
+
+%prep
+%setup -q
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ %{?with_apidocs:--enable-gtk-doc} \
+ --with-html-dir=%{_gtkdocdir}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%if %{with python}
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/beagle.{a,la}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libbeagle.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libbeagle.so
+%{_libdir}/libbeagle.la
+%{_includedir}/libbeagle
+%{_pkgconfigdir}/libbeagle-1.0.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libbeagle.a
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/beagle
+%endif
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/libbeagle-%{version}
+
+%if %{with python}
+%files -n python-beagle
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/beagle.so
+%endif
+
+%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.1 2007-12-31 19:46:14 megabajt
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list