summaryrefslogtreecommitdiff
path: root/libwbxml.spec
diff options
context:
space:
mode:
authorElan Ruusamäe2009-01-29 00:32:07 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commitd7ebdc933e94ea784102d903b25528c2fe139468 (patch)
treeb5a0edec871e785bf052691fb48fa9bf100905c5 /libwbxml.spec
parent07a4e6dcee07ded2b81a354929cc6f8aa141faab (diff)
downloadlibwbxml-d7ebdc933e94ea784102d903b25528c2fe139468.zip
libwbxml-d7ebdc933e94ea784102d903b25528c2fe139468.tar.gz
- 2008-11-21: The OpenSync project takes over the maintenance of the libwbxml library from Aymerick Jehanne.
- renamed package from wbxml2 and updated to 0.10.1 - no -static package with cmake build Changed files: libwbxml.spec -> 1.19
Diffstat (limited to 'libwbxml.spec')
-rw-r--r--libwbxml.spec112
1 files changed, 36 insertions, 76 deletions
diff --git a/libwbxml.spec b/libwbxml.spec
index 8cfec17..b192321 100644
--- a/libwbxml.spec
+++ b/libwbxml.spec
@@ -2,110 +2,75 @@
# - kill unecessary -lnsl etc.
# - maybe add datetime.patch from synce repository
# - namespace.patch from synce trunk contains some improvements
+# - build dynamic documentation OFF
#
-Summary: WBXML2 Library
-Summary(pl.UTF-8): Biblioteka WBXML2
-Name: wbxml2
-Version: 0.9.2
-Release: 4
+Summary: The WBXML Library
+Summary(pl.UTF-8): Biblioteka WBXML
+Name: libwbxml
+Version: 0.10.1
+Release: 0.1
License: LGPL v2.1+
Group: Libraries
-Source0: http://dl.sourceforge.net/wbxmllib/%{name}-%{version}.tar.gz
-# Source0-md5: 67a48fd9b69db8818a4dca5375c7993a
-Patch0: %{name}-r34.patch
-Patch1: %{name}-r35.patch
-Patch2: %{name}-r39.patch
-Patch3: %{name}-r41.patch
-Patch4: %{name}-r42.patch
-Patch5: %{name}-r43.patch
-Patch6: %{name}-r44.patch
-Patch7: %{name}-prepare-r48.patch
-Patch8: %{name}-r48.patch
-Patch9: %{name}-r49.patch
-Patch10: %{name}-r52.patch
-Patch11: %{name}-r57.patch
-Patch12: %{name}-r58.patch
-#Patch13: http://synce.svn.sourceforge.net/viewvc/synce/trunk/patches/wbxml-svn-r53-namespace.patch?revision=2914
-Patch13: %{name}-namespace.patch
-Patch14: %{name}-no_libxml2.patch
-Patch15: %{name}-r59.patch
-URL: http://libwbxml.aymerick.com/
-BuildRequires: autoconf
-BuildRequires: automake
+Source0: http://dl.sourceforge.net/libwbxml/%{name}-%{version}.tar.bz2
+# Source0-md5: 56609295e7cea5115750f6582218ade6
+Patch15: wbxml2-r59.patch
+URL: http://libwbxml.opensync.org/
+BuildRequires: cmake
BuildRequires: expat-devel
BuildRequires: libstdc++-devel
BuildRequires: libtool
Obsoletes: libwbxml2
+Obsoletes: wbxml2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-The WBXML2 format is a binary representation of XML, defined by the
-Wap Forum, and used to reduce bandwidth in mobile communications.
+The WBXML Library (libwbxml) contains a library and its associated
+tools to parse, encode and handle WBXML documents. The WBXML format is
+a binary representation of XML, defined by the Wap Forum, and used to
+reduce bandwidth in mobile communications.
%description -l pl.UTF-8
-Format WBXML2 jest binarną reprezentacją XML, zdefiniowaną przez Wap
+Format WBXML jest binarną reprezentacją XML, zdefiniowaną przez Wap
Forum, mającą na celu zmniejszenie ruchu w komunikacji przez
urządzenia przenośne.
%package devel
-Summary: Header files for WBXML2 library
-Summary(pl.UTF-8): Pliki nagłówkowe biblioteki WBXML2
+Summary: Header files for WBXML library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki WBXML
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Obsoletes: libwbxml2-devel
+Obsoletes: wbxml2-devel
+Obsoletes: wbxml2-static
%description devel
-Header files for WBXML2 library.
+Header files for WBXML library.
%description devel -l pl.UTF-8
-Pliki nagłówkowe biblioteki WBXML2.
-
-%package static
-Summary: Static WBXML2 library
-Summary(pl.UTF-8): Statyczna biblioteka WBXML2
-Group: Development/Libraries
-Requires: %{name}-devel = %{version}-%{release}
-
-%description static
-Static WBXML2 library.
-
-%description static -l pl.UTF-8
-Statyczna biblioteka WBXML2.
+Pliki nagłówkowe biblioteki WBXML.
%prep
%setup -q
-%patch0 -p3
-%patch1 -p3
-%patch2 -p3
-%patch3 -p3
-%patch4 -p3
-%patch5 -p3
-%patch6 -p3
-%patch7 -p0
-%patch8 -p3
-%patch9 -p3
-%patch10 -p3
-%patch11 -p3
-%patch12 -p3
-%patch13 -p1
-%patch14 -p1
%patch15 -p3
%build
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure
+install -d build
+cd build
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+%if "%{_lib}" != "lib"
+ -DLIB_SUFFIX=64 \
+%endif
+ ../
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-
-%{__make} install \
+%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -114,19 +79,14 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README THANKS TODO
+%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO References
%attr(755,root,root) %{_bindir}/wbxml2xml
%attr(755,root,root) %{_bindir}/xml2wbxml
%attr(755,root,root) %{_libdir}/libwbxml2.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libwbxml2.so.?
+%attr(755,root,root) %ghost %{_libdir}/libwbxml2.so.0
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libwbxml2.so
-%{_libdir}/libwbxml2.la
%{_includedir}/wbxml*.h
%{_pkgconfigdir}/libwbxml2.pc
-
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/libwbxml2.a