/[packages]/cauldron/libetonyek/current/SPECS/libetonyek.spec
ViewVC logotype

Contents of /cauldron/libetonyek/current/SPECS/libetonyek.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1986319 - (show annotations) (download)
Mon Sep 11 16:06:47 2023 UTC (7 months, 1 week ago) by tv
File size: 3827 byte(s)
Update to latest git snapshot (for mdds-2.1)
1 # WARNING: This package is synced with FC
2 %global apiversion 0.1
3 %global major 1
4 %define libname %mklibname etonyek %apiversion %major
5 %define devname %mklibname -d etonyek
6
7 Name: libetonyek
8 Version: 0.1.11~20230802.git9c3a8cb
9 Release: %mkrel 1
10 Summary: A library for import of Apple iWork documents
11
12 Group: System/Libraries
13 License: MPLv2.0
14 URL: https://wiki.documentfoundation.org/DLP/Libraries/libetonyek
15 # Source: http://dev-www.libreoffice.org/src/%%{name}/%%{name}-%%{version}.tar.xz
16 # Sources have been prepared by cloning the master branch of git repo at
17 # https://git.libreoffice.org/libetonyek
18 Source: %{name}-20230802-git9c3a8cb.tar.xz
19
20 BuildRequires: automake
21 BuildRequires: boost-devel
22 BuildRequires: doxygen
23 BuildRequires: glm-devel
24 BuildRequires: gperf
25 BuildRequires: help2man
26 BuildRequires: libtool
27 BuildRequires: make
28 BuildRequires: pkgconfig(cppunit)
29 BuildRequires: pkgconfig(liblangtag)
30 BuildRequires: pkgconfig(librevenge-0.0)
31 BuildRequires: pkgconfig(librevenge-generators-0.0)
32 BuildRequires: pkgconfig(librevenge-stream-0.0)
33 BuildRequires: pkgconfig(libxml-2.0)
34 BuildRequires: pkgconfig(mdds-2.1)
35 BuildRequires: pkgconfig(zlib)
36
37 %description
38 %{name} is library for import of Apple iWork documents. It supports
39 documents created by any version of Keynote, Pages or Numbers.
40
41 %package -n %libname
42 Summary: A library for import of Apple iWork documents
43 Group: System/Libraries
44 Obsoletes: %{_lib}etonyek1 < 0.1.1-2
45
46 %description -n %libname
47 %{name} is library for import of Apple iWork documents. It supports
48 documents created by any version of Keynote, Pages or Numbers.
49
50 %package -n %devname
51 Summary: Development files for %{name}
52 Group: Development/C
53 Requires: %{libname} = %{version}-%{release}
54 Provides: libetonyek-devel = %{version}-%{release}
55
56 %description -n %devname
57 The %{name}-devel package contains libraries and header files for
58 developing applications that use %{name}.
59
60 %package doc
61 Summary: Documentation of %{name} API
62 Group: Documentation
63 BuildArch: noarch
64
65 %description doc
66 The %{name}-doc package contains documentation files for %{name}.
67
68 %package tools
69 Summary: Tools to transform Apple iWork documents into other formats
70 Group: Office/Utilities
71 Requires: %{libname} = %{version}-%{release}
72
73 %description tools
74 Tools to transform Apple iWork documents into other formats. Currently
75 supported: CSV, HTML, SVG, text, and raw.
76
77 %prep
78 %autosetup -p1 -n %{name}
79
80 %build
81 autoreconf -i -f
82 %configure --disable-silent-rules --disable-static --disable-werror --with-mdds=2.1
83 sed -i \
84 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
85 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
86 libtool
87 %make_build
88
89 %install
90 %make_install
91
92 rm -f %{buildroot}/%{_libdir}/*.la
93 # we install API docs directly from build
94 rm -rf %{buildroot}/%{_docdir}/%{name}
95
96 # generate and install man pages
97 export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
98 for tool in key2raw key2text key2xhtml numbers2csv numbers2raw numbers2text pages2html pages2raw pages2text; do
99 help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
100 done
101 install -m 0755 -d %{buildroot}/%{_mandir}/man1
102 install -m 0644 key2*.1 numbers2*.1 pages2*.1 %{buildroot}/%{_mandir}/man1
103
104
105 %check
106 export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
107 if ! %make_build check; then
108 cat src/test/*.log
109 exit 1
110 fi
111
112 %files -n %libname
113 %doc AUTHORS FEATURES NEWS README
114 %license COPYING
115 %{_libdir}/%{name}-%{apiversion}.so.%{major}
116 %{_libdir}/%{name}-%{apiversion}.so.%{major}.*
117
118 %files -n %devname
119 %{_includedir}/%{name}-%{apiversion}
120 %{_libdir}/%{name}-%{apiversion}.so
121 %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
122
123 %files doc
124 %license COPYING
125 %doc docs/doxygen/html
126
127 %files tools
128 %{_bindir}/*
129 %{_mandir}/man1/*
130

  ViewVC Help
Powered by ViewVC 1.1.30