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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1986319 - (hide 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 tv 1259322 # WARNING: This package is synced with FC
2 wally 661114 %global apiversion 0.1
3 tv 658579 %global major 1
4 wally 661114 %define libname %mklibname etonyek %apiversion %major
5 tv 584301 %define devname %mklibname -d etonyek
6    
7     Name: libetonyek
8 tv 1986319 Version: 0.1.11~20230802.git9c3a8cb
9     Release: %mkrel 1
10 tv 906482 Summary: A library for import of Apple iWork documents
11 tv 584301
12     Group: System/Libraries
13     License: MPLv2.0
14 danf 1563666 URL: https://wiki.documentfoundation.org/DLP/Libraries/libetonyek
15 tv 1986319 # 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 tv 584301 BuildRequires: boost-devel
22     BuildRequires: doxygen
23 tv 906477 BuildRequires: glm-devel
24 tv 584301 BuildRequires: gperf
25 tv 906479 BuildRequires: help2man
26 tv 1986319 BuildRequires: libtool
27 tv 1730562 BuildRequires: make
28 tv 906476 BuildRequires: pkgconfig(cppunit)
29 luigiwalser 927241 BuildRequires: pkgconfig(liblangtag)
30 tv 658553 BuildRequires: pkgconfig(librevenge-0.0)
31 tv 1217522 BuildRequires: pkgconfig(librevenge-generators-0.0)
32     BuildRequires: pkgconfig(librevenge-stream-0.0)
33 tv 906476 BuildRequires: pkgconfig(libxml-2.0)
34 tv 1986319 BuildRequires: pkgconfig(mdds-2.1)
35 tv 906476 BuildRequires: pkgconfig(zlib)
36 tv 906475
37 tv 584301 %description
38 tv 1251978 %{name} is library for import of Apple iWork documents. It supports
39     documents created by any version of Keynote, Pages or Numbers.
40 tv 584301
41     %package -n %libname
42 tv 906482 Summary: A library for import of Apple iWork documents
43 tv 584301 Group: System/Libraries
44 wally 661114 Obsoletes: %{_lib}etonyek1 < 0.1.1-2
45 tv 584301
46     %description -n %libname
47 tv 1251978 %{name} is library for import of Apple iWork documents. It supports
48     documents created by any version of Keynote, Pages or Numbers.
49 tv 584301
50     %package -n %devname
51     Summary: Development files for %{name}
52     Group: Development/C
53     Requires: %{libname} = %{version}-%{release}
54 wally 661114 Provides: libetonyek-devel = %{version}-%{release}
55 tv 584301
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 tv 906482 Summary: Tools to transform Apple iWork documents into other formats
70 tv 584301 Group: Office/Utilities
71     Requires: %{libname} = %{version}-%{release}
72    
73     %description tools
74 tv 906482 Tools to transform Apple iWork documents into other formats. Currently
75     supported: CSV, HTML, SVG, text, and raw.
76 tv 584301
77     %prep
78 tv 1986319 %autosetup -p1 -n %{name}
79 tv 584301
80     %build
81 tv 1986319 autoreconf -i -f
82     %configure --disable-silent-rules --disable-static --disable-werror --with-mdds=2.1
83 tv 584301 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 daviddavid 1055500 %make_build
88 tv 584301
89     %install
90 daviddavid 1055500 %make_install
91    
92 tv 584301 rm -f %{buildroot}/%{_libdir}/*.la
93     # we install API docs directly from build
94     rm -rf %{buildroot}/%{_docdir}/%{name}
95    
96 tv 1014290 # 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 tv 584301
104    
105     %check
106     export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
107 tv 1607660 if ! %make_build check; then
108 tv 1217522 cat src/test/*.log
109     exit 1
110     fi
111 tv 584301
112     %files -n %libname
113 tv 1014291 %doc AUTHORS FEATURES NEWS README
114     %license COPYING
115 wally 661114 %{_libdir}/%{name}-%{apiversion}.so.%{major}
116 ovitters 878484 %{_libdir}/%{name}-%{apiversion}.so.%{major}.*
117 tv 584301
118     %files -n %devname
119     %{_includedir}/%{name}-%{apiversion}
120     %{_libdir}/%{name}-%{apiversion}.so
121     %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
122    
123     %files doc
124 tv 1014291 %license COPYING
125 tv 584301 %doc docs/doxygen/html
126    
127     %files tools
128 tv 658638 %{_bindir}/*
129 tv 1014290 %{_mandir}/man1/*
130 tv 584301

  ViewVC Help
Powered by ViewVC 1.1.30