commit c4b16c5ac8532cb21b3e14b0a47d8c821a0beadb
Author: Michal Srb <msrb(a)redhat.com>
Date: Mon May 6 08:01:47 2013 +0200
Initial import
.gitignore | 1 +
jmdns.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..29d69ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jmdns-3.4.1.tar.gz
diff --git a/jmdns.spec b/jmdns.spec
new file mode 100644
index 0000000..b98f39e
--- /dev/null
+++ b/jmdns.spec
@@ -0,0 +1,70 @@
+Name: jmdns
+Version: 3.4.1
+Release: 2%{?dist}
+Summary: Java implementation of multi-cast DNS
+
+# The project was originally developed under the GNU
+# Lesser General Public License. It was later moved to Sourceforge
+# and re-released under the Apache License, Version 2.0.
+# See NOTICE.txt for more details
+License: ASL 2.0 and LGPLv2+
+URL:
http://jmdns.sourceforge.net/
+# svn checkout
https://jmdns.svn.sourceforge.net/svnroot/jmdns/tags/jmdns-%{version}
jmdns-%{version}
+# cd jmdns-%{version}
+# find . -name .svn -exec rm -Rf {} +
+# rm -Rf .classpath clover.license.txt jmdns.* lib/ devdocs/ fulllogging.properties
+# rm -Rf checkstyle.xml .settings .project src/site/
+# cd ..
+# tar czvf jmdns-%{version}.tar.gz jmdns-%{version}
+Source0: %{name}-%{version}.tar.gz
+
+BuildRequires: maven-local
+BuildRequires: mvn(org.sonatype.oss:oss-parent)
+
+BuildArch: noarch
+
+%description
+JmDNS is a Java implementation of multi-cast DNS
+and can be used for service registration and discovery
+in local area networks. JmDNS is fully compatible
+with Apple's Bonjour.
+
+%package javadoc
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+# Fix FSF address
+sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth
Floor,;s,02111-1307,02110-1301," \
+ src/sample/java/samples/DiscoverServiceTypes.java LICENSE-LGPL.txt
+
+chmod -x README.txt LICENSE-LGPL.txt
+sed -i 's/\r//' LICENSE-LGPL.txt
+
+%build
+# Tests are disabled because they try to use network
+%mvn_build -f
+
+%install
+%mvn_install
+
+
+%files -f .mfiles
+%doc LICENSE LICENSE-LGPL.txt NOTICE.txt README.txt
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE LICENSE-LGPL.txt NOTICE.txt README.txt
+
+
+%changelog
+* Fri May 03 2013 Michal Srb <msrb(a)redhat.com> - 3.4.1-2
+- Fix license tag
+- Fix rpmlint warnings
+
+* Thu May 02 2013 Michal Srb <msrb(a)redhat.com> - 3.4.1-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..421e13a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+aeabcdc5960b0df25ed0f9ae96501bd8 jmdns-3.4.1.tar.gz