diff --git a/README.en.md b/README.en.md deleted file mode 100644 index e405750..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# libwpg - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index b59cbde..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# libwpg - -#### 介绍 -{**以下是码云平台说明,您可以替换此简介** -码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/libwpg-0.3.3.tar.xz b/libwpg-0.3.3.tar.xz new file mode 100644 index 0000000..f4f0a13 Binary files /dev/null and b/libwpg-0.3.3.tar.xz differ diff --git a/libwpg.spec b/libwpg.spec new file mode 100644 index 0000000..fc3ccaf --- /dev/null +++ b/libwpg.spec @@ -0,0 +1,78 @@ +Name: libwpg +Version: 0.3.3 +Release: 2 +Summary: A library for import of WordPerfect Graphics images +License: LGPLv2+ and MPLv2.0 and GPL+ +URL: http://libwpg.sourceforge.net/ +Source0: http://download.sourceforge.net/libwpg/libwpg-%{version}.tar.xz +BuildRequires: doxygen gcc-c++ help2man perl-generators perl(Getopt::Std) pkgconfig(librevenge-0.0) +BuildRequires: pkgconfig(librevenge-generators-0.0) pkgconfig(librevenge-stream-0.0) pkgconfig(libwpd-0.10) +Provides: libwpg-tools = %{version}-%{release} +Obsoletes: libwpg-tools < %{version}-%{release} + +%description +Libwpg is a collection of library and tools to work with graphics in WPG (WordPerfect Graphics) format. +WPG is the format used among others in Corel sofware, such as WordPerfect(tm) and Presentations(tm). +Supports converting WordPerfect graphic images to other formats. + +%package devel +Summary: Development files for libwpg +Requires: libwpg = %{version}-%{release} + +%description devel +The libwpg-devel package contains the following libraries and header files: Develop applications using libwpg. + +%package help +Summary: Help documents for libwpg +BuildArch: noarch +Provides: libwpg-doc = %{version}-%{release} +Obsoletes: libwpg-doc < %{version}-%{release} + +%description help +The libwpg-help package contains manual pages and API documentation for libwpg. + +%prep +%autosetup -p1 + +%build +%configure --disable-static --disable-silent-rules +sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +%make_build + +%install +%make_install +%delete_la + +export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +help2man -N -S 'libwpg %{version}' -o wpg2raw.1 %{buildroot}%{_bindir}/wpg2raw +help2man -N -S 'libwpg %{version}' -o wpg2svg.1 %{buildroot}%{_bindir}/wpg2svg +help2man -N -S 'libwpg %{version}' -n 'batch convert WordPerfect Graphics files into SVG' --help-option=-h \ + --version-string='wpg2svgbatch.pl %{version}' -o wpg2svgbatch.pl.1 ./src/conv/svg/wpg2svgbatch.pl + +install -m 0755 -d %{buildroot}/%{_mandir}/man1 +install -m 0644 wpg2*.1 %{buildroot}/%{_mandir}/man1 + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%license COPYING.LGPL COPYING.MPL +%{_libdir}/libwpg-0.3.so.* +%{_bindir}/* +%exclude %{_docdir}/libwpg + +%files devel +%{_includedir}/libwpg-0.3 +%{_libdir}/libwpg-0.3.so +%{_libdir}/pkgconfig/libwpg-0.3.pc + +%files help +%doc docs/doxygen/html AUTHORS NEWS +%{_mandir}/man1/* + +%changelog +* Thu Dec 12 2019 liujing - 0.3.3-2 +- Package init