Parcourir la source

update: libpqxx, libwpd, wv2
NEW: libwpg


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3151 ec354946-7b23-47d6-9f5a-488ba84defc7

inagaki il y a 14 ans
Parent
commit
8e348aa479
4 fichiers modifiés avec 192 ajouts et 50 suppressions
  1. 27 15
      lib/libp/libpqxx/libpqxx-vl.spec
  2. 33 25
      lib/libw/libwpd/libwpd-vl.spec
  3. 109 0
      lib/libw/libwpg/libwpg-vl.spec
  4. 23 10
      w/wv2/wv2-vl.spec

+ 27 - 15
lib/libp/libpqxx/libpqxx-vl.spec

@@ -1,15 +1,19 @@
 Summary: A C++ API to the PostgreSQL database management system.
 Summary(ja): PostgreSQL の C++ API
 Name: libpqxx
-Version: 2.6.9
-Release: 3%{?_dist_release}
-License: LGPL
-Group: Development/Libraries
-Source: ftp://gborg.postgresql.org/pub/libpqxx/stable/libpqxx-%{version}.tar.gz
+Version: 3.1
+Release: 1%{?_dist_release}
+
+Group: System Environment/Libraries
+License: BSD
+URL: http://pqxx.org/
+
+Source: ftp://pqxx.org/software/libpqxx/%{name}-%{version}.tar.gz
 Patch0: libpqxx-2.6.9-glibc-headers.patch
+Patch3: libpqxx-2.6.8-multilib.patch
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-URL: http://pqxx.tk/
-BuildPrereq: postgresql-devel
+BuildRequires: postgresql-devel
 Requires: postgresql-libs
 
 %description
@@ -26,7 +30,7 @@ with most other database interfaces.
 Summary: Libraries, includes, etc. to develop PostgreSQL applications in C++.
 Summary(ja): C++ で PostgreSQL アプリケーションを開発ためのライブラリ/ヘッダファイル等
 Group: Development/Libraries
-Requires: libpqxx = %{version}
+Requires: %{name} = %{version}-%{release}
 
 %description devel
 Libraries, include files, etc you can use to develop PostgreSQL applications
@@ -34,12 +38,16 @@ in C++.
 
 %prep
 %setup -q
