Bump to libxml2 2.10.2 accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_7.0_base_tool accepted/tizen_7.0_base_tool_hotfix accepted/tizen_8.0_base accepted/tizen_base_tool sandbox/backup/libxml2_2.10.2_20231208 sandbox/dh0128.kwak/libxml2-2.10.2-20220906 tizen_7.0_base tizen_7.0_base_hotfix tizen_8.0_base accepted/tizen/7.0/base/20230714.002955 accepted/tizen/7.0/base/hotfix/20230714.003808 accepted/tizen/7.0/base/tool/20221028.120718 accepted/tizen/7.0/base/tool/hotfix/20221115.085204 accepted/tizen/8.0/base/20231005.044915 accepted/tizen/base/20230714.003359 accepted/tizen/base/tool/20220915.013504 submit/tizen_7.0_base/20221028.201101 submit/tizen_7.0_base_hotfix/20221115.161601 submit/tizen_base/20220908.001030 submit/tizen_base/20220912.230050 tizen_7.0_m2_release tizen_8.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 6 Sep 2022 02:14:36 +0000 (11:14 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 6 Sep 2022 04:44:45 +0000 (13:44 +0900)
Change-Id: I72877f0887b558c09b63fab382fed53e39bace79

packaging/Add_pie_compile_option.patch [new file with mode: 0644]
packaging/baselibs.conf [new file with mode: 0644]
packaging/libxml2.manifest [new file with mode: 0644]
packaging/libxml2.spec [new file with mode: 0644]

diff --git a/packaging/Add_pie_compile_option.patch b/packaging/Add_pie_compile_option.patch
new file mode 100644 (file)
index 0000000..93bd17d
--- /dev/null
@@ -0,0 +1,19 @@
+diff --git a/Makefile.am b/Makefile.am
+index 316109b..a15d377 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -101,12 +101,12 @@ runsuite_DEPENDENCIES = $(DEPS)
+ runsuite_LDADD= $(LDADDS)
+ xmllint_SOURCES=xmllint.c
+-xmllint_LDFLAGS = 
++xmllint_LDFLAGS = -pie
+ xmllint_DEPENDENCIES = $(DEPS)
+ xmllint_LDADD=  $(RDL_LIBS) $(LDADDS)
+ xmlcatalog_SOURCES=xmlcatalog.c
+-xmlcatalog_LDFLAGS = 
++xmlcatalog_LDFLAGS = -pie
+ xmlcatalog_DEPENDENCIES = $(DEPS)
+ xmlcatalog_LDADD = $(RDL_LIBS) $(LDADDS)
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..b3d6bf8
--- /dev/null
@@ -0,0 +1,3 @@
+libxml2
+libxml2-devel
+    requires "libxml2-<targettype> = <version>"
diff --git a/packaging/libxml2.manifest b/packaging/libxml2.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libxml2.spec b/packaging/libxml2.spec
new file mode 100644 (file)
index 0000000..47f17d8
--- /dev/null
@@ -0,0 +1,120 @@
+Name:           libxml2
+Version:        2.10.2
+Release:        0
+Summary:        A Library to Manipulate XML Files
+License:        MIT
+Group:          System/Libraries
+Url:            http://xmlsoft.org
+
+Source:         %{name}-%{version}.tar.gz
+Source2:        baselibs.conf
+Source3:        Add_pie_compile_option.patch
+Source1001:    libxml2.manifest
+
+BuildRequires:  pkg-config
+BuildRequires:  readline-devel
+BuildRequires:  xz-devel
+BuildRequires:  zlib-devel
+
+%description
+The XML C library was initially developed for the GNOME project. It is
+now used by many programs to load and save extensible data structures
+or manipulate any kind of XML files.
+
+This library implements a number of existing standards related to
+markup languages, including the XML standard, name spaces in XML, XML
+Base, RFC 2396, XPath, XPointer, HTML4, XInclude, SGML catalogs, and
+XML catalogs. In most cases, libxml tries to implement the
+specification in a rather strict way. To some extent, it provides
+support for the following specifications, but does not claim to
+implement them: DOM, FTP client, HTTP client, and SAX.
+
+The library also supports RelaxNG. Support for W3C XML Schemas is in
+progress.
+
+
+%package tools
+Summary:        Tools using libxml
+Group:          System/Libraries
+
+%description tools
+This package contains xmllint, a very useful tool proving libxml's power.
+
+%package devel
+Summary:        Include Files and Libraries mandatory for Development
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+Requires:       %{name}-tools = %{version}
+Requires:       glibc-devel
+Requires:       readline-devel
+Requires:       xz-devel
+Requires:       zlib-devel
+
+%description devel
+This package contains all necessary include files and libraries needed
+to develop applications that require these.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+%{__patch} -p1 < %{SOURCE3}
+
+%build
+export CFLAGS+=" -fPIC"
+chmod +x autogen.sh
+%autogen
+%configure --disable-static \
+    --docdir=%_docdir/%name \
+    --with-html-dir=%_docdir/%name/html \
+    --with-fexceptions \
+    --with-history \
+    --without-python \
+    --enable-ipv6 \
+    --with-sax1 \
+    --with-regexps \
+    --with-threads \
+    --with-reader \
+    --with-http
+
+make %{?_smp_mflags} BASE_DIR="%_docdir" DOC_MODULE="%name"
+
+%check
+rm -f /tmp/%{name}_test
+%__make runtests
+
+
+%install
+make install DESTDIR="%buildroot" BASE_DIR="%_docdir" DOC_MODULE="%name"
+ln -s libxml2/libxml %{buildroot}%{_includedir}/libxml
+
+%remove_docs
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license Copyright
+%{_libdir}/libxml2.so.*
+
+%files tools
+%manifest %{name}.manifest
+%license Copyright
+%{_bindir}/xmllint
+%{_bindir}/xmlcatalog
+
+%files devel
+%manifest %{name}.manifest
+%license Copyright
+%{_bindir}/xml2-config
+%dir %{_datadir}/aclocal
+%{_datadir}/aclocal/libxml.m4
+%{_includedir}/libxml
+%{_includedir}/libxml2
+%{_libdir}/libxml2.so
+%{_libdir}/libxml2.la
+%{_libdir}/pkgconfig/libxml-2.0.pc
+%{_libdir}/cmake/libxml2/libxml2-config.cmake
+
+%changelog