SHA256
1
0
forked from pool/libcdr

- Remove conditonals for docs and use verbose build.

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libcdr?expand=0&rev=19
This commit is contained in:
Tomáš Chvátal 2013-11-01 09:09:24 +00:00 committed by Git OBS Bridge
parent 2bbea77eff
commit 35d4a057b2
2 changed files with 10 additions and 17 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 1 09:09:17 UTC 2013 - tchvatal@suse.com
- Remove conditonals for docs and use verbose build.
-------------------------------------------------------------------
Fri Jul 26 07:06:40 UTC 2013 - fstrba@suse.com

View File

@ -19,12 +19,7 @@
Name: libcdr
# note: the main package is empty, it only sets a sane name for the source rpm
BuildRequires: boost-devel
%if 0%{?suse_version} > 1020
%define build_doc 1
BuildRequires: doxygen
%else
%define build_doc 0
%endif
BuildRequires: gcc-c++
BuildRequires: libicu-devel
BuildRequires: liblcms2-devel
@ -72,8 +67,6 @@ cross-platform, at the moment it can be build on Microsoft Windows and Linux.
This package contains the libcdr development files.
%if %build_doc
%package devel-doc
Summary: Documentation for the libcdr API
Group: Documentation/HTML
@ -81,8 +74,6 @@ Group: Documentation/HTML
%description devel-doc
This package contains documentation for the libcdr API.
%endif
%package tools
Summary: Tools to work with documents in Corel Draw file-format
Group: Productivity/Publishing/Word
@ -97,14 +88,14 @@ Tools to work with documents in Corel Draw file-format.
%build
%configure --disable-static --docdir=%_docdir/%name
make %{?_smp_mflags}
make %{?_smp_mflags} V=1
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT%_libdir/*.la
make DESTDIR=%{buildroot} install
rm %{buildroot}%_libdir/*.la
# documentation
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp -p AUTHORS COPYING.* ChangeLog $RPM_BUILD_ROOT%{_docdir}/%{name}
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -p AUTHORS COPYING.* ChangeLog %{buildroot}%{_docdir}/%{name}
%post -n %libname -p /sbin/ldconfig
@ -120,13 +111,10 @@ cp -p AUTHORS COPYING.* ChangeLog $RPM_BUILD_ROOT%{_docdir}/%{name}
%{_libdir}/pkgconfig/libcdr*.pc
%{_includedir}/libcdr-*
%if %build_doc != 0
%files devel-doc
%defattr(-,root,root,-)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/html
%endif
%files tools
%defattr(-,root,root)