-%patch0 -p0 -b .gibc-headers
+#patch0 -p0 -b .gibc-headers
+%patch3 -p1 -b .multilib
+
+# fix spurious permissions
+chmod -x COPYING
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" \
-./configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-shared
-make %{?_smp_mflags}
+%configure --enable-shared --disable-static
+
+make %{?_smp_mflags} LIBS="-lpq -lpthread"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -54,7 +62,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-%doc AUTHORS ChangeLog NEWS README COPYING TODO
+%doc AUTHORS ChangeLog COPYING NEWS README 
 %{_libdir}/*.so
 
 %files devel
@@ -62,11 +70,15 @@ rm -rf $RPM_BUILD_ROOT
 %doc doc/html/Reference doc/html/Tutorial
 %{_bindir}/*
 %{_includedir}/pqxx/*
-%{_libdir}/*.a
-%{_libdir}/*.la
+%exclude %{_libdir}/*.la
 %{_libdir}/pkgconfig/*.pc
 
 %changelog
+* Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1-1
+- new upstream release
+- added LIBS="-lpq -lpthread"
+- updated URL
+
 * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 2.6.9-3
 - rebuilt with rpm-4.8.1 for pkg-config
 - added libpqxx-2.6.9-glibc-headers.patch

+ 33 - 25
lib/libw/libwpd/libwpd-vl.spec

@@ -1,16 +1,17 @@
 Summary: Library for reading and converting WordPerfect(tm) documents
 Summary(ja): WordPerfect(tm) 文書の読み込みおよび変換をするライブラリ
 Name: libwpd
-Version: 0.8.14
-Release: 3%{?_dist_release}
-Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Version: 0.9.0
+Release: 1%{?_dist_release}
+
 Group: System Environment/Libraries
 URL: http://libwpd.sf.net/
 License: LGPL
 
+Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: glib2-devel >= 2.10.0
-BuildRequires: libgsf-devel >= 1.6.0
+BuildRequires: doxygen
 
 %description
 libwpd is a library that handles WordPerfect documents.
@@ -18,38 +19,40 @@ libwpd is a library that handles WordPerfect documents.
 %description -l ja
 libwpd は WordPerfect 文書を扱うためのライブラリです。
 
-%package tools
-Summary: Tools to transform WordPerfect Documents into other formats
-Summary(ja): WordPerfect 文書を他のフォーマットに変換するツール
-Group: Applications/Publishing
-
-%description tools
-Tools to transform WordPerfect Documents into other formats.
-Currently supported: html, raw, text.
-
 %package devel
 Summary: Development files for libwpd
 Summary(ja): libwpd の開発用ファイル
 Group: Development/Libraries
-Requires: libwpd = %{version}-%{release}
-Requires: glib2-devel >= 2.10.0
-Requires: libgsf-devel >= 1.6.0
+Requires: %{name} = %{version}-%{release}
 Requires: pkgconfig
 
 %description devel
 Includes and definitions for developing with libwpd.
 
+%package tools
+Summary: Tools to transform WordPerfect Documents into other formats
+Summary(ja): WordPerfect 文書を他のフォーマットに変換するツール
+Group: Applications/Publishing
+
+%description tools
+Tools to transform WordPerfect Documents into other formats.
+Currently supported: html, raw, text.
+
 %prep
 %setup -q
 
 %build
-%configure --without-docs --disable-static
+%configure --disable-static
 make %{?_smp_mflags}
 
 %install
 make DESTDIR=$RPM_BUILD_ROOT install
 rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
 
+rm -rf _docs_to_install
+mkdir -p _docs_to_install
+mv $RPM_BUILD_ROOT%{_docdir}/libwpd/* _docs_to_install 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -59,22 +62,27 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc CHANGES COPYING CREDITS README
+%doc ChangeLog COPYING CREDITS README
 %{_libdir}/*.so.*
 
-%files tools
-%defattr(-,root,root,-)
-%{_bindir}/wpd2*
-
 %files devel
 %defattr(-,root,root,-)
 %doc HACKING TODO
+%doc _docs_to_install/*
+%dir %{_includedir}/libwpd-0.9
+%{_includedir}/libwpd-0.9/*
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*
-%dir %{_includedir}/libwpd-0.8
-%{_includedir}/libwpd-0.8/libwpd/
+
+%files tools
+%defattr(-,root,root,-)
+%{_bindir}/wpd2*
+
 
 %changelog
+* Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwa.com> 0.9.0-1
+- new upstream release
+
 * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.14-3
 - rebuild with rpm-4.8.1 for pkg-config file
 

+ 109 - 0
lib/libw/libwpg/libwpg-vl.spec

@@ -0,0 +1,109 @@
+Name:           libwpg
+Summary:        Library for reading WordPerfect Graphics images
+Version:        0.2.0
+Release:        3%{?_dist_release}
+
+Group:          System Environment/Libraries
+License:        GPLv2+
+URL:            http://libwpg.sourceforge.net/
+
+Source0:        http://download.sourceforge.net/libwpg/%{name}-%{version}.tar.bz2
+Patch0:         libwpg-0.1.3-nodate.patch
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+BuildRequires:  libwpd-devel >= 0.9
+BuildRequires:  doxygen
+
+%description
+Libwpg project is a library and to work with graphics in WPG
+(WordPerfect Graphics) format. WPG is the format used among others
+in Corel sofware, such as WordPerfect and Presentations.
+
+
+%package devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%package tools
+Summary:        Tools to convert WordPerfect Graphics images
+Group:          Applications/Publishing
+
+%description tools
+This package contains tools to work with graphics in WPG (WordPerfect
+Graphics) format. WPG is the format used among others in Corel sofware,
+such as WordPerfect and Presentations.
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .nodate
+
+
+%build
+%configure
+make %{?_smp_mflags}
+sed 's/\r//' -i ChangeLog
+find docs/doxygen/html |xargs touch -r docs/doxygen/doxygen.cfg
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# Documentation is intentionally not installed here,
+# it is included as -devel %%doc
+make SUBDIRS="" install DESTDIR=$RPM_BUILD_ROOT
+make -C src install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc COPYING docs/doxygen/html
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+
+%files tools
+%defattr(-,root,root,-)
+%doc COPYING
+%{_bindir}/*
+
+
+%changelog
+* Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.2.0-3
+- Initial build for Vine Linux
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.0-1
+- latest version
+
+* Tue Jul 28 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-4
+- Fix multilib problem with doxygen documentation (#508940)
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Tue Jan 6 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-1
+- Initial packaging

+ 23 - 10
w/wv2/wv2-vl.spec

@@ -1,16 +1,20 @@
 Summary: library which allows access to Microsoft Word files
 Summary(ja): Microsoft Word 形式のファイルを扱うためのライブラリ
 Name: wv2
-Version: 0.3.1
+Version: 0.4.2
 Release: 1%{?_dist_release}
-License: LGPL
+
 Group: System Environment/Libraries
-Source: http://download.sourceforge.net/wvware/wv2-%{version}.tar.bz2
+License: LGPL
 URL: http://wvWare.sourceforge.net/
 
+Source: http://download.sourceforge.net/wvware/wv2-%{version}.tar.bz2
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: cmake
+BuildRequires: glib2-devel
 BuildRequires: libgsf-devel >= 1.7.2
-BuildRequires: libxml2-devel
+BuildRequires: zlib-devel
 
 %description
 wv is a library which allows access to Microsoft Word files. It can load 
@@ -31,21 +35,26 @@ Development files for wv2
 %setup -q
 
 %build
-CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG -DNO_DEBUG -fno-check-new" \
-CFLAGS="$RPM_OPT_FLAGS -DNDEBUG -DNO_DEBUG" \
-%configure 
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%cmake ..
+popd
 
-make %{?_smp_mflags}
+make %{?_smp_mflags} -C %{_target_platform}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT install
+make DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} install
 
 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(-,root,root)
 %doc AUTHORS COPYING.LIB ChangeLog README RELEASE THANKS TODO
@@ -55,10 +64,14 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root)
 %{_bindir}/*
 %{_includedir}/wv2/*
-#{_libdir}/*.la
 %{_libdir}/*.so
+%{_libdir}/wvWare/*.cmake
 
 %changelog
+* Sat Mar 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.2-1
+- new upstream release
+- added %%post and %%postun section
+
 * Wed May  6 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.1-1
 - new upstream release
 - spec in UTF-8