]> git.pld-linux.org Git - SPECS.git/blob - libcmml.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / libcmml.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        A library for parsing CMML files
6 Summary(pl.UTF-8):      Biblioteka do analizy plików CMML
7 Name:           libcmml
8 Version:        0.9.4
9 Release:        3
10 License:        BSD
11 Group:          Libraries
12 Source0:        http://annodex.net/software/libcmml/download/%{name}-%{version}.tar.gz
13 # Source0-md5:  872984114263499acdf1617eae074cb4
14 Patch0:         %{name}-as-needed.patch
15 URL:            http://annodex.net/software/libcmml/index.html
16 BuildRequires:  autoconf >= 2.53
17 BuildRequires:  automake
18 BuildRequires:  docbook-to-man
19 BuildRequires:  expat-devel >= 1.95
20 BuildRequires:  libtool
21 Requires:       expat >= 1.95
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Libcmml is a library which enables the handling of documents
26 written in CMML (Continuous Media Markup Language) for the
27 Continuous Media Web (CMWeb).
28
29 It provides a very simple API for reading files marked up with the
30 Continuous Media Markup Language (CMML), and returns C structures
31 containing this information in a format which can be used by an
32 Annodexer for creating ANNODEX(tm) format documents (ANX).
33
34 %description -l pl.UTF-8
35 libcmml to biblioteka umożliwiająca obsługę dokumentów napisanych w
36 formacie CMML (Continuous Media Markup Language - języku oznaczeń dla
37 mediów ciągłych) dla CMWeb (Continuos Media Web - sieci dla mediów
38 ciągłych).
39
40 Udostępnia bardzo proste API do odczytu plików ze znacznikami w
41 formacie CMML, zwraca struktury C zawierające informacje w formacie,
42 który może być użyty w Annodexerze do tworzenia dokumentów w formacie
43 ANNODEX(tm) (ANX).
44
45 %package devel
46 Summary:        Header files for libcmml library
47 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libcmml
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       expat-devel >= 1.95
51
52 %description devel
53 Header files for libcmml library.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki libcmml.
57
58 %package static
59 Summary:        Static libcmml library
60 Summary(pl.UTF-8):      Statyczna biblioteka libcmml
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63
64 %description static
65 Static libcmml library.
66
67 %description static -l pl.UTF-8
68 Statyczna biblioteka libcmml.
69
70 %prep
71 %setup -q
72 %patch0 -p1
73
74 %build
75 %{__libtoolize}
76 %{__aclocal} -I m4
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure \
81         %{!?with_static_libs:--disable-static}
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 rm -rf $RPM_BUILD_ROOT%{_docdir}/libcmml
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc AUTHORS COPYING ChangeLog README TODO
101 %attr(755,root,root) %{_bindir}/cmml*
102 %attr(755,root,root) %{_libdir}/libcmml.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libcmml.so.1
104 %{_mandir}/man1/cmml*.1*
105 %{_mandir}/man6/cmml-fortune.6*
106
107 %files devel
108 %defattr(644,root,root,755)
109 %doc doc/libcmml/html/*
110 %attr(755,root,root) %{_libdir}/libcmml.so
111 %{_libdir}/libcmml.la
112 %{_includedir}/cmml.h
113 %{_pkgconfigdir}/cmml.pc
114
115 %if %{with static_libs}
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/libcmml.a
119 %endif
This page took 0.225092 seconds and 3 git commands to generate.