File: rules

package info (click to toggle)
osgi-core 4.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 996 kB
  • sloc: java: 5,695; xml: 71; makefile: 15; sh: 14
file content (23 lines) | stat: -rwxr-xr-x 715 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

export JAVA_HOME	:= /usr/lib/jvm/default-java

MAVEN_REPO		:= http://repo1.maven.org/maven2/org/osgi/org.osgi.core
VERSION			:= $(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | sed -e 's/-[^-]*$$//')
JAR_NAME		:= osgi.core
PACKAGE			:= libosgi-core-java

%:
	dh $@ --with javahelper --with jh_maven_repo_helper

override_jh_build:
	jh_build --javacopts='-encoding UTF-8' --javadoc-opts='-encoding UTF-8'

override_jh_manifest:
	jar umf src/META-INF/MANIFEST.MF debian/$(PACKAGE)/usr/share/java/$(JAR_NAME).jar

get-orig-source:
	debian/orig-tar.sh --upstream-version $(VERSION)

get-orig-pom:
	wget --user-agent="" -O debian/pom.xml $(MAVEN_REPO)/$(VERSION)/org.osgi.core-$(VERSION).pom