]> git.pld-linux.org Git - SPECS.git/blob - mxml.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / mxml.spec
1 Summary:        Mini-XML: Lightweight XML support library
2 Summary(pl.UTF-8):      Mini-XML - lekka biblioteka obsługująca XML
3 Name:           mxml
4 Version:        2.10
5 Release:        1
6 License:        LGPL v2 with exceptions
7 Group:          Libraries
8 Source0:        http://www.msweet.org/files/project3/%{name}-%{version}.tar.gz
9 # Source0-md5:  8804c961a24500a95690ef287d150abe
10 Patch0:         %{name}-lpthread.patch
11 URL:            http://www.minixml.org/
12 BuildRequires:  autoconf
13 BuildRequires:  sed >= 4.0
14 # Conflicts due SONAME
15 Conflicts:      libmxml
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Mini-XML is a small XML library that you can use to read and write XML
20 and XML-like data files in your application without requiring large
21 non-standard libraries.
22
23 Mini-XML supports reading of UTF-8 and UTF-16 and writing of UTF-8
24 encoded XML files and strings. Data is stored in a linked-list tree
25 structure, preserving the XML data hierarchy, and arbitrary element
26 names, attributes, and attribute values are supported with no preset
27 limits, just available memory.
28
29 %description -l pl.UTF-8
30 Mini-XML to mała biblioteka XML, której można używać do odczytu i
31 zapisu plików w formacie XML i zbliżonym do XML w aplikacjach nie
32 wymagających dużych, niestandardowych bibliotek.
33
34 Mini-XML obsługuje odczyt plików i łańcuchów XML zakodowanych w UTF-8
35 i UTF-16 oraz zapisu w UTF-8. Dane są przechowywane w listowej
36 strukturze drzewiastej, z zachowaniem hierarchii danych XML;
37 obsługiwane są dowolne nazwy, atrybuty i wartości atrybutów elementów
38 bez narzuconych limitów poza dostępną pamięcią.
39
40 %package devel
41 Summary:        Header files for mxml library
42 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki mxml
43 Group:          Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
45 Conflicts:      libmxml-devel
46
47 %description devel
48 Header files for mxml library.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki mxml.
52
53 %package static
54 Summary:        Static mxml library
55 Summary(pl.UTF-8):      Statyczna biblioteka mxml
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58 Conflicts:      libmxml-static
59
60 %description static
61 Static mxml library.
62
63 %description static -l pl.UTF-8
64 Statyczna biblioteka mxml.
65
66 %prep
67 %setup -q
68 %patch0 -p1
69
70 %{__sed} -i -e '/^\.SILENT/d' Makefile.in
71
72 %build
73 %{__autoconf}
74 %configure \
75         --enable-shared
76 %{__make} \
77         OPTIM="%{rpmcflags} -fPIC"
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         BUILDROOT=$RPM_BUILD_ROOT
84
85 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mxml
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %files
94 %defattr(644,root,root,755)
95 # COPYING contains exceptions to LGPL
96 %doc CHANGES COPYING README
97 %attr(755,root,root) %{_bindir}/mxmldoc
98 %attr(755,root,root) %{_libdir}/libmxml.so.*.*
99 %attr(755,root,root) %ghost %{_libdir}/libmxml.so.1
100 %{_mandir}/man1/mxmldoc.1*
101
102 %files devel
103 %defattr(644,root,root,755)
104 %doc doc/*.html
105 %attr(755,root,root) %{_libdir}/libmxml.so
106 %{_pkgconfigdir}/mxml.pc
107 %{_includedir}/mxml.h
108 %{_mandir}/man3/mxml.3*
109
110 %files static
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libmxml.a
This page took 0.149165 seconds and 3 git commands to generate.