rpms/jna-posix/F-8 jna-posix-build.xml, NONE, 1.1 jna-posix.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Conrad Meyer (konradm) fedora-extras-commits at redhat.com
Thu Apr 24 22:43:12 UTC 2008


Author: konradm

Update of /cvs/pkgs/rpms/jna-posix/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27181/F-8

Modified Files:
	.cvsignore sources 
Added Files:
	jna-posix-build.xml jna-posix.spec 
Log Message:
Initial import.



--- NEW FILE jna-posix-build.xml ---
<?xml version="1.0" encoding="utf-8"?>

<project basedir="." default="jar" name="jna-posix">

  <!-- Initializes the build -->
  <target name="init">
    <mkdir dir="build"/>
    <mkdir dir="build/classes"/>
    <mkdir dir="build/test-classes"/>
  </target>

  <target name="compile" depends="init">
    <javac destdir="build/classes" debug="true" source="1.5" target="1.5" deprecation="true" encoding="UTF-8">
      <src path="src"/>
    </javac>
  </target>

  <target name="jar" depends="compile" description="Create the jna-posix.jar file">
    <jar destfile="lib/jna-posix-0.5.jar">
      <fileset dir="build/classes">
        <include name="**/*.class"/>
        <include name="**/*.properties"/>
      </fileset>
      <manifest>
        <attribute name="Built-By" value="${user.name}"/>
      </manifest>
    </jar>
  </target>
</project>


--- NEW FILE jna-posix.spec ---
Name:           jna-posix
Version:        0.5
Release:        2%{?dist}
Summary:        POSIX APIs for Java

Group:          Development/Libraries
License:        CPL or GPLv2+ or LGPLv2+
URL:            http://jruby.codehaus.org/
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball: (0.5 was pulled from r139)
#   svn export http://svn.codehaus.org/jruby-contrib/trunk/jna-posix jna-poisx
#   tar -cjf jna-posix.tar.bz2 jna-posix/
Source0:        %{name}.tar.bz2
# The custom build.xml is just a simplified version of the stock
# build.xml. I did not include the test/cleanup sections, so it should
# be very small and understandable. (I used build.xml rather than the
# package's pom.xml (maven) because it requires maven-wagon's WebDAV
# component, something Fedora doesn't currently have.
# See: https://bugzilla.redhat.com/show_bug.cgi?id=442641
Source1:        %{name}-build.xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  java-devel >= 1.5
BuildRequires:  jna
BuildRequires:  jpackage-utils
BuildRequires:  junit

Requires:       java >= 1.5
Requires:       jpackage-utils
Requires:       jna


%description
Common cross-project/cross-platform POSIX APIs for Java.


%prep
%setup -q -n %{name}
rm -f build.xml
cp %{SOURCE1} build.xml

rm lib/*.jar


%build
export CLASSPATH=$(build-classpath junit jna)
ant


%install
rm -rf $RPM_BUILD_ROOT

# JAR files
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p lib/%{name}-%{version}.jar \
       $RPM_BUILD_ROOT%{_javadir}/%{name}.jar


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%doc LICENSE.txt README.txt


%changelog
* Wed Apr 23 2008 Conrad Meyer <konrad at tylerc.org> - 0.5-2
- Remove all binary jars in prep and include README/LICENSE.
- Remove version from jar filename.

* Tue Apr 22 2008 Conrad Meyer <konrad at tylerc.org> - 0.5-1
- Initial RPM.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/jna-posix/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	24 Apr 2008 19:21:42 -0000	1.1
+++ .cvsignore	24 Apr 2008 22:42:30 -0000	1.2
@@ -0,0 +1 @@
+jna-posix.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/jna-posix/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	24 Apr 2008 19:21:42 -0000	1.1
+++ sources	24 Apr 2008 22:42:30 -0000	1.2
@@ -0,0 +1 @@
+d650be20366a12952e64cdcf12b4f6db  jna-posix.tar.bz2




More information about the fedora-extras-commits mailing list