[Simple-support] contribution: RPM Package for simple-xml
Brought to you by:
niallg
|
From: Michael J. <mj...@cy...> - 2011-08-14 23:00:50
|
Hi List.
Firstly, I'm not subscribed, so please direct any replys to both
myself and the mailing list.
I've created an RPM package for simple-xml. We use it in a few of
our internal applications, and needed a way to handle upgrades to newer
versions.
Here's the specfile for the package
Name: simple-xml
Version: 2.6
Release: 1%{?dist}
Summary: The Simple XML Serialization framework
URL: http://simple.sourceforge.net
Source: simple-xml-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Group: Development/Libraries
License: Apache 2.0
BuildArch: noarch
%description
Simple is a high performance XML serialization and configuration
framework for Java. Its goal is to provide an XML framework that enables
rapid development of XML configuration and communication systems. This
framework aids the development of XML systems with minimal effort and
reduced errors. It offers full object serialization and deserialization,
maintaining each reference encountered. In essence it is similar to C#
XML serialization for the Java platform, but offers additional features
for interception and manipulation
%prep
%setup -q
%build
ant
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/java/
cp jar/simple-xml-%{version}.jar %{buildroot}/usr/share/java/
ln -sf /usr/share/java/simple-xml-%{version}.jar
%{buildroot}/usr/share/java/simple-xml.jar
%files
/usr/share/java/simple-xml-%{version}.jar
/usr/share/java/simple-xml.jar
%post
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Sun Aug 14 2011 Michael Jones <mj...@ep...> 2.6-1
- Initial package.
Attached to this email is the src.rpm file and rpm file generated by the
rpmbuild program.
This rpm file should work on any RPM based linux distribution, and
delivers two files
/usr/share/java/simple-xml-2.6.jar
and a symlink to that file at
/usr/share/java/simple-xml.jar
I am authorized by my employer to release this src.rpm, rpm and specfile
under the Apache 2.0 license. No modifications or patches to simple-xml
were needed to create the src rpm.
Cheers
--
Michael Jones
Software Engineer
CyberMetrix
2860 N National Rd #A
Columbus, IN 47201-4746 USA
812-375-5868
|