Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37479325
en ru br
Репозитории ALT
S:0.1.7-alt1_8jpp8
www.altlinux.org/Changes

Группа :: Разработка/Java
Пакет: minidns

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires: rpm-build-java
# END SourceDeps(oneline)
BuildRequires: /proc
BuildRequires: jpackage-generic-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:          minidns
Version:       0.1.7
Release:       alt1_8jpp8
Summary:       Minimal DNS library for Java and Android systems
License:       ASL 2.0 or LGPLv2+ or WTFPL
URL:           https://github.com/rtreffer/minidns
Source0:       https://github.com/rtreffer/minidns/archive/%{version}.tar.gz
Source1:       http://central.maven.org/maven2/de/measite/minidns/minidns/%{version}/minidns-%{version}.pom
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildArch:     noarch
Source44: import.info

%description
MiniDNS is a minimal dns client library for Java and Android.
It can parse a basic set of resource records (A, AAAA, NS,
SRV) and is easy to use and extend.

This library is not intended to be used as a DNS server.
You might want to look into dnsjava for such functionality.

%package javadoc
Group: Development/Java
Summary:       Javadoc for %{name}
BuildArch: noarch

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# cleanup
find . -name "*.class" -print -delete
find . -name "*.dll" -print -delete
find . -name "*.jar" -print  -delete

cp -p %{SOURCE1} pom.xml

%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.0 . "
<configuration>
 <source>1.7</source>
 <target>1.7</target>
 <encoding>UTF-8</encoding>
</configuration>"

%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 . "
<extensions>true</extensions>
<configuration>
 <instructions>
   <Bundle-SymbolicName>\${project.groupId}</Bundle-SymbolicName>
   <Bundle-Name>\${project.name}</Bundle-Name>
   <Bundle-Version>\${project.version}</Bundle-Version>
 </instructions>
</configuration>
<executions>
 <execution>
   <id>bundle-manifest</id>
   <phase>process-classes</phase>
   <goals>
     <goal>manifest</goal>
   </goals>
 </execution>
</executions>"

%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.4 . "
<configuration>
 <archive>
   <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
   <addMavenDescriptor>false</addMavenDescriptor>
 </archive>
</configuration>"

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%doc --no-dereference LICENCE*

%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENCE*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin