~ubuntu-branches/ubuntu/trusty/libmspub/trusty-proposed

« back to all changes in this revision

Viewing changes to libmspub.spec

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2013-01-29 20:49:51 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130129204951-7m097qdd9lnyydcd
Tags: 0.0.4-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%define name libmspub
2
 
%define version 0.0.3
3
 
%define RELEASE 1
4
 
%define release     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
5
 
 
6
 
Name: %{name}
7
 
Summary: Library for importing and converting Microsoft Publisher Documents
8
 
Version: %{version}
9
 
Release: %{release}
10
 
Source: %{name}-%{version}.tar.gz
11
 
Group: System Environment/Libraries
12
 
URL: http://libmspub.sf.net/
13
 
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
14
 
BuildRequires: libwpd-devel >= 0.9.0, gcc-c++, libstdc++-devel, pkgconfig >= 0.9.0
15
 
License: LGPL
16
 
Prefix: %{prefix}
17
 
 
18
 
%description
19
 
libmspub is a library for reading and converting MSPUB images
20
 
 
21
 
%package tools
22
 
Requires: libmspub
23
 
Summary: Tools to convert MSPUB images into other formats
24
 
Group: Applications/Publishing
25
 
 
26
 
%description tools
27
 
Tools to convert MSPUB images into other formats.
28
 
Currently supported: raw svg
29
 
 
30
 
%package devel
31
 
Requires: %{name} >= %{version}
32
 
Requires: libwpd-devel >= 0.9.0
33
 
Summary: Files for developing with libmspub.
34
 
Group: Development/Libraries
35
 
 
36
 
%description devel
37
 
Includes and definitions for developing with libmspub.
38
 
 
39
 
%if %{!?_without_docs:1}%{?_without_docs:0}
40
 
%package docs
41
 
Requires: %{name} >= %{version}
42
 
BuildRequires: doxygen
43
 
Summary: Documentation of libmspub API
44
 
Group: Development/Documentation
45
 
 
46
 
%description docs
47
 
Documentation of libmspub API for developing with libmspub
48
 
%endif
49
 
 
50
 
%prep
51
 
%__rm -rf $RPM_BUILD_ROOT
52
 
 
53
 
%setup -q -n %{name}-%{version}
54
 
 
55
 
%build
56
 
%configure --prefix=%{_prefix} --libdir=%{_libdir} \
57
 
        %{?_with_debug:--enable-debug}  \
58
 
 
59
 
%__make
60
 
 
61
 
%install
62
 
umask 022
63
 
 
64
 
%__make DESTDIR=$RPM_BUILD_ROOT install
65
 
%__rm -rf $RPM_BUILD_ROOT/%{_libdir}/libmspub*.la
66
 
 
67
 
%clean
68
 
%__rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/file.list.%{name}
69
 
 
70
 
%files
71
 
%defattr(644,root,root,755)
72
 
%{_libdir}/libmspub*.so.*
73
 
%doc ChangeLog README COPYING AUTHORS
74
 
 
75
 
%files tools
76
 
%defattr(755,root,root,755)
77
 
%{_bindir}/pub2*
78
 
 
79
 
%files devel
80
 
%defattr(644,root,root,755)
81
 
%{_libdir}/libmspub*.so
82
 
%{_libdir}/pkgconfig/libmspub*.pc
83
 
%{_includedir}/libmspub-0.0/libmspub
84
 
 
85
 
%if %{!?_without_docs:1}%{?_without_docs:0}
86
 
%files docs
87
 
%{_datadir}/*
88
 
%endif
89
 
 
90
 
%changelog
91
 
* Fri Apr 20 2007 Fridrich Strba <fridrich.strba@bluewin.ch>
92
 
- Add documentation packaging
93
 
- Make doc and stream optional
94
 
 
95
 
* Tue Jan 27 2004 Fridrich Strba <fridrich.strba@bluewin.ch>
96
 
- Create rpm spec according to the rpm spec of libwpD
97
 
- of Rui M. Seabra