[libdom/epel7] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Tue Aug 12 12:36:33 UTC 2014


commit 10cc80fc48d0153038936ecee1f45703b394af60
Author: Christopher Meng <i at cicku.me>
Date:   Tue Aug 12 20:35:00 2014 +0800

    Initial SETUP.

 .gitignore  |    1 +
 libdom.spec |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4c1885e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libdom-0.1.0-src.tar.gz
diff --git a/libdom.spec b/libdom.spec
new file mode 100644
index 0000000..af22722
--- /dev/null
+++ b/libdom.spec
@@ -0,0 +1,63 @@
+%global make_vars COMPONENT_TYPE=lib-shared PREFIX=%{_prefix} LIBDIR=%{_lib} Q=
+%global build_vars OPTCFLAGS='%{optflags}' OPTLDFLAGS="%{?__global_ldflags}"
+
+Name:           libdom
+Version:        0.1.0
+Release:        1%{?dist}
+Summary:        C implementation of the W3C DOM
+License:        MIT
+URL:            http://www.netsurf-browser.org/projects/libdom/
+Source0:        http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
+BuildRequires:  netsurf-buildsystem
+BuildRequires:  perl(Switch)
+BuildRequires:  perl(XML::Parser::PerlSAX)
+BuildRequires:  perl(XML::XPath)
+# WITH_LIBXML_BINDING
+# BuildRequires:  pkgconfig(libxml-2.0)
+BuildRequires:  pkgconfig(expat)
+BuildRequires:  pkgconfig(libhubbub)
+BuildRequires:  pkgconfig(libwapcaplet)
+
+%description
+LibDOM is an implementation of the W3C DOM, written in C. It was developed as 
+part of the NetSurf project. For further details, see README.
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+This package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%autosetup -n %{name}-%{version} -p1
+
+sed -i -e s at -Werror@@ Makefile
+
+%build
+make %{?_smp_mflags} %{make_vars} %{build_vars}
+
+%install
+%make_install %{make_vars}
+
+%check
+make %{?_smp_mflags} test %{make_vars} %{build_vars}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc COPYING README
+%{_libdir}/%{name}.so.*
+
+%files devel
+%doc docs/*
+%{_includedir}/dom/
+%{_libdir}/%{name}.so
+%{_libdir}/pkgconfig/%{name}.pc
+
+%changelog
+* Thu May 01 2014 Christopher Meng <rpm at cicku.me> - 0.1.0-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..59d43c8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+055878cf633a935031517e2e209062f6  libdom-0.1.0-src.tar.gz


More information about the scm-commits mailing list